@riao/dbal 3.8.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/LICENSE.md +20 -20
- package/README.md +148 -148
- package/builder/builder.d.ts +7 -7
- package/builder/builder.js +19 -19
- package/builder/index.d.ts +2 -2
- package/builder/index.js +7 -7
- package/builder/sql-builder.d.ts +53 -53
- package/builder/sql-builder.js +157 -157
- package/builder/statement-builder.d.ts +12 -12
- package/builder/statement-builder.js +32 -32
- package/column/column-options.d.ts +156 -156
- package/column/column-options.js +2 -2
- package/column/column-type.d.ts +18 -18
- package/column/column-type.js +27 -27
- package/column/column-values.d.ts +34 -34
- package/column/column-values.js +2 -2
- package/column/index.d.ts +3 -3
- package/column/index.js +19 -19
- package/column-pack/date-time/create-timestamp-column.d.ts +2 -2
- package/column-pack/date-time/create-timestamp-column.js +10 -10
- package/column-pack/date-time/index.d.ts +2 -2
- package/column-pack/date-time/index.js +7 -7
- package/column-pack/date-time/update-timestamp-column.d.ts +2 -2
- package/column-pack/date-time/update-timestamp-column.js +14 -14
- package/column-pack/index.d.ts +6 -6
- package/column-pack/index.js +22 -22
- package/column-pack/keys/big-int-key-column.d.ts +2 -2
- package/column-pack/keys/big-int-key-column.js +10 -10
- package/column-pack/keys/index.d.ts +3 -3
- package/column-pack/keys/index.js +9 -9
- package/column-pack/keys/int-key-column.d.ts +2 -2
- package/column-pack/keys/int-key-column.js +10 -10
- package/column-pack/keys/uuid-key-column.d.ts +2 -2
- package/column-pack/keys/uuid-key-column.js +11 -11
- package/column-pack/person/date-of-birth-column.d.ts +2 -2
- package/column-pack/person/date-of-birth-column.js +8 -8
- package/column-pack/person/first-name-column.d.ts +2 -2
- package/column-pack/person/first-name-column.js +9 -9
- package/column-pack/person/index.d.ts +3 -3
- package/column-pack/person/index.js +9 -9
- package/column-pack/person/last-name-column.d.ts +2 -2
- package/column-pack/person/last-name-column.js +9 -9
- package/column-pack/resource/content-column.d.ts +2 -2
- package/column-pack/resource/content-column.js +9 -9
- package/column-pack/resource/description-column.d.ts +2 -2
- package/column-pack/resource/description-column.js +9 -9
- package/column-pack/resource/index.d.ts +6 -6
- package/column-pack/resource/index.js +15 -15
- package/column-pack/resource/is-active-column.d.ts +2 -2
- package/column-pack/resource/is-active-column.js +9 -9
- package/column-pack/resource/name-column.d.ts +2 -2
- package/column-pack/resource/name-column.js +10 -10
- package/column-pack/resource/path-column.d.ts +2 -2
- package/column-pack/resource/path-column.js +11 -11
- package/column-pack/resource/title-column.d.ts +2 -2
- package/column-pack/resource/title-column.js +10 -10
- package/column-pack/system/filename-column.d.ts +2 -2
- package/column-pack/system/filename-column.js +9 -9
- package/column-pack/system/filepath-column.d.ts +2 -2
- package/column-pack/system/filepath-column.js +9 -9
- package/column-pack/system/index.d.ts +4 -4
- package/column-pack/system/index.js +11 -11
- package/column-pack/system/ip-address-column.d.ts +2 -2
- package/column-pack/system/ip-address-column.js +9 -9
- package/column-pack/system/url-column.d.ts +3 -3
- package/column-pack/system/url-column.js +13 -13
- package/column-pack/user/email-column.d.ts +2 -2
- package/column-pack/user/email-column.js +11 -11
- package/column-pack/user/index.d.ts +4 -4
- package/column-pack/user/index.js +11 -11
- package/column-pack/user/password-column.d.ts +2 -2
- package/column-pack/user/password-column.js +10 -10
- package/column-pack/user/temp-email-column.d.ts +2 -2
- package/column-pack/user/temp-email-column.js +5 -5
- package/column-pack/user/username-column.d.ts +2 -2
- package/column-pack/user/username-column.js +11 -11
- package/comparison/comparison-aliases.d.ts +10 -10
- package/comparison/comparison-aliases.js +40 -40
- package/comparison/comparison-token.d.ts +17 -17
- package/comparison/comparison-token.js +15 -15
- package/comparison/comparison.d.ts +13 -13
- package/comparison/comparison.js +71 -71
- package/comparison/index.d.ts +4 -4
- package/comparison/index.js +24 -24
- package/comparison/is-comparison-token.d.ts +2 -2
- package/comparison/is-comparison-token.js +8 -8
- package/config/configure-db.d.ts +14 -14
- package/config/configure-db.js +18 -18
- package/config/database-env.d.ts +16 -16
- package/config/database-env.js +14 -14
- package/config/index.d.ts +2 -2
- package/config/index.js +7 -7
- package/database/connection-options.d.ts +7 -7
- package/database/connection-options.js +2 -2
- package/database/database.d.ts +204 -204
- package/database/database.js +330 -330
- package/database/driver-query.d.ts +10 -10
- package/database/driver-query.js +2 -2
- package/database/driver.d.ts +12 -12
- package/database/driver.js +47 -47
- package/database/get-database-path.d.ts +6 -6
- package/database/get-database-path.js +12 -12
- package/database/index.d.ts +7 -7
- package/database/index.js +26 -26
- package/database/load-database.d.ts +9 -9
- package/database/load-database.js +36 -36
- package/database/transaction.d.ts +8 -8
- package/database/transaction.js +2 -2
- package/ddl/alter-table.d.ts +26 -26
- package/ddl/alter-table.js +2 -2
- package/ddl/create-database.d.ts +3 -3
- package/ddl/create-database.js +2 -2
- package/ddl/create-index.d.ts +5 -5
- package/ddl/create-index.js +2 -2
- package/ddl/create-table.d.ts +8 -8
- package/ddl/create-table.js +2 -2
- package/ddl/create-user.d.ts +4 -4
- package/ddl/create-user.js +2 -2
- package/ddl/ddl-builder.d.ts +96 -96
- package/ddl/ddl-builder.js +565 -565
- package/ddl/ddl-repository.d.ts +135 -135
- package/ddl/ddl-repository.js +228 -228
- package/ddl/drop-database.d.ts +4 -4
- package/ddl/drop-database.js +2 -2
- package/ddl/drop-table.d.ts +4 -4
- package/ddl/drop-table.js +2 -2
- package/ddl/drop-user.d.ts +4 -4
- package/ddl/drop-user.js +2 -2
- package/ddl/foreign-key-constraint.d.ts +19 -19
- package/ddl/foreign-key-constraint.js +2 -2
- package/ddl/grant.d.ts +12 -12
- package/ddl/grant.js +2 -2
- package/ddl/index.d.ts +13 -13
- package/ddl/index.js +23 -23
- package/ddl/truncate.d.ts +3 -3
- package/ddl/truncate.js +2 -2
- package/dml/case-expression.d.ts +16 -16
- package/dml/case-expression.js +11 -11
- package/dml/delete.d.ts +8 -8
- package/dml/delete.js +2 -2
- package/dml/from.d.ts +4 -4
- package/dml/from.js +2 -2
- package/dml/group-by.d.ts +4 -4
- package/dml/group-by.js +2 -2
- package/dml/index.d.ts +11 -11
- package/dml/index.js +30 -30
- package/dml/insert.d.ts +14 -14
- package/dml/insert.js +2 -2
- package/dml/join.d.ts +7 -7
- package/dml/join.js +2 -2
- package/dml/order-by.d.ts +2 -2
- package/dml/order-by.js +2 -2
- package/dml/query-builder.d.ts +106 -106
- package/dml/query-builder.js +797 -793
- package/dml/query-builder.js.map +1 -1
- package/dml/query-repository.d.ts +84 -84
- package/dml/query-repository.js +239 -225
- package/dml/query-repository.js.map +1 -1
- package/dml/select.d.ts +29 -29
- package/dml/select.js +2 -2
- package/dml/set-options.d.ts +5 -5
- package/dml/set-options.js +2 -2
- package/dml/subquery.d.ts +5 -5
- package/dml/subquery.js +10 -10
- package/dml/update.d.ts +11 -11
- package/dml/update.js +2 -2
- package/expression/expression-token.d.ts +11 -11
- package/expression/expression-token.js +12 -12
- package/expression/expression.d.ts +6 -6
- package/expression/expression.js +2 -2
- package/expression/identifier.d.ts +7 -7
- package/expression/identifier.js +15 -15
- package/expression/index.d.ts +7 -7
- package/expression/index.js +25 -25
- package/expression/is-expression-token.d.ts +2 -2
- package/expression/is-expression-token.js +7 -7
- package/expression/key-val-expression.d.ts +7 -7
- package/expression/key-val-expression.js +2 -2
- package/expression/literal.d.ts +3 -3
- package/expression/literal.js +2 -2
- package/expression/logical.d.ts +18 -18
- package/expression/logical.js +30 -30
- package/expression/math.d.ts +17 -17
- package/expression/math.js +36 -36
- package/expression/raw.d.ts +8 -8
- package/expression/raw.js +16 -16
- package/expression/simple-expression.d.ts +8 -8
- package/expression/simple-expression.js +2 -2
- package/functions/function-aliases.d.ts +4 -4
- package/functions/function-aliases.js +12 -12
- package/functions/function-token.d.ts +29 -29
- package/functions/function-token.js +15 -15
- package/functions/functions.d.ts +19 -19
- package/functions/functions.js +94 -94
- package/functions/index.d.ts +4 -4
- package/functions/index.js +22 -22
- package/functions/is-database-function.d.ts +8 -8
- package/functions/is-database-function.js +14 -14
- package/functions/signatures/count.d.ts +14 -11
- package/functions/signatures/count.js +2 -2
- package/index.d.ts +16 -16
- package/index.js +32 -32
- package/migration/index.d.ts +3 -3
- package/migration/index.js +9 -9
- package/migration/migration-package.d.ts +14 -14
- package/migration/migration-package.js +10 -10
- package/migration/migration-record.d.ts +10 -10
- package/migration/migration-record.js +2 -2
- package/migration/migration-runner.d.ts +33 -33
- package/migration/migration-runner.js +180 -180
- package/migration/migration.d.ts +12 -12
- package/migration/migration.js +27 -27
- package/migration/migrations/001-create-migration-table.d.ts +8 -8
- package/migration/migrations/001-create-migration-table.js +54 -54
- package/migration/migrations/002-add-migration-package-column.d.ts +9 -9
- package/migration/migrations/002-add-migration-package-column.js +44 -44
- package/package.json +1 -1
- package/record/index.d.ts +1 -1
- package/record/index.js +17 -17
- package/record/record.d.ts +2 -2
- package/record/record.js +2 -2
- package/repository/index.d.ts +2 -2
- package/repository/index.js +5 -5
- package/repository/repository-options.d.ts +6 -6
- package/repository/repository-options.js +2 -2
- package/repository/repository.d.ts +29 -29
- package/repository/repository.js +68 -68
- package/schema/index.d.ts +3 -3
- package/schema/index.js +5 -5
- package/schema/schema-query-repository.d.ts +54 -54
- package/schema/schema-query-repository.js +159 -159
- package/schema/schema-table.d.ts +9 -9
- package/schema/schema-table.js +2 -2
- package/schema/schema.d.ts +4 -4
- package/schema/schema.js +2 -2
- package/seed/auto-seed.d.ts +9 -9
- package/seed/auto-seed.js +61 -61
- package/seed/create-seed-table.d.ts +8 -8
- package/seed/create-seed-table.js +64 -64
- package/seed/index.d.ts +4 -4
- package/seed/index.js +9 -9
- package/seed/seed-record.d.ts +11 -11
- package/seed/seed-record.js +2 -2
- package/seed/seed-runner.d.ts +20 -20
- package/seed/seed-runner.js +91 -91
- package/seed/seed.d.ts +12 -12
- package/seed/seed.js +27 -27
- package/tokens/index.d.ts +1 -1
- package/tokens/index.js +5 -5
- package/triggers/index.d.ts +2 -2
- package/triggers/index.js +18 -18
- package/triggers/prebuilt/index.d.ts +1 -1
- package/triggers/prebuilt/index.js +5 -5
- package/triggers/prebuilt/update-timestamp-trigger.d.ts +16 -16
- package/triggers/prebuilt/update-timestamp-trigger.js +24 -24
- package/triggers/trigger-options.d.ts +22 -22
- package/triggers/trigger-options.js +2 -2
- package/triggers/trigger.d.ts +19 -19
- package/triggers/trigger.js +23 -23
package/ddl/ddl-builder.d.ts
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { StatementBuilder } from '../builder/statement-builder';
|
|
2
|
-
import { ColumnOptions, ColumnType } from '../column';
|
|
3
|
-
import { AddColumnsOptions, AddForeignKeyOptions, ChangeColumnOptions, DropColumnOptions, DropForeignKeyOptions, RenameTableOptions } from './alter-table';
|
|
4
|
-
import { CreateDatabaseOptions } from './create-database';
|
|
5
|
-
import { CreateTableOptions } from './create-table';
|
|
6
|
-
import { CreateUserOptions } from './create-user';
|
|
7
|
-
import { DropDatabaseOptions } from './drop-database';
|
|
8
|
-
import { DropTableOptions } from './drop-table';
|
|
9
|
-
import { DropUserOptions } from './drop-user';
|
|
10
|
-
import { ForeignKeyConstraint, ForeignKeyReferenceOption } from './foreign-key-constraint';
|
|
11
|
-
import { GrantOn, GrantOptions } from './grant';
|
|
12
|
-
import { TruncateOptions } from './truncate';
|
|
13
|
-
import { DatabaseQueryBuilder } from '../dml';
|
|
14
|
-
import { CreateIndexOptions } from './create-index';
|
|
15
|
-
import { DropTriggerOptions, TriggerBody, TriggerOptions } from '../triggers';
|
|
16
|
-
export declare class DataDefinitionBuilder extends StatementBuilder {
|
|
17
|
-
protected columnTypes: typeof ColumnType;
|
|
18
|
-
protected queryBuilderType: typeof DatabaseQueryBuilder;
|
|
19
|
-
getQueryBuilder(): DatabaseQueryBuilder;
|
|
20
|
-
getColumnTypes(): typeof ColumnType;
|
|
21
|
-
createDatabaseStatement(): this;
|
|
22
|
-
createDatabase(options: CreateDatabaseOptions): this;
|
|
23
|
-
createUserStatement(): this;
|
|
24
|
-
createUserPassword(password: string): this;
|
|
25
|
-
createUser(options: CreateUserOptions): this;
|
|
26
|
-
createTableStatement(): this;
|
|
27
|
-
ifNotExists(): this;
|
|
28
|
-
createColumnType(column: ColumnOptions): this;
|
|
29
|
-
columnRequired(): this;
|
|
30
|
-
columnDefaultValue(column: ColumnOptions): this;
|
|
31
|
-
columnDefaultNull(): this;
|
|
32
|
-
columnDefaultTrue(): this;
|
|
33
|
-
columnDefaultFalse(): this;
|
|
34
|
-
columnAutoIncrement(): this;
|
|
35
|
-
createTableColumn(column: ColumnOptions): this;
|
|
36
|
-
createTablePrimaryKeys(names: string[]): this;
|
|
37
|
-
createTableColumns(options: CreateTableOptions): this;
|
|
38
|
-
createTable(options: CreateTableOptions): this;
|
|
39
|
-
constraintStatement(): this;
|
|
40
|
-
createTableTriggers(options: CreateTableOptions): this;
|
|
41
|
-
createIndex(options: CreateIndexOptions): this;
|
|
42
|
-
grantOnDatabase(database: string): this;
|
|
43
|
-
grantOn(on: GrantOn): this;
|
|
44
|
-
/**
|
|
45
|
-
* IMPORTANT: UNSTABLE. Grant is currently only compatible with
|
|
46
|
-
* mysql and mssql and may cause unintended side-effects and/or
|
|
47
|
-
* privilege escalation.
|
|
48
|
-
* This should not be used in most circumstances!
|
|
49
|
-
* Use a dedicated database connection for this method, as it may change
|
|
50
|
-
* the database connection's default database.
|
|
51
|
-
* This method and it's arguments are likely to change in future versions
|
|
52
|
-
*
|
|
53
|
-
* @param options Grant options
|
|
54
|
-
* @returns
|
|
55
|
-
*/
|
|
56
|
-
grant(options: GrantOptions): this;
|
|
57
|
-
foreignKeyStatement(): this;
|
|
58
|
-
foreignKeyName(childTable: string, fk: ForeignKeyConstraint): this;
|
|
59
|
-
foreignKeyColumns(columns: string[]): this;
|
|
60
|
-
referencesStatement(table: string, columns: string[]): this;
|
|
61
|
-
fkOnUpdate(option: ForeignKeyReferenceOption): this;
|
|
62
|
-
fkOnDelete(option: ForeignKeyReferenceOption): this;
|
|
63
|
-
foreignKeyConstraint(childTable: string, fk: ForeignKeyConstraint): void;
|
|
64
|
-
disableForeignKeyChecks(): this;
|
|
65
|
-
enableForeignKeyChecks(): this;
|
|
66
|
-
uniqueConstraint(table: string, column: string): this;
|
|
67
|
-
alterTableStatement(table: string): this;
|
|
68
|
-
addColumns(options: AddColumnsOptions): this;
|
|
69
|
-
addForeignKey(options: AddForeignKeyOptions): this;
|
|
70
|
-
alterColumnStatement(column: string): this;
|
|
71
|
-
changeColumn(options: ChangeColumnOptions): this;
|
|
72
|
-
dropColumn(options: DropColumnOptions): this;
|
|
73
|
-
dropForeignKey(options: DropForeignKeyOptions): this;
|
|
74
|
-
renameTable(options: RenameTableOptions): this;
|
|
75
|
-
dropDatabase(options: DropDatabaseOptions): this;
|
|
76
|
-
dropTable(options: DropTableOptions): this;
|
|
77
|
-
dropUser(options: DropUserOptions): this;
|
|
78
|
-
truncate(options: TruncateOptions): this;
|
|
79
|
-
createTrigger(options: TriggerOptions): this;
|
|
80
|
-
createTriggerStatement(): this;
|
|
81
|
-
getTriggerName(options: TriggerOptions): string;
|
|
82
|
-
createTriggerTableEvent(options: TriggerOptions): this;
|
|
83
|
-
createTriggerTable(table: string): this;
|
|
84
|
-
createTriggerEvent(options: TriggerOptions): this;
|
|
85
|
-
createTriggerBody(sql: TriggerBody): this;
|
|
86
|
-
createTriggerBeginStatement(): this;
|
|
87
|
-
createTriggerEndStatement(): this;
|
|
88
|
-
createTriggerForEachRow(): this;
|
|
89
|
-
dropTrigger(options: DropTriggerOptions): this;
|
|
90
|
-
dropTriggerStatement(): this;
|
|
91
|
-
ifExists(): this;
|
|
92
|
-
dropTriggerName(options: {
|
|
93
|
-
name: string;
|
|
94
|
-
table: string;
|
|
95
|
-
}): this;
|
|
96
|
-
}
|
|
1
|
+
import { StatementBuilder } from '../builder/statement-builder';
|
|
2
|
+
import { ColumnOptions, ColumnType } from '../column';
|
|
3
|
+
import { AddColumnsOptions, AddForeignKeyOptions, ChangeColumnOptions, DropColumnOptions, DropForeignKeyOptions, RenameTableOptions } from './alter-table';
|
|
4
|
+
import { CreateDatabaseOptions } from './create-database';
|
|
5
|
+
import { CreateTableOptions } from './create-table';
|
|
6
|
+
import { CreateUserOptions } from './create-user';
|
|
7
|
+
import { DropDatabaseOptions } from './drop-database';
|
|
8
|
+
import { DropTableOptions } from './drop-table';
|
|
9
|
+
import { DropUserOptions } from './drop-user';
|
|
10
|
+
import { ForeignKeyConstraint, ForeignKeyReferenceOption } from './foreign-key-constraint';
|
|
11
|
+
import { GrantOn, GrantOptions } from './grant';
|
|
12
|
+
import { TruncateOptions } from './truncate';
|
|
13
|
+
import { DatabaseQueryBuilder } from '../dml';
|
|
14
|
+
import { CreateIndexOptions } from './create-index';
|
|
15
|
+
import { DropTriggerOptions, TriggerBody, TriggerOptions } from '../triggers';
|
|
16
|
+
export declare class DataDefinitionBuilder extends StatementBuilder {
|
|
17
|
+
protected columnTypes: typeof ColumnType;
|
|
18
|
+
protected queryBuilderType: typeof DatabaseQueryBuilder;
|
|
19
|
+
getQueryBuilder(): DatabaseQueryBuilder;
|
|
20
|
+
getColumnTypes(): typeof ColumnType;
|
|
21
|
+
createDatabaseStatement(): this;
|
|
22
|
+
createDatabase(options: CreateDatabaseOptions): this;
|
|
23
|
+
createUserStatement(): this;
|
|
24
|
+
createUserPassword(password: string): this;
|
|
25
|
+
createUser(options: CreateUserOptions): this;
|
|
26
|
+
createTableStatement(): this;
|
|
27
|
+
ifNotExists(): this;
|
|
28
|
+
createColumnType(column: ColumnOptions): this;
|
|
29
|
+
columnRequired(): this;
|
|
30
|
+
columnDefaultValue(column: ColumnOptions): this;
|
|
31
|
+
columnDefaultNull(): this;
|
|
32
|
+
columnDefaultTrue(): this;
|
|
33
|
+
columnDefaultFalse(): this;
|
|
34
|
+
columnAutoIncrement(): this;
|
|
35
|
+
createTableColumn(column: ColumnOptions): this;
|
|
36
|
+
createTablePrimaryKeys(names: string[]): this;
|
|
37
|
+
createTableColumns(options: CreateTableOptions): this;
|
|
38
|
+
createTable(options: CreateTableOptions): this;
|
|
39
|
+
constraintStatement(): this;
|
|
40
|
+
createTableTriggers(options: CreateTableOptions): this;
|
|
41
|
+
createIndex(options: CreateIndexOptions): this;
|
|
42
|
+
grantOnDatabase(database: string): this;
|
|
43
|
+
grantOn(on: GrantOn): this;
|
|
44
|
+
/**
|
|
45
|
+
* IMPORTANT: UNSTABLE. Grant is currently only compatible with
|
|
46
|
+
* mysql and mssql and may cause unintended side-effects and/or
|
|
47
|
+
* privilege escalation.
|
|
48
|
+
* This should not be used in most circumstances!
|
|
49
|
+
* Use a dedicated database connection for this method, as it may change
|
|
50
|
+
* the database connection's default database.
|
|
51
|
+
* This method and it's arguments are likely to change in future versions
|
|
52
|
+
*
|
|
53
|
+
* @param options Grant options
|
|
54
|
+
* @returns
|
|
55
|
+
*/
|
|
56
|
+
grant(options: GrantOptions): this;
|
|
57
|
+
foreignKeyStatement(): this;
|
|
58
|
+
foreignKeyName(childTable: string, fk: ForeignKeyConstraint): this;
|
|
59
|
+
foreignKeyColumns(columns: string[]): this;
|
|
60
|
+
referencesStatement(table: string, columns: string[]): this;
|
|
61
|
+
fkOnUpdate(option: ForeignKeyReferenceOption): this;
|
|
62
|
+
fkOnDelete(option: ForeignKeyReferenceOption): this;
|
|
63
|
+
foreignKeyConstraint(childTable: string, fk: ForeignKeyConstraint): void;
|
|
64
|
+
disableForeignKeyChecks(): this;
|
|
65
|
+
enableForeignKeyChecks(): this;
|
|
66
|
+
uniqueConstraint(table: string, column: string): this;
|
|
67
|
+
alterTableStatement(table: string): this;
|
|
68
|
+
addColumns(options: AddColumnsOptions): this;
|
|
69
|
+
addForeignKey(options: AddForeignKeyOptions): this;
|
|
70
|
+
alterColumnStatement(column: string): this;
|
|
71
|
+
changeColumn(options: ChangeColumnOptions): this;
|
|
72
|
+
dropColumn(options: DropColumnOptions): this;
|
|
73
|
+
dropForeignKey(options: DropForeignKeyOptions): this;
|
|
74
|
+
renameTable(options: RenameTableOptions): this;
|
|
75
|
+
dropDatabase(options: DropDatabaseOptions): this;
|
|
76
|
+
dropTable(options: DropTableOptions): this;
|
|
77
|
+
dropUser(options: DropUserOptions): this;
|
|
78
|
+
truncate(options: TruncateOptions): this;
|
|
79
|
+
createTrigger(options: TriggerOptions): this;
|
|
80
|
+
createTriggerStatement(): this;
|
|
81
|
+
getTriggerName(options: TriggerOptions): string;
|
|
82
|
+
createTriggerTableEvent(options: TriggerOptions): this;
|
|
83
|
+
createTriggerTable(table: string): this;
|
|
84
|
+
createTriggerEvent(options: TriggerOptions): this;
|
|
85
|
+
createTriggerBody(sql: TriggerBody): this;
|
|
86
|
+
createTriggerBeginStatement(): this;
|
|
87
|
+
createTriggerEndStatement(): this;
|
|
88
|
+
createTriggerForEachRow(): this;
|
|
89
|
+
dropTrigger(options: DropTriggerOptions): this;
|
|
90
|
+
dropTriggerStatement(): this;
|
|
91
|
+
ifExists(): this;
|
|
92
|
+
dropTriggerName(options: {
|
|
93
|
+
name: string;
|
|
94
|
+
table: string;
|
|
95
|
+
}): this;
|
|
96
|
+
}
|