Methods |
public
|
cleanQuery(string $string): string
Fix Bad Format in Query call clearQuery
Fix Bad Format in Query call clearQuery
Overriden by
|
#
|
public
|
clearQuery(string $string): string
Fix Bad Format in Query
|
#
|
public
|
getTableSQL(string $tablenl, string $where = ""): string
Import table data as PHP Code. Override this function when you need to
create of database adapter. Default work with…
Import table data as PHP Code. Override this function when you need to
create of database adapter. Default work with MySQL
Parameters
$tablenl |
Comma Separated string as table names or table name
|
$where |
where logic for query
|
|
#
|
public
|
getTableColumns(string $tablename): array
List Fields in a Table. Override this function when you need to
create of database adapter. Default work with MySQL
List Fields in a Table. Override this function when you need to
create of database adapter. Default work with MySQL
Parameters
$tablename |
pass table name in database
|
|
#
|
public
|
getDbTables(): array
List Tables in Database. execute SHOW TABLES query. Override this function when you need to
create of database adapter.…
List Tables in Database. execute SHOW TABLES query. Override this function when you need to
create of database adapter. Default work with MySQL
|
#
|
public
|
getCreateTableSQL(string $table): string
Generate a Table CREATE query. Override this function when you need to
create of database adapter. Default work with…
Generate a Table CREATE query. Override this function when you need to
create of database adapter. Default work with MySQL
Parameters
|
#
|
public
|
saveToCache(array|object $data, string $filename): boolean
Serialize to a filepath
|
#
|
public
|
getFromCache(string $filename): array|object
Unserialize from file if exist.
Unserialize from file if exist.
Parameters
Returns
on error return empty array
|
#
|