# src/allographer/schema_builder/queries/mysql/schema_utils

Theme:

- Index

Search:
Group by:

# Imports

../../../query_builder/models/mysql/mysql_types, ../../../query_builder/models/mysql/mysql_query, ../../../query_builder/models/mysql/mysql_exec, ../../../query_builder/error, ../../models/table

# Procs

    proc exec(rdb: MysqlConnections; queries: seq[string]) {.
        ...raises: [ValueError, Exception, OSError, IOError], tags: [TimeEffect,
        RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect],
        forbids: [].}

    proc execThenSaveHistory(rdb: MysqlConnections; tableName: string;
                             queries: seq[string]; checksum: string) {.
        ...raises: [ValueError, Exception, OSError, IOError, KeyError, DbError], tags: [
        TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect,
        WriteIOEffect], forbids: [].}

    proc execThenSaveHistory(rdb: MysqlConnections; tableName: string;
                             query: string; checksum: string) {.
        ...raises: [ValueError, Exception, OSError, IOError, KeyError, DbError], tags: [
        TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect,
        WriteIOEffect], forbids: [].}

    proc notAllowedOption(option, typ, column: string) {....raises: [DbError],
        tags: [], forbids: [].}

  {option} is not allowed in {typ} column {column}

    proc notAllowedType(typ: string) {....raises: [DbError], tags: [], forbids: [].}

  Change to {typ} type is not allowed

    proc shouldRun(rdb: MysqlConnections; table: Table; checksum: string;
                   isReset: bool): bool {....raises: [ValueError, Exception, OSError,
        KeyError, IOError, CatchableError], tags: [TimeEffect, RootEffect,
        WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], forbids: [].}