Documentation / @blazetrails/activerecord / ActiveRecord
Variable: ActiveRecord
constActiveRecord:Autoload&CallableMethods<Autoload> & {afterAllTransactionsCommit: (block) =>void|Promise<void>;AmbiguousSourceReflectionForThroughAssociation: typeofAmbiguousSourceReflectionForThroughAssociation;AssociationRelation: typeofAssociationRelation;Associations:Autoload&CallableMethods<Autoload> & {AliasTracker: typeofAliasTracker;AssociationScope: typeofAssociationScope;BelongsToAssociation: typeofBelongsToAssociation;BelongsToPolymorphicAssociation: typeofBelongsToPolymorphicAssociation;Builder:Autoload&CallableMethods<Autoload> & {Association: typeofAssociation;BelongsTo: typeofBelongsTo;CollectionAssociation: typeofCollectionAssociation;HasAndBelongsToMany: typeofHasAndBelongsToMany;HasMany: typeofHasMany;HasOne: typeofHasOne;SingularAssociation: typeofSingularAssociation; };CollectionProxy: typeofCollectionProxy;DisableJoinsAssociationScope: typeofDisableJoinsAssociationScope;HasManyAssociation: typeofHasManyAssociation;HasManyThroughAssociation: typeofHasManyThroughAssociation;HasOneAssociation: typeofHasOneAssociation;HasOneThroughAssociation: typeofHasOneThroughAssociation;JoinDependency: typeofJoinDependency;Preloader: typeofPreloader; };AsynchronousQueryInsideTransactionError: typeofAsynchronousQueryInsideTransactionError;AttributeMethods:Autoload&CallableMethods<Autoload> & {BeforeTypeCast: {[included]:void; };CompositePrimaryKey: typeofCompositePrimaryKey;Dirty: { getattributesInDatabase():HashWithIndifferentAccess<unknown>; getchangedAttributeNamesToSave():string[]; getchangesToSave():HashWithIndifferentAccess<[unknown,unknown]>; gethasChangesToSave():boolean; getsavedChanges():HashWithIndifferentAccess<[unknown,unknown]> |Record<string, [unknown,unknown]>; };PrimaryKey: typeofPrimaryKey;Query: {_queryAttribute: (this,attrName) =>boolean;attribute?: (this,attrName) =>boolean;queryAttribute: (this,attrName) =>boolean;queryCastAttribute: { };[included]:void; };Read: {_readAttribute: (this,attrName,block?) =>unknown;attribute: { };readAttribute: (this,attrName,block?) =>unknown; };Serialization: {[included]:void; };TimeZoneConversion: {[included]:void; };Write: {[included]:void; }; };Base: typeofBase;Coders: {ColumnSerializer: typeofColumnSerializer;JSON: typeofJSON;name:string;YAMLColumn: typeofYAMLColumn; };ConnectionAdapters:Autoload&CallableMethods<Autoload> &ConnectionAdapterClasses& {AbstractAdapter: typeofDatabaseAdapter;adapters:Map<string, [string,string]>;ConnectionPool: typeofConnectionPool;load: (adapterName) =>Promise<void>;MySQL: {Column: typeofColumn;name:string;TypeMetadata: typeofTypeMetadata; };PostgreSQL: {Column: typeofColumn;name:string;OID:PostgreSQLOID& {Bit: typeofBit;BitVarying: typeofBitVarying;Bytea: typeofBytea;Cidr: typeofCidr;Date: typeofDate;DateTime: typeofDateTime;Decimal: typeofDecimal;Enum: typeofEnum;Hstore: typeofHstore;Inet: typeofInet;Interval: typeofInterval;Jsonb: typeofJsonb;LegacyPoint: typeofLegacyPoint;Macaddr: typeofMacaddr;Money: typeofMoney;Oid: typeofOid;Point: typeofPoint;SpecializedString: typeofSpecializedString;Timestamp: typeofTimestamp;TimestampWithTimeZone: typeofTimestampWithTimeZone;Uuid: typeofUuid;Vector: typeofVector;Xml: typeofXml; };TypeMetadata: typeofTypeMetadata; };register: (name,className,path) =>void;resolve: (adapterName) => typeofDatabaseAdapter;SQLite3:SQLite3Namespace& {Column: typeofColumn;Quoting:__module;SchemaStatements:__module; }; };ConnectionHandling:__module;Deadlocked: typeofDeadlocked;DestroyAssociationAsyncJob: typeofDestroyAssociationAsyncJob;DisableJoinsAssociationRelation: typeofDisableJoinsAssociationRelation;Encryption:Autoload&CallableMethods<Autoload> & {AutoFilteredParameters: typeofAutoFilteredParameters;Cipher: typeofCipher;config:Config;Config: typeofConfig;Configurable: typeofConfigurable;Context: typeofContext;Contexts: typeofContexts;DerivedSecretKeyProvider: typeofDerivedSecretKeyProvider;DeterministicKeyProvider: typeofDeterministicKeyProvider;EncryptableRecord: typeofEncryptableRecord;encryptedAttributeDeclarationListeners:DeclarationListener[] |undefined;EncryptedAttributeType: typeofEncryptedAttributeType;EncryptedFixtures: { };EncryptingOnlyEncryptor: typeofEncryptingOnlyEncryptor;Encryptor: typeofEncryptor;EnvelopeEncryptionKeyProvider: typeofEnvelopeEncryptionKeyProvider;Errors:__module;ExtendedDeterministicQueries: typeofExtendedDeterministicQueries;ExtendedDeterministicUniquenessValidator: typeofExtendedDeterministicUniquenessValidator;Key: typeofKey;KeyGenerator: typeofKeyGenerator;KeyProvider: typeofKeyProvider;Message: typeofMessage;MessageSerializer: typeofMessageSerializer;NullEncryptor: typeofNullEncryptor;Properties: typeofProperties;ReadOnlyNullEncryptor: typeofReadOnlyNullEncryptor;Scheme: typeofScheme; } &Omit<typeofConfigurable,"prototype"> &Omit<typeofContexts,"prototype">;Enum: {_enum: { };_enumMethodsModule: { };assertValidEnumDefinitionValues: { };assertValidEnumOptions: { };detectEnumConflictBang: { };detectNegativeEnumConditionsBang: { };enum: (this,name,values,options?) =>void;EnumType: typeofEnumType;raiseConflictError: { };[extended]:void; };Fixture: typeofFixture;FixtureClassNotFound: typeofFixtureClassNotFound;FixtureSet: typeofFixtureSet;HasManyThroughAssociationNotFoundError: typeofHasManyThroughAssociationNotFoundError;HasManyThroughAssociationPointlessSourceTypeError: typeofHasManyThroughAssociationPointlessSourceTypeError;HasManyThroughAssociationPolymorphicSourceError: typeofHasManyThroughAssociationPolymorphicSourceError;HasManyThroughAssociationPolymorphicThroughError: typeofHasManyThroughAssociationPolymorphicThroughError;HasManyThroughCantAssociateThroughHasOneOrManyReflection: typeofHasManyThroughCantAssociateThroughHasOneOrManyReflection;HasManyThroughNestedAssociationsAreReadonly: typeofHasManyThroughNestedAssociationsAreReadonly;HasManyThroughSourceAssociationNotFoundError: typeofHasManyThroughSourceAssociationNotFoundError;HasOneAssociationPolymorphicThroughError: typeofHasOneAssociationPolymorphicThroughError;HasOneThroughCantAssociateThroughCollection: typeofHasOneThroughCantAssociateThroughCollection;HasOneThroughCantAssociateThroughHasOneOrManyReflection: typeofHasOneThroughCantAssociateThroughHasOneOrManyReflection;HasOneThroughNestedAssociationsAreReadonly: typeofHasOneThroughNestedAssociationsAreReadonly;InverseOfAssociationRecursiveError: typeofInverseOfAssociationRecursiveError;IrreversibleMigration: typeofIrreversibleMigration;Locking:Autoload&CallableMethods<Autoload> & {Optimistic: {[included]:void; };Pessimistic: {lockBang: <T>(this,lock) =>Promise<T>;withLock: {<T,R>(this,fn):Promise<R|undefined>; <T,R>(this,lockClause,fn):Promise<R|undefined>; <T,R>(this,options,fn):Promise<R|undefined>; <T,R>(this,lockClause,options,fn):Promise<R|undefined>; }; }; };Marshalling:__module;Middleware:Autoload&CallableMethods<Autoload> & {DatabaseSelector: typeofDatabaseSelector;ShardSelector: typeofShardSelector; };Migration: typeofMigration;ModelSchema:__module;Point: (x,y) => {x:number;y:number; };PredicateBuilder: typeofPredicateBuilder;Querying:__module;Railtie?:unknown;Railties: {ControllerRuntime?:object;name:string; };Reflection:__module;Relation: typeofRelation;Result: typeofResult;RuntimeRegistry:RuntimeRegistry;Sanitization:__module;Scoping:Autoload&CallableMethods<Autoload> & {Default: typeofDefault;Named:__module; };SecurePassword:__module;SecureToken:__module;Serialization:__module;Store:__module;Suppressor:__module;TableMetadata: typeofTableMetadata;Tasks:Autoload&CallableMethods<Autoload> & {DatabaseTasks: typeofDatabaseTasks;MySQLDatabaseTasks: typeofMySQLDatabaseTasks;PostgreSQLDatabaseTasks: typeofPostgreSQLDatabaseTasks;SQLiteDatabaseTasks: typeofSQLiteDatabaseTasks; };ThroughCantAssociateThroughHasOneOrManyReflection: typeofThroughCantAssociateThroughHasOneOrManyReflection;ThroughNestedAssociationsAreReadonly: typeofThroughNestedAssociationsAreReadonly;Trailties: {name:string; };Type:Type;Validations: {AbsenceValidator: typeofAbsenceValidator;AssociatedValidator: typeofAssociatedValidator;customValidationContext: (this) =>boolean;LengthValidator: typeofLengthValidator;NumericalityValidator: typeofNumericalityValidator;PresenceValidator: typeofPresenceValidator;UniquenessValidator: typeofUniquenessValidator;validate: (this,context?) =>Promise<boolean>; }; }
Defined in: packages/activerecord/lib/namespaces.ts:250
Type Declaration
afterAllTransactionsCommit
afterAllTransactionsCommit: (
block) =>void|Promise<void>
Parameters
| Parameter | Type |
|---|---|
block | () => void | Promise<void> |
Returns
void | Promise<void>
AmbiguousSourceReflectionForThroughAssociation
AmbiguousSourceReflectionForThroughAssociation: typeof
AmbiguousSourceReflectionForThroughAssociation
AssociationRelation
AssociationRelation: typeof
AssociationRelation
Associations
Associations:
Autoload&CallableMethods<Autoload> & {AliasTracker: typeofAliasTracker;AssociationScope: typeofAssociationScope;BelongsToAssociation: typeofBelongsToAssociation;BelongsToPolymorphicAssociation: typeofBelongsToPolymorphicAssociation;Builder:Autoload&CallableMethods<Autoload> & {Association: typeofAssociation;BelongsTo: typeofBelongsTo;CollectionAssociation: typeofCollectionAssociation;HasAndBelongsToMany: typeofHasAndBelongsToMany;HasMany: typeofHasMany;HasOne: typeofHasOne;SingularAssociation: typeofSingularAssociation; };CollectionProxy: typeofCollectionProxy;DisableJoinsAssociationScope: typeofDisableJoinsAssociationScope;HasManyAssociation: typeofHasManyAssociation;HasManyThroughAssociation: typeofHasManyThroughAssociation;HasOneAssociation: typeofHasOneAssociation;HasOneThroughAssociation: typeofHasOneThroughAssociation;JoinDependency: typeofJoinDependency;Preloader: typeofPreloader; }
Type Declaration
AliasTracker
AliasTracker: typeof
AliasTracker
AssociationScope
AssociationScope: typeof
AssociationScope
BelongsToAssociation
BelongsToAssociation: typeof
BelongsToAssociation
BelongsToPolymorphicAssociation
BelongsToPolymorphicAssociation: typeof
BelongsToPolymorphicAssociation
Builder
Builder:
Autoload&CallableMethods<Autoload> & {Association: typeofAssociation;BelongsTo: typeofBelongsTo;CollectionAssociation: typeofCollectionAssociation;HasAndBelongsToMany: typeofHasAndBelongsToMany;HasMany: typeofHasMany;HasOne: typeofHasOne;SingularAssociation: typeofSingularAssociation; }
Type Declaration
Association
Association: typeof
Association
BelongsTo
BelongsTo: typeof
BelongsTo
CollectionAssociation
CollectionAssociation: typeof
CollectionAssociation
HasAndBelongsToMany
HasAndBelongsToMany: typeof
HasAndBelongsToMany
HasMany
HasMany: typeof
HasMany
HasOne
HasOne: typeof
HasOne
SingularAssociation
SingularAssociation: typeof
SingularAssociation
CollectionProxy
CollectionProxy: typeof
CollectionProxy
DisableJoinsAssociationScope
DisableJoinsAssociationScope: typeof
DisableJoinsAssociationScope
HasManyAssociation
HasManyAssociation: typeof
HasManyAssociation
HasManyThroughAssociation
HasManyThroughAssociation: typeof
HasManyThroughAssociation
HasOneAssociation
HasOneAssociation: typeof
HasOneAssociation
HasOneThroughAssociation
HasOneThroughAssociation: typeof
HasOneThroughAssociation
JoinDependency
JoinDependency: typeof
JoinDependency
Preloader
Preloader: typeof
Preloader
AsynchronousQueryInsideTransactionError
AsynchronousQueryInsideTransactionError: typeof
AsynchronousQueryInsideTransactionError
AttributeMethods
AttributeMethods:
Autoload&CallableMethods<Autoload> & {BeforeTypeCast: {[included]:void; };CompositePrimaryKey: typeofCompositePrimaryKey;Dirty: { getattributesInDatabase():HashWithIndifferentAccess<unknown>; getchangedAttributeNamesToSave():string[]; getchangesToSave():HashWithIndifferentAccess<[unknown,unknown]>; gethasChangesToSave():boolean; getsavedChanges():HashWithIndifferentAccess<[unknown,unknown]> |Record<string, [unknown,unknown]>; };PrimaryKey: typeofPrimaryKey;Query: {_queryAttribute: (this,attrName) =>boolean;attribute?: (this,attrName) =>boolean;queryAttribute: (this,attrName) =>boolean;queryCastAttribute: { };[included]:void; };Read: {_readAttribute: (this,attrName,block?) =>unknown;attribute: { };readAttribute: (this,attrName,block?) =>unknown; };Serialization: {[included]:void; };TimeZoneConversion: {[included]:void; };Write: {[included]:void; }; }
Type Declaration
BeforeTypeCast
BeforeTypeCast: {
[included]:void; }
BeforeTypeCast.[included]()
[included](
base):void
Parameters
| Parameter | Type |
|---|---|
base | BeforeTypeCastIncludeHost |
Returns
void
CompositePrimaryKey
CompositePrimaryKey: typeof
CompositePrimaryKey
Dirty
Dirty: { get
attributesInDatabase():HashWithIndifferentAccess<unknown>; getchangedAttributeNamesToSave():string[]; getchangesToSave():HashWithIndifferentAccess<[unknown,unknown]>; gethasChangesToSave():boolean; getsavedChanges():HashWithIndifferentAccess<[unknown,unknown]> |Record<string, [unknown,unknown]>; }
Dirty.attributesInDatabase
Get Signature
get attributesInDatabase():
HashWithIndifferentAccess<unknown>
Defined in: packages/activerecord/lib/attribute-methods/dirty.ts:94
Returns
HashWithIndifferentAccess<unknown>
Dirty.changedAttributeNamesToSave
Get Signature
get changedAttributeNamesToSave():
string[]
Defined in: packages/activerecord/lib/attribute-methods/dirty.ts:90
Returns
string[]
Dirty.changesToSave
Get Signature
get changesToSave():
HashWithIndifferentAccess<[unknown,unknown]>
Defined in: packages/activerecord/lib/attribute-methods/dirty.ts:86
Returns
HashWithIndifferentAccess<[unknown, unknown]>
Dirty.hasChangesToSave
Get Signature
get hasChangesToSave():
boolean
Defined in: packages/activerecord/lib/attribute-methods/dirty.ts:82
Returns
boolean
Dirty.savedChanges
Get Signature
get savedChanges():
HashWithIndifferentAccess<[unknown,unknown]> |Record<string, [unknown,unknown]>
Defined in: packages/activerecord/lib/attribute-methods/dirty.ts:76
Returns
HashWithIndifferentAccess<[unknown, unknown]> | Record<string, [unknown, unknown]>
PrimaryKey
PrimaryKey: typeof
PrimaryKey
Query
Query: {
_queryAttribute: (this,attrName) =>boolean;attribute?: (this,attrName) =>boolean;queryAttribute: (this,attrName) =>boolean;queryCastAttribute: { };[included]:void; }
Query._queryAttribute
_queryAttribute: (
this,attrName) =>boolean
Parameters
| Parameter | Type |
|---|---|
this | QueryHost |
attrName | string |
Returns
boolean
Query.attribute?
attribute?: (
this,attrName) =>boolean=queryAttribute
Parameters
| Parameter | Type |
|---|---|
this | QueryHost |
attrName | string |
Returns
boolean
Query.queryAttribute
queryAttribute: (
this,attrName) =>boolean
Parameters
| Parameter | Type |
|---|---|
this | QueryHost |
attrName | string |
Returns
boolean
Query.queryCastAttribute
queryCastAttribute: { }
Query.[included]()
[included](
base):void
Parameters
| Parameter | Type |
|---|---|
base | QueryIncludeHost |
Returns
void
Read
Read: {
_readAttribute: (this,attrName,block?) =>unknown;attribute: { };readAttribute: (this,attrName,block?) =>unknown; }
Read._readAttribute
_readAttribute: (
this,attrName,block?) =>unknown
Parameters
| Parameter | Type |
|---|---|
this | AttributeHolder |
attrName | string |
block? | (name) => unknown |
Returns
unknown
Read.attribute
attribute: { }
Read.readAttribute
readAttribute: (
this,attrName,block?) =>unknown
Parameters
| Parameter | Type |
|---|---|
this | ReadAttributeHost |
attrName | string |
block? | (name) => unknown |
Returns
unknown
Serialization
Serialization: {
[included]:void; }
Serialization.[included]()
[included](
base):void
Parameters
| Parameter | Type |
|---|---|
base | SerializationIncludeHost |
Returns
void
TimeZoneConversion
TimeZoneConversion: {
[included]:void; }
TimeZoneConversion.[included]()
[included](
base):void
Parameters
| Parameter | Type |
|---|---|
base | TimeZoneConversionIncludeHost |
Returns
void
Write
Write: {
[included]:void; }
Write.[included]()
[included](
base):void
Parameters
| Parameter | Type |
|---|---|
base | WriteIncludeHost |
Returns
void
Base
Base: typeof
Base
Coders
Coders: {
ColumnSerializer: typeofColumnSerializer;JSON: typeofJSON;name:string;YAMLColumn: typeofYAMLColumn; }
Coders.ColumnSerializer
ColumnSerializer: typeof
ColumnSerializer
Coders.JSON
JSON: typeof
JSON
Coders.name
name:
string
Coders.YAMLColumn
YAMLColumn: typeof
YAMLColumn
ConnectionAdapters
ConnectionAdapters:
Autoload&CallableMethods<Autoload> &ConnectionAdapterClasses& {AbstractAdapter: typeofDatabaseAdapter;adapters:Map<string, [string,string]>;ConnectionPool: typeofConnectionPool;load: (adapterName) =>Promise<void>;MySQL: {Column: typeofColumn;name:string;TypeMetadata: typeofTypeMetadata; };PostgreSQL: {Column: typeofColumn;name:string;OID:PostgreSQLOID& {Bit: typeofBit;BitVarying: typeofBitVarying;Bytea: typeofBytea;Cidr: typeofCidr;Date: typeofDate;DateTime: typeofDateTime;Decimal: typeofDecimal;Enum: typeofEnum;Hstore: typeofHstore;Inet: typeofInet;Interval: typeofInterval;Jsonb: typeofJsonb;LegacyPoint: typeofLegacyPoint;Macaddr: typeofMacaddr;Money: typeofMoney;Oid: typeofOid;Point: typeofPoint;SpecializedString: typeofSpecializedString;Timestamp: typeofTimestamp;TimestampWithTimeZone: typeofTimestampWithTimeZone;Uuid: typeofUuid;Vector: typeofVector;Xml: typeofXml; };TypeMetadata: typeofTypeMetadata; };register: (name,className,path) =>void;resolve: (adapterName) => typeofDatabaseAdapter;SQLite3:SQLite3Namespace& {Column: typeofColumn;Quoting:__module;SchemaStatements:__module; }; }
Type Declaration
AbstractAdapter
AbstractAdapter: typeof
DatabaseAdapter
adapters
adapters:
Map<string, [string,string]>
ConnectionPool
ConnectionPool: typeof
ConnectionPool
load
load: (
adapterName) =>Promise<void>
Parameters
| Parameter | Type |
|---|---|
adapterName | string | undefined |
Returns
Promise<void>
No Rails Equivalent
PERMANENT
MySQL
MySQL: {
Column: typeofColumn;name:string;TypeMetadata: typeofTypeMetadata; }
MySQL.Column
Column: typeof
Column
MySQL.name
name:
string
MySQL.TypeMetadata
TypeMetadata: typeof
TypeMetadata
PostgreSQL
PostgreSQL: {
Column: typeofColumn;name:string;OID:PostgreSQLOID& {Bit: typeofBit;BitVarying: typeofBitVarying;Bytea: typeofBytea;Cidr: typeofCidr;Date: typeofDate;DateTime: typeofDateTime;Decimal: typeofDecimal;Enum: typeofEnum;Hstore: typeofHstore;Inet: typeofInet;Interval: typeofInterval;Jsonb: typeofJsonb;LegacyPoint: typeofLegacyPoint;Macaddr: typeofMacaddr;Money: typeofMoney;Oid: typeofOid;Point: typeofPoint;SpecializedString: typeofSpecializedString;Timestamp: typeofTimestamp;TimestampWithTimeZone: typeofTimestampWithTimeZone;Uuid: typeofUuid;Vector: typeofVector;Xml: typeofXml; };TypeMetadata: typeofTypeMetadata; }
PostgreSQL.Column
Column: typeof
Column
PostgreSQL.name
name:
string
PostgreSQL.OID
OID:
PostgreSQLOID& {Bit: typeofBit;BitVarying: typeofBitVarying;Bytea: typeofBytea;Cidr: typeofCidr;Date: typeofDate;DateTime: typeofDateTime;Decimal: typeofDecimal;Enum: typeofEnum;Hstore: typeofHstore;Inet: typeofInet;Interval: typeofInterval;Jsonb: typeofJsonb;LegacyPoint: typeofLegacyPoint;Macaddr: typeofMacaddr;Money: typeofMoney;Oid: typeofOid;Point: typeofPoint;SpecializedString: typeofSpecializedString;Timestamp: typeofTimestamp;TimestampWithTimeZone: typeofTimestampWithTimeZone;Uuid: typeofUuid;Vector: typeofVector;Xml: typeofXml; }
Type Declaration
Bit
Bit: typeof
Bit
BitVarying
BitVarying: typeof
BitVarying
Bytea
Bytea: typeof
Bytea
Cidr
Cidr: typeof
Cidr
Date
Date: typeof
Date
DateTime
DateTime: typeof
DateTime
Decimal
Decimal: typeof
Decimal
Enum
Enum: typeof
Enum
Hstore
Hstore: typeof
Hstore
Inet
Inet: typeof
Inet
Interval
Interval: typeof
Interval
Jsonb
Jsonb: typeof
Jsonb
LegacyPoint
LegacyPoint: typeof
LegacyPoint
Macaddr
Macaddr: typeof
Macaddr
Money
Money: typeof
Money
Oid
Oid: typeof
Oid
Point
Point: typeof
Point
SpecializedString
SpecializedString: typeof
SpecializedString
Timestamp
Timestamp: typeof
Timestamp
TimestampWithTimeZone
TimestampWithTimeZone: typeof
TimestampWithTimeZone
Uuid
Uuid: typeof
Uuid
Vector
Vector: typeof
Vector
Xml
Xml: typeof
Xml
PostgreSQL.TypeMetadata
TypeMetadata: typeof
TypeMetadata
register
register: (
name,className,path) =>void
Parameters
| Parameter | Type |
|---|---|
name | string |
className | string |
path | string |
Returns
void
resolve
resolve: (
adapterName) => typeofDatabaseAdapter
Parameters
| Parameter | Type |
|---|---|
adapterName | string | undefined |
Returns
typeof DatabaseAdapter
SQLite3
SQLite3:
SQLite3Namespace& {Column: typeofColumn;Quoting:__module;SchemaStatements:__module; }
Type Declaration
Column
Column: typeof
Column
Quoting
Quoting:
__module
SchemaStatements
SchemaStatements:
__module
ConnectionHandling
ConnectionHandling:
__module
Deadlocked
Deadlocked: typeof
Deadlocked
DestroyAssociationAsyncJob
DestroyAssociationAsyncJob: typeof
DestroyAssociationAsyncJob
DisableJoinsAssociationRelation
DisableJoinsAssociationRelation: typeof
DisableJoinsAssociationRelation
Encryption
Encryption:
Autoload&CallableMethods<Autoload> & {AutoFilteredParameters: typeofAutoFilteredParameters;Cipher: typeofCipher;config:Config;Config: typeofConfig;Configurable: typeofConfigurable;Context: typeofContext;Contexts: typeofContexts;DerivedSecretKeyProvider: typeofDerivedSecretKeyProvider;DeterministicKeyProvider: typeofDeterministicKeyProvider;EncryptableRecord: typeofEncryptableRecord;encryptedAttributeDeclarationListeners:DeclarationListener[] |undefined;EncryptedAttributeType: typeofEncryptedAttributeType;EncryptedFixtures: { };EncryptingOnlyEncryptor: typeofEncryptingOnlyEncryptor;Encryptor: typeofEncryptor;EnvelopeEncryptionKeyProvider: typeofEnvelopeEncryptionKeyProvider;Errors:__module;ExtendedDeterministicQueries: typeofExtendedDeterministicQueries;ExtendedDeterministicUniquenessValidator: typeofExtendedDeterministicUniquenessValidator;Key: typeofKey;KeyGenerator: typeofKeyGenerator;KeyProvider: typeofKeyProvider;Message: typeofMessage;MessageSerializer: typeofMessageSerializer;NullEncryptor: typeofNullEncryptor;Properties: typeofProperties;ReadOnlyNullEncryptor: typeofReadOnlyNullEncryptor;Scheme: typeofScheme; } &Omit<typeofConfigurable,"prototype"> &Omit<typeofContexts,"prototype">
Type Declaration
AutoFilteredParameters
AutoFilteredParameters: typeof
AutoFilteredParameters
Cipher
Cipher: typeof
Cipher
config
config:
Config
Config
Config: typeof
Config
Configurable
Configurable: typeof
Configurable
Context
Context: typeof
Context
Contexts
Contexts: typeof
Contexts
DerivedSecretKeyProvider
DerivedSecretKeyProvider: typeof
DerivedSecretKeyProvider
DeterministicKeyProvider
DeterministicKeyProvider: typeof
DeterministicKeyProvider
EncryptableRecord
EncryptableRecord: typeof
EncryptableRecord
encryptedAttributeDeclarationListeners
encryptedAttributeDeclarationListeners:
DeclarationListener[] |undefined
EncryptedAttributeType
EncryptedAttributeType: typeof
EncryptedAttributeType
EncryptedFixtures
EncryptedFixtures: { }
EncryptingOnlyEncryptor
EncryptingOnlyEncryptor: typeof
EncryptingOnlyEncryptor
Encryptor
Encryptor: typeof
Encryptor
EnvelopeEncryptionKeyProvider
EnvelopeEncryptionKeyProvider: typeof
EnvelopeEncryptionKeyProvider
Errors
Errors:
__module
ExtendedDeterministicQueries
ExtendedDeterministicQueries: typeof
ExtendedDeterministicQueries
ExtendedDeterministicUniquenessValidator
ExtendedDeterministicUniquenessValidator: typeof
ExtendedDeterministicUniquenessValidator
Key
Key: typeof
Key
KeyGenerator
KeyGenerator: typeof
KeyGenerator
KeyProvider
KeyProvider: typeof
KeyProvider
Message
Message: typeof
Message
MessageSerializer
MessageSerializer: typeof
MessageSerializer
NullEncryptor
NullEncryptor: typeof
NullEncryptor
Properties
Properties: typeof
Properties
ReadOnlyNullEncryptor
ReadOnlyNullEncryptor: typeof
ReadOnlyNullEncryptor
Scheme
Scheme: typeof
Scheme
Enum
Enum: {
_enum: { };_enumMethodsModule: { };assertValidEnumDefinitionValues: { };assertValidEnumOptions: { };detectEnumConflictBang: { };detectNegativeEnumConditionsBang: { };enum: (this,name,values,options?) =>void;EnumType: typeofEnumType;raiseConflictError: { };[extended]:void; }
Enum._enum
_enum: { }
Enum._enumMethodsModule
_enumMethodsModule: { }
Enum.assertValidEnumDefinitionValues
assertValidEnumDefinitionValues: { }
Enum.assertValidEnumOptions
assertValidEnumOptions: { }
Enum.detectEnumConflictBang
detectEnumConflictBang: { }
Enum.detectNegativeEnumConditionsBang
detectNegativeEnumConditionsBang: { }
Enum.enum
enum: (
this,name,values,options?) =>void=enumMethod
Parameters
| Parameter | Type |
|---|---|
this | typeof Base |
name | string |
values | string[] | Record<string, EnumValue> |
options? | EnumMacroOptions |
Returns
void
Enum.EnumType
EnumType: typeof
EnumType
Enum.raiseConflictError
raiseConflictError: { }
Enum.[extended]()
[extended](
base):void
Parameters
| Parameter | Type |
|---|---|
base | object |
Returns
void
Fixture
Fixture: typeof
Fixture
FixtureClassNotFound
FixtureClassNotFound: typeof
FixtureClassNotFound
FixtureSet
FixtureSet: typeof
FixtureSet
HasManyThroughAssociationNotFoundError
HasManyThroughAssociationNotFoundError: typeof
HasManyThroughAssociationNotFoundError
HasManyThroughAssociationPointlessSourceTypeError
HasManyThroughAssociationPointlessSourceTypeError: typeof
HasManyThroughAssociationPointlessSourceTypeError
HasManyThroughAssociationPolymorphicSourceError
HasManyThroughAssociationPolymorphicSourceError: typeof
HasManyThroughAssociationPolymorphicSourceError
HasManyThroughAssociationPolymorphicThroughError
HasManyThroughAssociationPolymorphicThroughError: typeof
HasManyThroughAssociationPolymorphicThroughError
HasManyThroughCantAssociateThroughHasOneOrManyReflection
HasManyThroughCantAssociateThroughHasOneOrManyReflection: typeof
HasManyThroughCantAssociateThroughHasOneOrManyReflection
HasManyThroughNestedAssociationsAreReadonly
HasManyThroughNestedAssociationsAreReadonly: typeof
HasManyThroughNestedAssociationsAreReadonly
HasManyThroughSourceAssociationNotFoundError
HasManyThroughSourceAssociationNotFoundError: typeof
HasManyThroughSourceAssociationNotFoundError
HasOneAssociationPolymorphicThroughError
HasOneAssociationPolymorphicThroughError: typeof
HasOneAssociationPolymorphicThroughError
HasOneThroughCantAssociateThroughCollection
HasOneThroughCantAssociateThroughCollection: typeof
HasOneThroughCantAssociateThroughCollection
HasOneThroughCantAssociateThroughHasOneOrManyReflection
HasOneThroughCantAssociateThroughHasOneOrManyReflection: typeof
HasOneThroughCantAssociateThroughHasOneOrManyReflection
HasOneThroughNestedAssociationsAreReadonly
HasOneThroughNestedAssociationsAreReadonly: typeof
HasOneThroughNestedAssociationsAreReadonly
InverseOfAssociationRecursiveError
InverseOfAssociationRecursiveError: typeof
InverseOfAssociationRecursiveError
IrreversibleMigration
IrreversibleMigration: typeof
IrreversibleMigration
Locking
Locking:
Autoload&CallableMethods<Autoload> & {Optimistic: {[included]:void; };Pessimistic: {lockBang: <T>(this,lock) =>Promise<T>;withLock: {<T,R>(this,fn):Promise<R|undefined>; <T,R>(this,lockClause,fn):Promise<R|undefined>; <T,R>(this,options,fn):Promise<R|undefined>; <T,R>(this,lockClause,options,fn):Promise<R|undefined>; }; }; }
Type Declaration
Optimistic
Optimistic: {
[included]:void; }
Optimistic.[included]()
[included](
base):void
Parameters
| Parameter | Type |
|---|---|
base | object |
Returns
void
Pessimistic
Pessimistic: {
lockBang: <T>(this,lock) =>Promise<T>;withLock: {<T,R>(this,fn):Promise<R|undefined>; <T,R>(this,lockClause,fn):Promise<R|undefined>; <T,R>(this,options,fn):Promise<R|undefined>; <T,R>(this,lockClause,options,fn):Promise<R|undefined>; }; }
Pessimistic.lockBang
lockBang: <
T>(this,lock) =>Promise<T>
Type Parameters
| Type Parameter |
|---|
T extends Base |
Parameters
| Parameter | Type | Default value |
|---|---|---|
this | T | undefined |
lock | string | boolean | true |
Returns
Promise<T>
Pessimistic.withLock
withLock: {<
T,R>(this,fn):Promise<R|undefined>; <T,R>(this,lockClause,fn):Promise<R|undefined>; <T,R>(this,options,fn):Promise<R|undefined>; <T,R>(this,lockClause,options,fn):Promise<R|undefined>; }
Call Signature
<
T,R>(this,fn):Promise<R|undefined>
Type Parameters
| Type Parameter |
|---|
T extends Base |
R |
Parameters
| Parameter | Type |
|---|---|
this | T |
fn | () => R | Promise<R> |
Returns
Promise<R | undefined>
Call Signature
<
T,R>(this,lockClause,fn):Promise<R|undefined>
Type Parameters
| Type Parameter |
|---|
T extends Base |
R |
Parameters
| Parameter | Type |
|---|---|
this | T |
lockClause | string | boolean |
fn | () => R | Promise<R> |
Returns
Promise<R | undefined>
Call Signature
<
T,R>(this,options,fn):Promise<R|undefined>
Type Parameters
| Type Parameter |
|---|
T extends Base |
R |
Parameters
| Parameter | Type |
|---|---|
this | T |
options | TxOptions |
fn | () => R | Promise<R> |
Returns
Promise<R | undefined>
Call Signature
<
T,R>(this,lockClause,options,fn):Promise<R|undefined>
Type Parameters
| Type Parameter |
|---|
T extends Base |
R |
Parameters
| Parameter | Type |
|---|---|
this | T |
lockClause | string | boolean |
options | TxOptions |
fn | () => R | Promise<R> |
Returns
Promise<R | undefined>
Marshalling
Marshalling:
__module
Middleware
Middleware:
Autoload&CallableMethods<Autoload> & {DatabaseSelector: typeofDatabaseSelector;ShardSelector: typeofShardSelector; }
Type Declaration
DatabaseSelector
DatabaseSelector: typeof
DatabaseSelector
ShardSelector
ShardSelector: typeof
ShardSelector
Migration
Migration: typeof
Migration
ModelSchema
ModelSchema:
__module
Point
Point: (
x,y) => {x:number;y:number; }
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns
{ x: number; y: number; }
x
x:
number
y
y:
number
PredicateBuilder
PredicateBuilder: typeof
PredicateBuilder
Querying
Querying:
__module
Railtie?
optionalRailtie?:unknown
Railties
Railties: {
ControllerRuntime?:object;name:string; }
Railties.ControllerRuntime?
optionalControllerRuntime?:object
Railties.name
name:
string
Reflection
Reflection:
__module
Relation
Relation: typeof
Relation
Result
Result: typeof
Result
RuntimeRegistry
RuntimeRegistry:
RuntimeRegistry
Sanitization
Sanitization:
__module
Scoping
Scoping:
Autoload&CallableMethods<Autoload> & {Default: typeofDefault;Named:__module; }
Type Declaration
Default
Default: typeof
Default
Named
Named:
__module
SecurePassword
SecurePassword:
__module
SecureToken
SecureToken:
__module
Serialization
Serialization:
__module
Store
Store:
__module
Suppressor
Suppressor:
__module
TableMetadata
TableMetadata: typeof
TableMetadata
Tasks
Tasks:
Autoload&CallableMethods<Autoload> & {DatabaseTasks: typeofDatabaseTasks;MySQLDatabaseTasks: typeofMySQLDatabaseTasks;PostgreSQLDatabaseTasks: typeofPostgreSQLDatabaseTasks;SQLiteDatabaseTasks: typeofSQLiteDatabaseTasks; }
Type Declaration
DatabaseTasks
DatabaseTasks: typeof
DatabaseTasks
MySQLDatabaseTasks
MySQLDatabaseTasks: typeof
MySQLDatabaseTasks
PostgreSQLDatabaseTasks
PostgreSQLDatabaseTasks: typeof
PostgreSQLDatabaseTasks
SQLiteDatabaseTasks
SQLiteDatabaseTasks: typeof
SQLiteDatabaseTasks
ThroughCantAssociateThroughHasOneOrManyReflection
ThroughCantAssociateThroughHasOneOrManyReflection: typeof
ThroughCantAssociateThroughHasOneOrManyReflection
ThroughNestedAssociationsAreReadonly
ThroughNestedAssociationsAreReadonly: typeof
ThroughNestedAssociationsAreReadonly
Trailties
Trailties: {
name:string; }
Trailties.name
name:
string
Type
Type:
Type
Validations
Validations: {
AbsenceValidator: typeofAbsenceValidator;AssociatedValidator: typeofAssociatedValidator;customValidationContext: (this) =>boolean;LengthValidator: typeofLengthValidator;NumericalityValidator: typeofNumericalityValidator;PresenceValidator: typeofPresenceValidator;UniquenessValidator: typeofUniquenessValidator;validate: (this,context?) =>Promise<boolean>; }
Validations.AbsenceValidator
AbsenceValidator: typeof
AbsenceValidator
Validations.AssociatedValidator
AssociatedValidator: typeof
AssociatedValidator
Validations.customValidationContext
customValidationContext: (
this) =>boolean
Parameters
| Parameter | Type |
|---|---|
this | ValidationsHost |
Returns
boolean
Validations.LengthValidator
LengthValidator: typeof
LengthValidator
Validations.NumericalityValidator
NumericalityValidator: typeof
NumericalityValidator
Validations.PresenceValidator
PresenceValidator: typeof
PresenceValidator
Validations.UniquenessValidator
UniquenessValidator: typeof
UniquenessValidator
Validations.validate
validate: (
this,context?) =>Promise<boolean>
Parameters
| Parameter | Type |
|---|---|
this | ValidationsHost |
context? | ValidationContextArg |
Returns
Promise<boolean>