Query\AbstractUtil
Abstract class defining database / table creation methods
Synopsis
- // members
- private $conn;
- // methods
- public void __construct()
- public Driver_Interface get_driver()
- public string create_table()
- public string delete_table()
- public abstract string backup_structure()
- public abstract string backup_data()
Coverage
Methods | 100% | 6 / 6 |
Lines | 100% | 19 / 19 |
Members
private
-
$conn
Reference to the current connection object
Methods
public
- __construct() — Save a reference to the connection object for later use
- backup_data() — Return an SQL file with the database data as insert statements
- backup_structure() — Return an SQL file with the database table structure
- create_table() — Convenience public function to generate sql for creating a db table
- delete_table() — Drop the selected table
- get_driver() — Get the driver object for the current connection
History
-
2015-11-10T10:12:23-05:00 (commit #b5a141f)
Author: Timothy J Warren (tim@timshomepage.net) / Commiter: Timothy J Warren (tim@timshomepage.net)
Make class names Pascal Case
-
2015-07-29T16:51:17-04: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-16T16:56:13-04:00 (commit #bfc3ea3)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Reorganize drivers into a more modern layout
-
2014-08-08T13:48:20-04:00 (commit #dd672df)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Reorganize classes to autoload by namespace
-
2014-06-30T11:01:44-04:00 (commit #7fd90ab)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Remove Table Builder classes
-
2014-04-24T15:32:09-04:00 (commit #17354ee)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Move SQL and Util classes to their own namespaces
-
2014-04-24T13:42:01-04:00 (commit #ff77cea)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Remove __call method from util classes
-
2014-04-24T13:08:26-04:00 (commit #1f74408)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Reduce complexity of create_table method
-
2014-04-24T11:31:03-04:00 (commit #0baf624)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Fix a few spelling mistakes
-
2014-04-23T17:03:46-04:00 (commit #6b814c0)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Remove some duplication
-
2014-04-15T16:16:15-04:00 (commit #2f16b61)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Docblock updates
-
2014-04-10T15:54:43-04:00 (commit #32696a5)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Flesh out the table builder a bit, and add some missing driver methods to SQLite
-
2014-04-09T10:55:17-04:00 (commit #fde92bc)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Fix a few code quality issues
-
2014-04-03T16:49:01-04:00 (commit #3eeea75)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Cut down on some duplication, and increase test coverage
-
2014-04-03T14:44:03-04:00 (commit #a333920)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Rename db_util to abstract_util, mark create_table method as deprecated
-
2014-04-03T13:28:30-04:00 (commit #4809016)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Add insert_batch methods to Firebird and SQLite