NAME
DBIx::QuickORM::Dialect::SQLite - SQLite dialect for DBIx::QuickORM.
DESCRIPTION
The SQLite-specific DBIx::QuickORM::Dialect. Introspects schema metadata from SQLite's pragma_* tables and sqlite_schema, drives transactions and savepoints via the SQLite driver, and reports SQLite's feature set (RETURNING support, no async support).
SYNOPSIS
my $dialect = DBIx::QuickORM::Dialect::SQLite->new(dbh => $dbh, db_name => $name);
PUBLIC METHODS
- $ver = $dialect->fallback_ver
- $ver = $dialect->oldest_ver
- $ver = $dialect->latest_ver
- $driver = $dialect->dbi_driver
- $name = $dialect->dialect_name
- $bool = $dialect->supports_returning_update
- $bool = $dialect->supports_returning_insert
- $bool = $dialect->supports_returning_delete
- $bool = $dialect->async_supported
- $bool = $dialect->async_cancel_supported
- $bool = $dialect->version_search
-
Feature flags and constants describing the SQLite dialect. SQLite has no versioned dialect variants and does not support async queries.
- $dialect->async_prepare_args
- $dialect->async_ready
- $dialect->async_result
- $dialect->async_cancel
-
SQLite does not support async queries; these
croak. - $version = $dialect->db_version
-
The installed
DBD::SQLiteversion. - $dialect->start_txn(%params)
- $dialect->commit_txn(%params)
- $dialect->rollback_txn(%params)
- $dialect->create_savepoint(%params)
- $dialect->commit_savepoint(%params)
- $dialect->rollback_savepoint(%params)
-
Transaction and savepoint control via the SQLite driver. Each accepts an optional
dbhparameter, defaulting to the dialect's own handle; savepoint methods take asavepointname. - $dsn = $dialect->dsn($db)
-
Builds a SQLite DSN string from a database config object.
PUBLIC METHODS
- $tables = $dialect->build_tables_from_db(%params)
-
Introspects all tables and views (including temp ones) and returns a hashref of name to schema-table object.
- ($pk, $unique, $links) = $dialect->build_table_keys_from_db($table, %params)
-
Introspects a table's primary key, unique keys, and foreign-key links.
- $bool = $dialect->table_has_autoinc($table)
-
True if the named table declares an
AUTOINCREMENTcolumn. - $columns = $dialect->build_columns_from_db($table, %params)
-
Introspects a table's columns and returns a hashref of column name to column object.
- $indexes = $dialect->build_indexes_from_db($table, %params)
-
Introspects a table's indexes and returns an arrayref of index specs.
PRIVATE METHODS
- @cols = $dialect->_primary_key($table)
-
Returns the primary-key column names for a table, ordered by key position.
SOURCE
The source code repository for DBIx::QuickORM can be found at https://github.com/exodist/DBIx-QuickORM.
MAINTAINERS
AUTHORS
COPYRIGHT
Copyright Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.