# src/allographer/schema_builder/queries/surreal/schema_utils

Theme:

- Index

Search:
Group by:

# Imports

../../../query_builder/models/surreal/surreal_types, ../../../query_builder/models/surreal/surreal_query, ../../../query_builder/models/surreal/surreal_exec, ../../../query_builder/error, ../../models/table

# Procs

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

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

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