# src/allographer/query_builder/libs/mariadb/mariadb_lib

Theme:

- Index

Search:
Group by:

# Imports

../../error, ../../models/database_types, mariadb_rdb

# Types

    MariadbParams = seq[MariadbParamValue]

    MariadbParamValue = object
      value*: string
      isBinary*: bool

# Procs

    proc dbError(db: PMySQL) {.noreturn, ...raises: [DbError], tags: [], forbids: [].}

  raises a DbError exception.

    proc dbFormat(conn: PMySQL; query: string; args: MariadbParams): string {.
        ...raises: [], tags: [], forbids: [].}

    proc dbFormat(formatstr: string; args: seq[string]): string {....raises: [],
        tags: [], forbids: [].}

    proc fromObj(_: type MariadbParams; args: JsonNode; columns: seq[seq[string]]): MariadbParams

  args is JArray `[{"key":"id", "value": 1}, {"key": "name" "value": "alice"}]`

    proc setColumnInfo(columns: var DbColumns; res: PRES; L: int) {....raises: [],
        tags: [], forbids: [].}