Interface DatabaseAdapter<T>

Database Adapter Level 1 with nesting support

Type Parameters

  • T extends AllowAnyTypeInformation

Hierarchy

  • DatabaseAdapter

Properties

supports: T[]
supportsNesting: boolean

Methods

  • Returns Promise<void>

  • Parameters

    • table: string
    • search: Record<string, PrimitiveType<T>>
    • Optional options: {
          limit?: number;
      }
      • Optional limit?: number

    Returns Promise<number>

  • Parameters

    • table: string
    • definition: Record<string, T>
    • Optional options: {
          ifNotExists?: boolean;
      }
      • Optional ifNotExists?: boolean

    Returns Promise<void>

  • Parameters

    • table: string
    • search: Record<string, PrimitiveType<T>>
    • Optional options: {
          limit?: number;
      }
      • Optional limit?: number

    Returns Promise<number>

  • Returns Promise<void>

  • Parameters

    • table: string
    • Optional options: {
          ifExists?: boolean;
      }
      • Optional ifExists?: boolean

    Returns Promise<void>

  • Parameters

    • table: string

    Returns Promise<boolean>

  • Parameters

    • table: string
    • search: Record<string, PrimitiveType<T>>
    • Optional options: {
          limit?: number;
      }
      • Optional limit?: number

    Returns Promise<Record<string, T>[]>

  • Parameters

    • table: string
    • data: Record<string, PrimitiveType<T>>
    • Optional options: Record<string, never>

    Returns Promise<void>

  • Parameters

    • table: string
    • search: Record<string, PrimitiveType<T>>
    • data: Record<string, PrimitiveType<T>>
    • Optional options: {
          limit?: number;
      }
      • Optional limit?: number

    Returns Promise<number>

Generated using TypeDoc