124 lines
2.2 KiB
YAML
124 lines
2.2 KiB
YAML
|
name: SqlServerBuilder
|
||
|
class_comment: null
|
||
|
dependencies:
|
||
|
- name: InvalidArgumentException
|
||
|
type: class
|
||
|
source: InvalidArgumentException
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: createDatabase
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: name
|
||
|
comment: '# * Create a database in the schema.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param string $name
|
||
|
|
||
|
# * @return bool'
|
||
|
- name: dropDatabaseIfExists
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: name
|
||
|
comment: '# * Drop a database from the schema if the database exists.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param string $name
|
||
|
|
||
|
# * @return bool'
|
||
|
- name: hasTable
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: table
|
||
|
comment: '# * Determine if the given table exists.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param string $table
|
||
|
|
||
|
# * @return bool'
|
||
|
- name: hasView
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: view
|
||
|
comment: '# * Determine if the given view exists.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param string $view
|
||
|
|
||
|
# * @return bool'
|
||
|
- name: dropAllTables
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Drop all tables from the database.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return void'
|
||
|
- name: dropAllViews
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Drop all views from the database.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return void'
|
||
|
- name: getColumns
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: table
|
||
|
comment: '# * Get the columns for a given table.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param string $table
|
||
|
|
||
|
# * @return array'
|
||
|
- name: getIndexes
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: table
|
||
|
comment: '# * Get the indexes for a given table.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param string $table
|
||
|
|
||
|
# * @return array'
|
||
|
- name: getForeignKeys
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: table
|
||
|
comment: '# * Get the foreign keys for a given table.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param string $table
|
||
|
|
||
|
# * @return array'
|
||
|
- name: getDefaultSchema
|
||
|
visibility: protected
|
||
|
parameters: []
|
||
|
comment: '# * Get the default schema for the connection.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return string'
|
||
|
- name: parseSchemaAndTable
|
||
|
visibility: protected
|
||
|
parameters:
|
||
|
- name: reference
|
||
|
comment: '# * Parse the database object reference and extract the schema and table.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param string $reference
|
||
|
|
||
|
# * @return array'
|
||
|
traits:
|
||
|
- InvalidArgumentException
|
||
|
interfaces: []
|