Skip to content

Documentation


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 ​

protected connection: DatabaseAdapter

Defined in: packages/activerecord/lib/schema-dumper.ts:62

Inherited from ​

BaseSchemaDumper.connection


chkIgnorePattern ​

static chkIgnorePattern: RegExp

Defined in: packages/activerecord/lib/schema-dumper.ts:51

Inherited from ​

BaseSchemaDumper.chkIgnorePattern


DEFAULT_DATETIME_PRECISION ​

readonly static DEFAULT_DATETIME_PRECISION: 6 = 6

Defined in: packages/activerecord/lib/connection-adapters/abstract/schema-dumper.ts:8


exclIgnorePattern ​

static exclIgnorePattern: RegExp

Defined in: packages/activerecord/lib/schema-dumper.ts:52

Inherited from ​

BaseSchemaDumper.exclIgnorePattern


fkIgnorePattern ​

static fkIgnorePattern: RegExp

Defined in: packages/activerecord/lib/schema-dumper.ts:50

Inherited from ​

BaseSchemaDumper.fkIgnorePattern


ignoreTables ​

static ignoreTables: (string | RegExp)[] = []

Defined in: packages/activerecord/lib/schema-dumper.ts:49

Inherited from ​

BaseSchemaDumper.ignoreTables


uniqueIgnorePattern ​

static uniqueIgnorePattern: RegExp

Defined in: packages/activerecord/lib/schema-dumper.ts:53

Inherited from ​

BaseSchemaDumper.uniqueIgnorePattern

Methods ​

adapterType() ​

protected adapterType(): [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 ​

ParameterType
streamS

Returns ​

Promise<S>

Inherited from ​

BaseSchemaDumper.dump


create() ​

static create<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 ​

ParameterType
this{ prototype: T; }
this.prototypeT
connectionDatabaseAdapter
optionsRecord<string, unknown>

Returns ​

Promise<T>

Overrides ​

BaseSchemaDumper.create


dump() ​

static dump<S>(pool?, stream?, config?): Promise<S>

Defined in: packages/activerecord/lib/schema-dumper.ts:134

Type Parameters ​

Type ParameterDefault type
S extends IO | StringIO<string>IO

Parameters ​

ParameterType
poolConnectionPool
streamS
configSchemaDumperConfig

Returns ​

Promise<S>

Inherited from ​

BaseSchemaDumper.dump


new() ​

static new<T>(this, connection, options?): Promise<T>

Defined in: packages/activerecord/lib/schema-dumper.ts:73

Type Parameters ​

Type Parameter
T extends SchemaDumper

Parameters ​

ParameterType
this{ prototype: T; }
this.prototypeT
connectionDatabaseAdapter
optionsRecord<string, unknown>

Returns ​

Promise<T>

Inherited from ​

BaseSchemaDumper.new