# src/allographer/query_builder/libs/mysql/mysql_lib

Theme:

- Index

Search:
Group by:

# Imports

../../error, ../../models/database_types, mysql_rdb

# Types

    MysqlParams = seq[MysqlParamValue]

    MysqlParamValue = 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: MysqlParams): string {.
        ...raises: [], tags: [], forbids: [].}

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

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

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

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