The panko.storage.sqlalchemy.models Module

The panko.storage.sqlalchemy.models Module

SQLAlchemy models for Panko data.

class panko.storage.sqlalchemy.models.Event(message_id, event_type, generated, raw)[source]

Bases: sqlalchemy.ext.declarative.api.Base

class panko.storage.sqlalchemy.models.EventType(event_type)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Types of event records.

class panko.storage.sqlalchemy.models.JSONEncodedDict(*args, **kwargs)[source]

Bases: sqlalchemy.sql.type_api.TypeDecorator

Represents an immutable structure as a json-encoded string.

impl

alias of sqlalchemy.sql.sqltypes.Text

static process_bind_param(value, dialect)[source]
static process_result_value(value, dialect)[source]
class panko.storage.sqlalchemy.models.PankoBase[source]

Bases: object

Base class for Panko Models.

update(values)[source]

Make the model object behave like a dict.

class panko.storage.sqlalchemy.models.PreciseTimestamp(*args, **kwargs)[source]

Bases: sqlalchemy.sql.type_api.TypeDecorator

Represents a timestamp precise to the microsecond.

impl

alias of sqlalchemy.sql.sqltypes.DateTime

load_dialect_impl(dialect)[source]

Return a TypeEngine object corresponding to a dialect.

This is an end-user override hook that can be used to provide differing types depending on the given dialect. It is used by the TypeDecorator implementation of type_engine() to help determine what type should ultimately be returned for a given TypeDecorator.

By default returns self.impl.

static process_bind_param(value, dialect)[source]
static process_result_value(value, dialect)[source]
class panko.storage.sqlalchemy.models.TraitDatetime(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Event datetime traits.

class panko.storage.sqlalchemy.models.TraitFloat(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Event float traits.

class panko.storage.sqlalchemy.models.TraitInt(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Event integer traits.

class panko.storage.sqlalchemy.models.TraitText(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Event text traits.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.