Documentation / @blazetrails/activerecord / SchemaDumper
Class: SchemaDumper
Defined in: packages/activerecord/lib/connection-adapters/abstract/schema-dumper.ts:7
Extends
SchemaDumper
Properties
_options
protected_options:Record<string,unknown>
Defined in: packages/activerecord/lib/schema-dumper.ts:63
Inherited from
BaseSchemaDumper._options
connection
protectedconnection:DatabaseAdapter
Defined in: packages/activerecord/lib/schema-dumper.ts:62
Inherited from
BaseSchemaDumper.connection
chkIgnorePattern
staticchkIgnorePattern:RegExp
Defined in: packages/activerecord/lib/schema-dumper.ts:51
Inherited from
BaseSchemaDumper.chkIgnorePattern
DEFAULT_DATETIME_PRECISION
readonlystaticDEFAULT_DATETIME_PRECISION:6=6
Defined in: packages/activerecord/lib/connection-adapters/abstract/schema-dumper.ts:8
exclIgnorePattern
staticexclIgnorePattern:RegExp
Defined in: packages/activerecord/lib/schema-dumper.ts:52
Inherited from
BaseSchemaDumper.exclIgnorePattern
fkIgnorePattern
staticfkIgnorePattern:RegExp
Defined in: packages/activerecord/lib/schema-dumper.ts:50
Inherited from
BaseSchemaDumper.fkIgnorePattern
ignoreTables
staticignoreTables: (string|RegExp)[] =[]
Defined in: packages/activerecord/lib/schema-dumper.ts:49
Inherited from
BaseSchemaDumper.ignoreTables
uniqueIgnorePattern
staticuniqueIgnorePattern:RegExp
Defined in: packages/activerecord/lib/schema-dumper.ts:53
Inherited from
BaseSchemaDumper.uniqueIgnorePattern
Methods
adapterType()
protectedadapterType(): [string,string] |null
Defined in: packages/activerecord/lib/schema-dumper.ts:176
Returns
[string, string] | null
Inherited from
BaseSchemaDumper.adapterType
dump()
dump<
S>(stream):Promise<S>
Defined in: packages/activerecord/lib/schema-dumper.ts:145
Type Parameters
| Type Parameter |
|---|
S extends IO | StringIO<string> |
Parameters
| Parameter | Type |
|---|---|
stream | S |
Returns
Promise<S>
Inherited from
BaseSchemaDumper.dump
create()
staticcreate<T>(this,connection,options?):Promise<T>
Defined in: packages/activerecord/lib/connection-adapters/abstract/schema-dumper.ts:10
Type Parameters
| Type Parameter |
|---|
T extends SchemaDumper |
Parameters
| Parameter | Type |
|---|---|
this | { prototype: T; } |
this.prototype | T |
connection | DatabaseAdapter |
options | Record<string, unknown> |
Returns
Promise<T>
Overrides
BaseSchemaDumper.create
dump()
staticdump<S>(pool?,stream?,config?):Promise<S>
Defined in: packages/activerecord/lib/schema-dumper.ts:134
Type Parameters
| Type Parameter | Default type |
|---|---|
S extends IO | StringIO<string> | IO |
Parameters
| Parameter | Type |
|---|---|
pool | ConnectionPool |
stream | S |
config | SchemaDumperConfig |
Returns
Promise<S>
Inherited from
BaseSchemaDumper.dump
new()
staticnew<T>(this,connection,options?):Promise<T>
Defined in: packages/activerecord/lib/schema-dumper.ts:73
Type Parameters
| Type Parameter |
|---|
T extends SchemaDumper |
Parameters
| Parameter | Type |
|---|---|
this | { prototype: T; } |
this.prototype | T |
connection | DatabaseAdapter |
options | Record<string, unknown> |
Returns
Promise<T>
Inherited from
BaseSchemaDumper.new