# src/allographer/schema_builder/queries/postgres/schema_utils

Theme:

- Index

Search:
Group by:

# Imports

../../../query_builder/models/postgres/postgres_types, ../../../query_builder/models/postgres/postgres_query, ../../../query_builder/models/postgres/postgres_exec, ../../../query_builder/error, ../../models/table

# Procs

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

    proc execThenSaveHistory(rdb: PostgresConnections; 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: PostgresConnections; 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: PostgresConnections; table: Table; checksum: string;
                   isReset: bool): bool {....raises: [ValueError, Exception, OSError,
        KeyError, IOError, CatchableError], tags: [TimeEffect, RootEffect,
        WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], forbids: [].}