Query\Drivers\Sqlite\Driver
SQLite specific class
Synopsis
- // methods
- public void __construct()
- public array getTables()
- public array getFks()
- public array insertBatch()
- // Inherited methods from AbstractDriver
- public void __construct()
- public mixed __call()
- public string getLastQuery()
- public void setLastQuery()
- public SQLInterface getSql()
- public AbstractUtil getUtil()
- public void setTablePrefix()
- public PDOStatement prepareQuery()
- public PDOStatement prepareExecute()
- public int affectedRows()
- public string prefixTable()
- public string quoteTable()
- public string|array quoteIdent()
- public array getSchemas()
- public array getTables()
- public array getDbs()
- public array getViews()
- public array getSequences()
- public array getFunctions()
- public array getProcedures()
- public array getTriggers()
- public array getSystemTables()
- public array getColumns()
- public array getFks()
- public array getIndexes()
- public array getTypes()
- public array|null driverQuery()
- public int|null numRows()
- public null|array<string|array|null> insertBatch()
- public int|null updateBatch()
- public PDOStatement truncate()
- public mixed _quote()
- // Inherited methods from PDO
- public void __construct()
- public bool beginTransaction()
- public bool commit()
- public mixed errorCode()
- public array errorInfo()
- public int exec()
- public mixed getAttribute()
- public array getAvailableDrivers()
- public bool inTransaction()
- public string lastInsertId()
- public PDOStatement prepare()
- public PDOStatement query()
- public string quote()
- public bool rollBack()
- public bool setAttribute()
Hierarchy
Extends
Coverage
Methods | 0% | 0 / 4 |
Lines | 0% | / |
Tasks
Line | Task |
---|---|
571 | implement |
Methods
public
- __construct() — Open SQLite Database
- getFks() — Retrieve foreign keys for the table
- getTables() — List tables for the current database
- insertBatch() — Create sql for batch insert
Inherited from Query\Drivers\AbstractDriver
public
- __call() — Allow invoke to work on table object
- _quote() — Helper method for quote_ident
- affectedRows() — Returns number of rows affected by an INSERT, UPDATE, DELETE type query
- driverQuery() — Method to simplify retrieving db results for meta-data queries
- getColumns() — Retrieve column information for the current database table
- getDbs() — Return list of dbs for the current connection, if possible
- getFks() — Retrieve foreign keys for the table
- getFunctions() — Return list of functions for the current database
- getIndexes() — Retrieve indexes for the table
- getLastQuery() — Get the last sql query executed
- getProcedures() — Return list of stored procedures for the current database
- getSchemas() — Return schemas for databases that list them
- getSequences() — Return list of sequences for the current database, if they exist
- getSql() — Get the SQL class for the current driver
- getSystemTables() — Retrieves an array of non-user-created tables for the connection/database
- getTables() — Return list of tables for the current database
- getTriggers() — Return list of triggers for the current database
- getTypes() — Retrieve list of data types for the database
- getUtil() — Get the Util class for the current driver
- getViews() — Return list of views for the current database
- insertBatch() — Create sql for batch insert
- numRows() — Return the number of rows returned for a SELECT query
- prefixTable() — Prefixes a table if it is not already prefixed
- prepareExecute() — Create and execute a prepared statement with the provided parameters
- prepareQuery() — Simplifies prepared statements for database queries
- quoteIdent() — Surrounds the string with the databases identifier escape characters
- quoteTable() — Quote database table name, and set prefix
- setLastQuery() — Set the last query sql
- setTablePrefix() — Set the common table name prefix
- truncate() — Empty the passed table
- updateBatch() — Creates a batch update, and executes it.
Inherited from PDO
public
- beginTransaction() — Initiates a transaction
- commit() — Commits a transaction
- errorCode() — Fetch the SQLSTATE associated with the last operation on the database handle
- errorInfo() — Fetch extended error information associated with the last operation on the database handle
- exec() — Execute an SQL statement and return the number of affected rows
- getAttribute() — Retrieve a database connection attribute
- getAvailableDrivers() — Return an array of available PDO drivers
- inTransaction() — Checks if inside a transaction
- lastInsertId() — Returns the ID of the last inserted row or sequence value
- prepare() — Prepares a statement for execution and returns a statement object
- query() — Executes an SQL statement, returning a result set as a PDOStatement object
- quote() — Quotes a string for use in a query.
- rollBack() — Rolls back a transaction
- setAttribute() — Set an attribute
History
-
2018-01-24T20:03:41+00:00 (commit #f967aaf)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Remove method separators, update documentation building configuration
-
2018-01-24T18:17:00+00:00 (commit #608b252)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Fix some missed type hints
-
2018-01-24T18:14:03+00:00 (commit #1d583bc)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Add more type hinting
-
2018-01-22T20:43:56+00:00 (commit #91eb812)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Various refactoring
-
2018-01-19T20:47:34+00:00 (commit #369ca6e)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Flatten source structure a bit
-
2018-01-19T18:43:19+00:00 (commit #c735c27)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Update file headers
-
2016-10-14T01:55:23+00:00 (commit #b8d4768)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
camelCase methods and properties
-
2016-10-13T02:12:25+00:00 (commit #6740aae)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
PHP7 or bust!
-
2016-09-07T21:39:19+00:00 (commit #ca60162)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Miscellaneous cleanup and refactoring
-
2016-09-07T17:17:17+00:00 (commit #24f3b1d)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Update header comments
-
2016-09-07T17:10:03+00:00 (commit #bb38213)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Code Style fixes
-
2015-11-11T14:25:21+00:00 (commit #e62f577)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Fix a bunch of one line if statements
-
2015-11-11T01:59:03+00:00 (commit #2613a1c)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Update lots of comments
-
2015-11-10T15:12:23+00:00 (commit #b5a141f)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Make class names Pascal Case
-
2015-07-29T20:51:17+00:00 (commit #8511c6a)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Move library into src folder, fix simpletest test runner
-
2015-07-20T19:24:21+00:00 (commit #cd7f904)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Add pdo_firebird driver