Метод | Описание | |
---|---|---|
__construct ( array $dsn, $logger ) | ||
add_column ( string $table_name, string $column_name, string $type, array $options = [] ) : boolean | ||
add_column_options ( $type, $options, boolean $performing_change = false ) : string | ||
add_index ( string $table_name, string $column_name, array $options = [] ) : boolean | ||
add_timestamps ( $table_name, $created_column_name, $updated_column_name ) : boolean | ||
change_column ( string $table_name, string $column_name, string $type, array $options = [] ) | ||
column_definition ( $column_name, $type, null $options = null ) : string | ||
column_info ( $table, $column ) : array | null | ||
commit_transaction ( ) | ||
create_database ( $db, array $options = [] ) : boolean | ||
create_schema_version_table ( ) | ||
create_table ( string $table_name, array $options = [] ) : Ruckusing_Adapter_Sqlite3_TableDefinition | ||
database_exists ( string $db ) : boolean | ||
drop_database ( string $databaseName ) : boolean | ||
drop_table ( string $table_name ) : boolean | ||
execute ( string $query ) : array | boolean | integer | null | ||
execute_ddl ( $ddl ) : boolean | ||
get_database_name ( ) : mixed | ||
has_index ( $table_name, $column_name, array $options = [] ) : boolean | ||
identifier ( $string ) : string | ||
indexes ( $table_name ) : array | ||
log_unsupported_feature ( $feature ) | ||
multi_query ( string $queries ) : boolean | Execute several queries | |
native_database_types ( ) : array | ||
primary_keys ( $table ) : array | ||
query ( string $query ) : array | boolean | integer | ||
quote ( string $value, null $column = null ) : string | ||
quote_column_name ( $string ) : string | ||
quote_string ( string $str ) : string | ||
quote_table_name ( $string ) : string | ||
remove_column ( string $table_name, string $column_name ) | ||
remove_index ( string $table_name, string $column_name, array $options = [] ) : boolean | ||
remove_timestamps ( $table_name, $created_column_name, $updated_column_name ) : boolean | ||
remove_version ( $version ) : boolean | ||
rename_column ( string $table_name, string $column_name, string $new_column_name ) : boolean | ||
rename_table ( string $name, string $new_name ) : boolean | ||
rollback_transaction ( ) | ||
schema ( $output_file ) : string | ||
select_all ( $query ) : array | boolean | integer | ||
select_one ( $query ) : array | ||
set_current_version ( $version ) : boolean | ||
start_transaction ( ) | ||
supports_migrations ( ) : boolean | ||
table_exists ( string $tbl, boolean $reload_tables = false ) : boolean | ||
type_to_sql ( $type, array $options = [] ) : string |
Метод | Описание | |
---|---|---|
beginTransaction ( ) | ||
commit ( ) | ||
connect ( $dsn ) | ||
db_connect ( $dsn ) : boolean | ||
determine_query_type ( $query ) : integer | ||
executeQuery ( $query ) : SQLite3Result | ||
extract_column_info ( $pragmaTable, $columnName ) : null | ||
inTransaction ( ) : boolean | ||
isError ( $SQLite3Result ) : boolean | ||
lastErrorMsg ( ) : string | ||
rollback ( ) |
public add_column_options ( $type, $options, boolean $performing_change = false ) : string | ||
$type | ||
$options | ||
$performing_change | boolean | |
Результат | string |
public add_timestamps ( $table_name, $created_column_name, $updated_column_name ) : boolean | ||
$table_name | ||
$created_column_name | ||
$updated_column_name | ||
Результат | boolean |
public column_definition ( $column_name, $type, null $options = null ) : string | ||
$column_name | ||
$type | ||
$options | null | |
Результат | string |
public column_info ( $table, $column ) : array | null | ||
$table | ||
$column | ||
Результат | array | null |
public create_database ( $db, array $options = [] ) : boolean | ||
$db | ||
$options | array | |
Результат | boolean |
public create_table ( string $table_name, array $options = [] ) : Ruckusing_Adapter_Sqlite3_TableDefinition | ||
$table_name | string | |
$options | array | |
Результат | Ruckusing_Adapter_Sqlite3_TableDefinition |
public database_exists ( string $db ) : boolean | ||
$db | string | |
Результат | boolean |
public drop_database ( string $databaseName ) : boolean | ||
$databaseName | string | |
Результат | boolean |
public drop_table ( string $table_name ) : boolean | ||
$table_name | string | |
Результат | boolean |
public multi_query ( string $queries ) : boolean | ||
$queries | string | queries to run |
Результат | boolean |
public quote_column_name ( $string ) : string | ||
$string | ||
Результат | string |
public quote_string ( string $str ) : string | ||
$str | string | |
Результат | string |
public quote_table_name ( $string ) : string | ||
$string | ||
Результат | string |
public remove_column ( string $table_name, string $column_name ) | ||
$table_name | string | |
$column_name | string |
public remove_timestamps ( $table_name, $created_column_name, $updated_column_name ) : boolean | ||
$table_name | ||
$created_column_name | ||
$updated_column_name | ||
Результат | boolean |
public remove_version ( $version ) : boolean | ||
$version | ||
Результат | boolean |
public set_current_version ( $version ) : boolean | ||
$version | ||
Результат | boolean |
public type_to_sql ( $type, array $options = [] ) : string | ||
$type | ||
$options | array | |
Результат | string |