Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QueryBuilder

Hierarchy

Index

Constructors

constructor

Properties

Readonly [Symbol.toStringTag]

[Symbol.toStringTag]: string

Private array

The default array handler for this instance

since

0.5.0

Private arraySerializer

The default array handler for this instance

since

0.5.0

Private formatDatatype

The default datatype formatter for the SQL database

since

0.5.0

Private serializer

The default serializer for this instance

since

0.5.0

Readonly size

size: number

Static Map

Map: MapConstructor

Methods

[Symbol.iterator]

add

clear

  • clear(): void
  • Returns void

debug

  • debug(): string

delete

  • delete(key: string): boolean
  • Parameters

    • key: string

    Returns boolean

entries

  • Returns an iterable of key, value pairs for every entry in the map.

    Returns IterableIterator<[string, QueryBuilderValue]>

forEach

generateDatatype

  • Parse a SchemaEntry for the SQL datatype creation

    since

    0.5.0

    example

    qb.generateDatatype(this.client.gateways.get('guilds').schema.get('prefix')); // type: 'string', array: true, max: 10 // -> prefix VARCHAR(10)[]

    Parameters

    Returns string

get

has

  • has(key: string): boolean
  • Parameters

    • key: string

    Returns boolean

keys

  • keys(): IterableIterator<string>
  • Returns an iterable of keys in the map

    Returns IterableIterator<string>

remove

  • remove(name: string): this
  • Remove a datatype from this instance

    since

    0.5.0

    chainable

    Parameters

    • name: string

      The name for the datatype to remove

    Returns this

serialize

  • Parses the value

    since

    0.5.0

    Parameters

    • value: unknown

      The value to parse

    • schemaEntry: SchemaEntry

      The SchemaEntry instance that manages this instance

    • Default value datatype: QueryBuilderValue | undefined = this.get(schemaEntry.type)

      The QueryBuilder datatype

    Returns string | null

set

  • Parameters

    Returns this

values

  • Returns an iterable of values in the map

    Returns IterableIterator<QueryBuilderValue>

Generated using TypeDoc