PHP 클래스 Ruckusing_Adapter_Sqlite3_Base, ruckusing-migrations

상속: extends Ruckusing_Adapter_Base, implements Ruckusing_Adapter_Interface
파일 보기 프로젝트 열기: ruckus/ruckusing-migrations 1 사용 예제들

공개 메소드들

메소드 설명
__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 ( )

메소드 상세

__construct() 공개 메소드

public __construct ( array $dsn, $logger )
$dsn array
$logger

add_column() 공개 메소드

public add_column ( string $table_name, string $column_name, string $type, array $options = [] ) : boolean
$table_name string
$column_name string
$type string
$options array
리턴 boolean

add_column_options() 공개 메소드

public add_column_options ( $type, $options, boolean $performing_change = false ) : string
$type
$options
$performing_change boolean
리턴 string

add_index() 공개 메소드

public add_index ( string $table_name, string $column_name, array $options = [] ) : boolean
$table_name string
$column_name string
$options array
리턴 boolean

add_timestamps() 공개 메소드

public add_timestamps ( $table_name, $created_column_name, $updated_column_name ) : boolean
$table_name
$created_column_name
$updated_column_name
리턴 boolean

change_column() 공개 메소드

public change_column ( string $table_name, string $column_name, string $type, array $options = [] )
$table_name string
$column_name string
$type string
$options array

column_definition() 공개 메소드

public column_definition ( $column_name, $type, null $options = null ) : string
$column_name
$type
$options null
리턴 string

column_info() 공개 메소드

public column_info ( $table, $column ) : array | null
$table
$column
리턴 array | null

commit_transaction() 공개 메소드

public commit_transaction ( )

create_database() 공개 메소드

public create_database ( $db, array $options = [] ) : boolean
$db
$options array
리턴 boolean

create_schema_version_table() 공개 메소드

create_table() 공개 메소드

public create_table ( string $table_name, array $options = [] ) : Ruckusing_Adapter_Sqlite3_TableDefinition
$table_name string
$options array
리턴 Ruckusing_Adapter_Sqlite3_TableDefinition

database_exists() 공개 메소드

public database_exists ( string $db ) : boolean
$db string
리턴 boolean

drop_database() 공개 메소드

public drop_database ( string $databaseName ) : boolean
$databaseName string
리턴 boolean

drop_table() 공개 메소드

public drop_table ( string $table_name ) : boolean
$table_name string
리턴 boolean

execute() 공개 메소드

public execute ( string $query ) : array | boolean | integer | null
$query string
리턴 array | boolean | integer | null

execute_ddl() 공개 메소드

public execute_ddl ( $ddl ) : boolean
$ddl
리턴 boolean

get_database_name() 공개 메소드

public get_database_name ( ) : mixed
리턴 mixed

has_index() 공개 메소드

public has_index ( $table_name, $column_name, array $options = [] ) : boolean
$table_name
$column_name
$options array
리턴 boolean

identifier() 공개 메소드

public identifier ( $string ) : string
$string
리턴 string

indexes() 공개 메소드

public indexes ( $table_name ) : array
$table_name
리턴 array

log_unsupported_feature() 공개 메소드

public log_unsupported_feature ( $feature )
$feature

multi_query() 공개 메소드

Execute several queries
public multi_query ( string $queries ) : boolean
$queries string queries to run
리턴 boolean

native_database_types() 공개 메소드

public native_database_types ( ) : array
리턴 array

primary_keys() 공개 메소드

public primary_keys ( $table ) : array
$table
리턴 array

query() 공개 메소드

public query ( string $query ) : array | boolean | integer
$query string
리턴 array | boolean | integer

quote() 공개 메소드

public quote ( string $value, null $column = null ) : string
$value string
$column null
리턴 string

quote_column_name() 공개 메소드

public quote_column_name ( $string ) : string
$string
리턴 string

quote_string() 공개 메소드

public quote_string ( string $str ) : string
$str string
리턴 string

quote_table_name() 공개 메소드

public quote_table_name ( $string ) : string
$string
리턴 string

remove_column() 공개 메소드

public remove_column ( string $table_name, string $column_name )
$table_name string
$column_name string

remove_index() 공개 메소드

public remove_index ( string $table_name, string $column_name, array $options = [] ) : boolean
$table_name string
$column_name string
$options array
리턴 boolean

remove_timestamps() 공개 메소드

public remove_timestamps ( $table_name, $created_column_name, $updated_column_name ) : boolean
$table_name
$created_column_name
$updated_column_name
리턴 boolean

remove_version() 공개 메소드

public remove_version ( $version ) : boolean
$version
리턴 boolean

rename_column() 공개 메소드

public rename_column ( string $table_name, string $column_name, string $new_column_name ) : boolean
$table_name string
$column_name string
$new_column_name string
리턴 boolean

rename_table() 공개 메소드

public rename_table ( string $name, string $new_name ) : boolean
$name string
$new_name string
리턴 boolean

rollback_transaction() 공개 메소드

schema() 공개 메소드

public schema ( $output_file ) : string
$output_file
리턴 string

select_all() 공개 메소드

public select_all ( $query ) : array | boolean | integer
$query
리턴 array | boolean | integer

select_one() 공개 메소드

public select_one ( $query ) : array
$query
리턴 array

set_current_version() 공개 메소드

public set_current_version ( $version ) : boolean
$version
리턴 boolean

start_transaction() 공개 메소드

public start_transaction ( )

supports_migrations() 공개 메소드

public supports_migrations ( ) : boolean
리턴 boolean

table_exists() 공개 메소드

public table_exists ( string $tbl, boolean $reload_tables = false ) : boolean
$tbl string
$reload_tables boolean
리턴 boolean

type_to_sql() 공개 메소드

public type_to_sql ( $type, array $options = [] ) : string
$type
$options array
리턴 string