Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface KnexExtension

Hierarchy

  • KnexExtension

Index

Properties

binary

binary: Knex.Binary

bool

bool: Knex.Bool

date

date: Knex.Date

isLite

isLite: boolean

json

json: Knex.Json

location

location: string

Methods

createTableIfNotExists

  • createTableIfNotExists(tableName: string, cb: Knex.KnexCallback): Promise<boolean>
  • Parameters

    • tableName: string
    • cb: Knex.KnexCallback

    Returns Promise<boolean>

insertAndRetrieve

  • insertAndRetrieve<T>(tableName: string, data: __type, returnColumns?: string | string[], idColumnName?: undefined | string, trx?: Knex.Transaction): Promise<T>
  • Type parameters

    • T

    Parameters

    • tableName: string
    • data: __type
    • Optional returnColumns: string | string[]
    • Optional idColumnName: undefined | string
    • Optional trx: Knex.Transaction

    Returns Promise<T>

Generated using TypeDoc