Method |
Description |
|
createTable ( String $db, String $sql ) : void |
Creates database table |
|
createTablesFromSchema ( String $db, String $file ) : void |
Loads the schema file into array then searches
for each table and if not found creates the table |
|
dropTable ( string $db, string $name ) : boolean |
Drops a table |
|
hasTable ( String $db, String $name ) : boolean |
Validates that database table exists |
|
init ( string $directory, string $dbFile, string $schemaFile ) : object |
Initializes database and creates directories if needed |
|
isResourceDirectory ( string $directory ) : void |
fully specified file name as string
used to check that the resource directory does exist |
|
isSchemaFile ( string $file ) : void |
fully specified file name as string
used to check that the schema file does exist |
|
onLoad ( ) : void |
Checks to see if the necessary extensions are loaded. |
|
validateSqlType ( string $sql, string $type ) : boolean |
Supply sql statement and one word type parameter
(IE, create, update, insert, delete)
and the method will validate that the sql contains that syntax |
|