Skip to content

class Athena::ORM::Platforms::SQLite
inherits Athena::ORM::Platforms::Platform #

Base platform for SQLite.

Database-generated identifiers are read back with INSERT ... RETURNING.

Methods#

#big_int_type_declaration_sql(column : Schema::Column) : String#

Returns the SQL declaring column as a big (8 byte) integer column.

View source

#blob_type_declaration_sql(column : Schema::Column) : String#

Returns the SQL declaring column as a binary large object column.

View source

#boolean_type_declaration_sql(column : Schema::Column) : String#

Returns the SQL declaring column as a boolean column.

View source

#create_metadata_provider(connection : AORM::Connection) : Schema::Metadata::MetadataProviderInterface#

Returns the metadata provider that reads the metadata of the schema objects of the database connection is to.

View source

#create_schema_manager(connection : AORM::Connection) : Schema::AbstractSchemaManager#

Returns the schema manager that inspects the schema of the database connection is to, see AORM::Connection#create_schema_manager.

View source

#date_time_type_declaration_sql(column : Schema::Column) : String#

Returns the SQL declaring column as a date and time column without a time zone.

View source

#integer_type_declaration_sql(column : Schema::Column) : String#

Returns the SQL declaring column as an integer (4 byte) column.

View source

#small_int_type_declaration_sql(column : Schema::Column) : String#

Returns the SQL declaring column as a small (2 byte) integer column.

View source

#supports_returning? : Bool#

Returns true if INSERT statements can return values of the inserted row via a RETURNING clause.

Database-generated identifiers are read from that clause when supported, and from the driver's last insert id otherwise. Only the latter is limited to a single identifier column.

View source