Skip to main content
Version: 6.4

BetterSqliteDriver

Hierarchy

Index

Constructors

constructor

Properties

inherited[EntityManagerType]

[EntityManagerType]: SqlEntityManager<BetterSqliteDriver>

readonlyinheritedconfig

Methods

inheritedaggregate

  • aggregate(entityName: string, pipeline: any[]): Promise<any[]>
  • Parameters

    • entityName: string
    • pipeline: any[]

    Returns Promise<any[]>

inheritedclose

  • close(force?: boolean): Promise<void>
  • Parameters

    • optionalforce: boolean

    Returns Promise<void>

inheritedconnect

inheritedconvertException

  • Converts native db errors to standardized driver exceptions


    Parameters

    • exception: Error

    Returns DriverException

inheritedcount

  • count(entityName: string, where: any, options?: CountOptions<T, never>): Promise<number>
  • Parameters

    • entityName: string
    • where: any
    • options: CountOptions<T, never> = {}

    Returns Promise<number>

inheritedcountVirtual

  • Parameters

    Returns Promise<number>

inheritedcreateEntityManager

  • Parameters

    • optionaluseContext: boolean

    Returns D[typeof EntityManagerType]

inheritedexecute

  • execute(queryOrKnex: string | QueryBuilder<any, any> | Raw<any>, params?: any[], method?: get | all | run, ctx?: any, loggerContext?: LoggingOptions): Promise<T>
  • Parameters

    • queryOrKnex: string | QueryBuilder<any, any> | Raw<any>
    • params: any[] = []
    • method: get | all | run = 'all'
    • optionalctx: any
    • optionalloggerContext: LoggingOptions

    Returns Promise<T>

inheritedfind

  • Finds selection of entities


    Parameters

    Returns Promise<EntityData<T>[]>

inheritedfindOne

  • Finds single entity (table row, document)


    Parameters

    Returns Promise<null | EntityData<T>>

inheritedfindVirtual

  • Parameters

    Returns Promise<EntityData<T>[]>

inheritedgetConnection

inheritedgetDependencies

  • getDependencies(): string[]
  • Returns name of the underlying database dependencies (e.g. mongodb or mysql2) for SQL drivers it also returns knex in the array as connectors are not used directly there


    Returns string[]

inheritedgetMetadata

inheritedgetPlatform

inheritedloadFromPivotTable

  • loadFromPivotTable(prop: EntityProperty<any, any>, owners: (O extends { [PrimaryKeyProp]?: PK } ? PK extends keyof O<O> ? ReadonlyPrimary<UnwrapPrimary<O<O>[PK<PK>]>> : PK extends keyof O<O>[] ? ReadonlyPrimary<PrimaryPropToType<O<O>, PK<PK>>> : PK : O extends { _id?: PK } ? string | ReadonlyPrimary<PK> : O extends { uuid?: PK } ? ReadonlyPrimary<PK> : O extends { id?: PK } ? ReadonlyPrimary<PK> : O)[][], where?: any, orderBy?: OrderDefinition<T>, ctx?: any, options?: FindOptions<T, any, any, any>, pivotJoin?: boolean): Promise<Dictionary<T[]>>
  • When driver uses pivot tables for M:N, this method will load identifiers for given collections from them


    Parameters

    • prop: EntityProperty<any, any>
    • owners: (O extends { [PrimaryKeyProp]?: PK } ? PK extends keyof O<O> ? ReadonlyPrimary<UnwrapPrimary<O<O>[PK<PK>]>> : PK extends keyof O<O>[] ? ReadonlyPrimary<PrimaryPropToType<O<O>, PK<PK>>> : PK : O extends { _id?: PK } ? string | ReadonlyPrimary<PK> : O extends { uuid?: PK } ? ReadonlyPrimary<PK> : O extends { id?: PK } ? ReadonlyPrimary<PK> : O)[][]
    • where: any = ...
    • optionalorderBy: OrderDefinition<T>
    • optionalctx: any
    • optionaloptions: FindOptions<T, any, any, any>
    • optionalpivotJoin: boolean

    Returns Promise<Dictionary<T[]>>

inheritedlockPessimistic

  • lockPessimistic(entity: T, options: LockOptions): Promise<void>
  • Parameters

    Returns Promise<void>

inheritedmapResult

inheritednativeDelete

  • Parameters

    Returns Promise<QueryResult<T>>

inheritednativeInsert

inheritednativeInsertMany

inheritednativeUpdate

inheritednativeUpdateMany

inheritedreconnect

inheritedsetMetadata

  • Parameters

    Returns void

inheritedsyncCollections

  • Parameters

    Returns Promise<void>