diff --git a/allographer.nimble b/allographer.nimble index da1cb7df..928bc4ab 100644 --- a/allographer.nimble +++ b/allographer.nimble @@ -1,6 +1,6 @@ # Package -version = "0.29.1" +version = "0.30.0" author = "Hidenobu Itsumura @dumblepytech1 as 'medy'" description = "A Nim query builder library inspired by Laravel/PHP and Orator/Python" license = "MIT" @@ -23,6 +23,7 @@ import strformat, os task test, "run testament test": exec &"testament p 'tests/v{NimMajor}/*/test_*.nim'" + exec &"testament p 'tests/v2/test_*.nim'" for kind, path in walkDir(getCurrentDir() / "tests"): if not path.contains(".") and path.fileExists(): exec "rm -f " & path diff --git a/docs/v2/connection.html b/docs/v2/connection.html index aaa3f98d..a56062f1 100644 --- a/docs/v2/connection.html +++ b/docs/v2/connection.html @@ -71,7 +71,7 @@
proc query(db: PPGconn; query: string; args: seq[string]; timeout: int): Future[ + (seq[Row], DbRows)] {....stackTrace: false, raises: [Exception, ValueError], + tags: [TimeEffect, RootEffect], forbids: [].}
proc exec(db: PSqlite3; query: string; args: JsonNode; columns: seq[(string, string)]; timeout: int): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect], forbids: [].}
proc exec(db: PSqlite3; query: string; args: JsonNode; timeout: int): owned( - Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect], - forbids: [].}
proc exec(db: PSqlite3; query: string; args: seq[string]; timeout: int): owned( - Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect], - forbids: [].}
proc getColumnTypes(db: PSqlite3; query: string): Future[seq[(string, string)]] {. ...stackTrace: false, raises: [Exception, ValueError], - tags: [ReadDbEffect, RootEffect], forbids: [].}
proc preparedQuery(db: PSqlite3; args: seq[string] = @[]; sqliteStmt: PStmt): Future[ (seq[Row], DbRows)] {....stackTrace: false, raises: [Exception, ValueError], tags: [ - ReadDbEffect, WriteDbEffect, TimeEffect, RootEffect], forbids: [].}
proc query(db: PSqlite3; query: string; args: seq[string]; timeout: int): Future[ (seq[Row], DbRows)] {....stackTrace: false, raises: [Exception, ValueError], - tags: [ReadDbEffect, RootEffect], forbids: [].}
proc queryPlain(db: PSqlite3; query: string; args: seq[string]; timeout: int): Future[ seq[Row]] {....stackTrace: false, raises: [Exception, ValueError], - tags: [ReadDbEffect, RootEffect], forbids: [].}
proc `$`(self: MariadbConnections | MariadbQuery): string
proc raw(self: MariadbConnections; sql: string; arges = newJArray()): RawMariadbQuery {. - ...raises: [], tags: [], forbids: [].}
arges is JArray [true, 1, 1.1, "str"]
-can't use BLOB data.
- - -proc select(self: MariadbConnections; columnsArg: varargs[string]): MariadbQuery {. - ...raises: [], tags: [], forbids: [].}
proc table(self: MariadbConnections; tableArg: string): MariadbQuery {. - ...raises: [], tags: [], forbids: [].}
proc avg(self: MariadbQuery; column: string): Future[Option[float]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc begin(self: MariadbConnections): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc columns(self: MariadbQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc commit(self: MariadbConnections): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect], forbids: [].}
proc count(self: MariadbQuery): Future[int] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc delete(self: MariadbQuery): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc delete(self: MariadbQuery; id: int; key = "id"): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc exec(self: RawMariadbQuery): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc find(self: MariadbQuery; id: int; key = "id"): Future[Option[JsonNode]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc find(self: MariadbQuery; id: string; key = "id"): Future[Option[JsonNode]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc findPlain(self: MariadbQuery; id: int; key = "id"): Future[seq[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc findPlain(self: MariadbQuery; id: string; key = "id"): Future[seq[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc first(self: MariadbQuery): Future[Option[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc first(self: RawMariadbQuery): Future[Option[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc firstPlain(self: MariadbQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc firstPlain(self: RawMariadbQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc get(self: MariadbQuery): Future[seq[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc get(self: RawMariadbQuery): Future[seq[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc getPlain(self: MariadbQuery): Future[seq[seq[string]]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc getPlain(self: RawMariadbQuery): Future[seq[seq[string]]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc insert(self: MariadbQuery; items: JsonNode): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc insert(self: MariadbQuery; items: seq[JsonNode]): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc insertId(self: MariadbQuery; items: JsonNode; key = "id"): Future[string] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc insertId(self: MariadbQuery; items: seq[JsonNode]; key = "id"): Future[ + seq[string]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, + TimeEffect], forbids: [].}
proc max(self: MariadbQuery; column: string): Future[Option[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc min(self: MariadbQuery; column: string): Future[Option[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc rollback(self: MariadbConnections): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect], forbids: [].}
proc sum(self: MariadbQuery; column: string): Future[Option[float]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}
proc update(self: MariadbQuery; items: JsonNode): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
template seeder(rdb: MariadbConnections; tableName, column: string; + body: untyped): untyped
template seeder(rdb: MariadbConnections; tableName: string; body: untyped): untyped
proc dbOpen(__2281701383: type MariaDB; database: string = ""; ++ proc dbOpen(__2298478599: type MariaDB; database: string = ""; user: string = ""; password: string = ""; host: string = ""; - port: int32 = 0; maxConnections: int = 1; timeout = 30; + port: int = 0; maxConnections: int = 1; timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): MariadbConnections- @@ -110,7 +110,7 @@
Procs
proc avg(self: MariadbQuery; column: string): Future[Option[float]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc begin(self: MariadbConnections): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc columns(self: MariadbQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc commit(self: MariadbConnections): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect], forbids: [].}
proc count(self: MariadbQuery): Future[int] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc delete(self: MariadbQuery): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc delete(self: MariadbQuery; id: int; key = "id"): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc `distinct`(self: MariadbQuery): MariadbQuery {....raises: [], tags: [], forbids: [].}
proc exec(self: RawMariadbQuery): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc find(self: MariadbQuery; id: int; key = "id"): Future[Option[JsonNode]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc find(self: MariadbQuery; id: string; key = "id"): Future[Option[JsonNode]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc find[T](self: MariadbQuery; id: int; typ: typedesc[T]; key = "id"): Future[ - Option[T]] {....stackTrace: false.}
proc find[T](self: MariadbQuery; id: string; typ: typedesc[T]; key = "id"): Future[ - Option[T]] {....stackTrace: false.}
proc findPlain(self: MariadbQuery; id: int; key = "id"): Future[seq[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc findPlain(self: MariadbQuery; id: string; key = "id"): Future[seq[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc first(self: MariadbQuery): Future[Option[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc first(self: RawMariadbQuery): Future[Option[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc first[T](self: MariadbQuery; typ: typedesc[T]): Future[Option[T]] {. - ...stackTrace: false.}
proc firstPlain(self: MariadbQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc firstPlain(self: RawMariadbQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc get(self: MariadbQuery): Future[seq[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc get(self: RawMariadbQuery): Future[seq[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc get[T](self: MariadbQuery; typ: typedesc[T]): Future[seq[T]] {. - ...stackTrace: false.}
proc getPlain(self: MariadbQuery): Future[seq[seq[string]]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc getPlain(self: RawMariadbQuery): Future[seq[seq[string]]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc having(self: MariadbQuery; column: string; symbol: string; value: nil.type): MariadbQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}
proc insert(self: MariadbQuery; items: JsonNode): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc insert(self: MariadbQuery; items: seq[JsonNode]): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc insertId(self: MariadbQuery; items: JsonNode; key = "id"): Future[string] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc insertId(self: MariadbQuery; items: seq[JsonNode]; key = "id"): Future[ - seq[string]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - TimeEffect], forbids: [].}
proc max(self: MariadbQuery; column: string): Future[Option[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc min(self: MariadbQuery; column: string): Future[Option[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc orWhere(self: MariadbQuery; column: string; symbol: string; value: nil.type): MariadbQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}
proc rollback(self: MariadbConnections): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect], forbids: [].}
proc raw(self: MariadbConnections; sql: string; arges = newJArray()): RawMariadbQuery {. + ...raises: [], tags: [], forbids: [].}
arges is JArray [true, 1, 1.1, "str"]
+can't use BLOB data.
+proc sum(self: MariadbQuery; column: string): Future[Option[float]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}
proc select(self: MariadbConnections; columnsArg: varargs[string]): MariadbQuery {. + ...raises: [], tags: [], forbids: [].}
proc table(self: MariadbQuery; tableArg: string): MariadbQuery {....raises: [], - tags: [], forbids: [].}
proc table(self: MariadbConnections; tableArg: string): MariadbQuery {. + ...raises: [], tags: [], forbids: [].}
proc update(self: MariadbQuery; items: JsonNode): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}
proc table(self: MariadbQuery; tableArg: string): MariadbQuery {....raises: [], + tags: [], forbids: [].}
proc where(self: MariadbQuery; column: string; symbol: string; value: bool): MariadbQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}
proc where(self: MariadbQuery; column: string; symbol: string; value: nil.type): MariadbQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}
template seeder(rdb: MariadbConnections; tableName, column: string; - body: untyped): untyped
template seeder(rdb: MariadbConnections; tableName: string; body: untyped): untyped
MariaDB = object
MariadbConnection = object ++- Connection = object conn*: PMySQL isBusy*: bool createdAt*: int64 @@ -146,8 +138,8 @@Types
-diff --git a/docs/v2/v2/schema_builder/queries/postgres/sub/change_column_query.html b/docs/v2/v2/schema_builder/queries/postgres/sub/change_column_query.html index 172d175e..15b05c5f 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/sub/change_column_query.html +++ b/docs/v2/v2/schema_builder/queries/postgres/sub/change_column_query.html @@ -118,7 +118,7 @@ MariadbConnectionInfo = object +++ ConnectionInfo = object database*: string user*: string password*: string @@ -158,14 +150,32 @@Types
+ +++- +
Connections = ref object + conns*: seq[Connection] + timeout*: int +- + + + +
++- +
MariaDB = object- + + +
diff --git a/docs/v2/v2/query_builder/models/mariadb/query/mariadb_generator.idx b/docs/v2/v2/query_builder/models/mariadb/query/mariadb_generator.idx index c6f432d9..56c18cfb 100644 --- a/docs/v2/v2/query_builder/models/mariadb/query/mariadb_generator.idx +++ b/docs/v2/v2/query_builder/models/mariadb/query/mariadb_generator.idx @@ -1,33 +1,33 @@ nimTitle mariadb_generator v2/query_builder/models/mariadb/query/mariadb_generator.html module src/allographer/v2/query_builder/models/mariadb/query/mariadb_generator 0 nim selectSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectSql,MariadbQuery proc selectSql(self: MariadbQuery): MariadbQuery 22 -nim fromSql v2/query_builder/models/mariadb/query/mariadb_generator.html#fromSql,MariadbQuery proc fromSql(self: MariadbQuery): MariadbQuery 49 -nim selectFirstSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectFirstSql,MariadbQuery proc selectFirstSql(self: MariadbQuery): MariadbQuery 55 -nim selectByIdSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectByIdSql,MariadbQuery,string proc selectByIdSql(self: MariadbQuery; key: string): MariadbQuery 60 -nim joinSql v2/query_builder/models/mariadb/query/mariadb_generator.html#joinSql,MariadbQuery proc joinSql(self: MariadbQuery): MariadbQuery 69 -nim leftJoinSql v2/query_builder/models/mariadb/query/mariadb_generator.html#leftJoinSql,MariadbQuery proc leftJoinSql(self: MariadbQuery): MariadbQuery 81 -nim whereSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereSql,MariadbQuery proc whereSql(self: MariadbQuery): MariadbQuery 93 -nim orWhereSql v2/query_builder/models/mariadb/query/mariadb_generator.html#orWhereSql,MariadbQuery proc orWhereSql(self: MariadbQuery): MariadbQuery 106 -nim whereBetweenSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereBetweenSql,MariadbQuery proc whereBetweenSql(self: MariadbQuery): MariadbQuery 120 -nim whereBetweenStringSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereBetweenStringSql,MariadbQuery proc whereBetweenStringSql(self: MariadbQuery): MariadbQuery 136 -nim whereNotBetweenSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereNotBetweenSql,MariadbQuery proc whereNotBetweenSql(self: MariadbQuery): MariadbQuery 152 -nim whereNotBetweenStringSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereNotBetweenStringSql,MariadbQuery proc whereNotBetweenStringSql(self: MariadbQuery): MariadbQuery 168 -nim whereInSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereInSql,MariadbQuery proc whereInSql(self: MariadbQuery): MariadbQuery 184 -nim whereNotInSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereNotInSql,MariadbQuery proc whereNotInSql(self: MariadbQuery): MariadbQuery 200 -nim whereNullSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereNullSql,MariadbQuery proc whereNullSql(self: MariadbQuery): MariadbQuery 216 -nim groupBySql v2/query_builder/models/mariadb/query/mariadb_generator.html#groupBySql,MariadbQuery proc groupBySql(self: MariadbQuery): MariadbQuery 228 -nim havingSql v2/query_builder/models/mariadb/query/mariadb_generator.html#havingSql,MariadbQuery proc havingSql(self: MariadbQuery): MariadbQuery 239 -nim orderBySql v2/query_builder/models/mariadb/query/mariadb_generator.html#orderBySql,MariadbQuery proc orderBySql(self: MariadbQuery): MariadbQuery 254 -nim limitSql v2/query_builder/models/mariadb/query/mariadb_generator.html#limitSql,MariadbQuery proc limitSql(self: MariadbQuery): MariadbQuery 267 -nim offsetSql v2/query_builder/models/mariadb/query/mariadb_generator.html#offsetSql,MariadbQuery proc offsetSql(self: MariadbQuery): MariadbQuery 275 -nim insertSql v2/query_builder/models/mariadb/query/mariadb_generator.html#insertSql,MariadbQuery proc insertSql(self: MariadbQuery): MariadbQuery 285 -nim insertValueSql v2/query_builder/models/mariadb/query/mariadb_generator.html#insertValueSql,MariadbQuery,JsonNode proc insertValueSql(self: MariadbQuery; items: JsonNode): MariadbQuery 291 -nim insertValuesSql v2/query_builder/models/mariadb/query/mariadb_generator.html#insertValuesSql,MariadbQuery,openArray[JsonNode] proc insertValuesSql(self: MariadbQuery; rows: openArray[JsonNode]): MariadbQuery 311 -nim updateSql v2/query_builder/models/mariadb/query/mariadb_generator.html#updateSql,MariadbQuery proc updateSql(self: MariadbQuery): MariadbQuery 343 -nim updateValuesSql v2/query_builder/models/mariadb/query/mariadb_generator.html#updateValuesSql,MariadbQuery,JsonNode proc updateValuesSql(self: MariadbQuery; items: JsonNode): MariadbQuery 353 -nim deleteSql v2/query_builder/models/mariadb/query/mariadb_generator.html#deleteSql,MariadbQuery proc deleteSql(self: MariadbQuery): MariadbQuery 375 -nim deleteByIdSql v2/query_builder/models/mariadb/query/mariadb_generator.html#deleteByIdSql,MariadbQuery,int,string proc deleteByIdSql(self: MariadbQuery; id: int; key: string): MariadbQuery 380 -nim selectCountSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectCountSql,MariadbQuery proc selectCountSql(self: MariadbQuery): MariadbQuery 386 -nim selectMaxSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectMaxSql,MariadbQuery,string proc selectMaxSql(self: MariadbQuery; column: string): MariadbQuery 397 -nim selectMinSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectMinSql,MariadbQuery,string proc selectMinSql(self: MariadbQuery; column: string): MariadbQuery 402 -nim selectAvgSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectAvgSql,MariadbQuery,string proc selectAvgSql(self: MariadbQuery; column: string): MariadbQuery 407 -nim selectSumSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectSumSql,MariadbQuery,string proc selectSumSql(self: MariadbQuery; column: string): MariadbQuery 412 +nim fromSql v2/query_builder/models/mariadb/query/mariadb_generator.html#fromSql,MariadbQuery proc fromSql(self: MariadbQuery): MariadbQuery 43 +nim selectFirstSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectFirstSql,MariadbQuery proc selectFirstSql(self: MariadbQuery): MariadbQuery 49 +nim selectByIdSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectByIdSql,MariadbQuery,string proc selectByIdSql(self: MariadbQuery; key: string): MariadbQuery 54 +nim joinSql v2/query_builder/models/mariadb/query/mariadb_generator.html#joinSql,MariadbQuery proc joinSql(self: MariadbQuery): MariadbQuery 63 +nim leftJoinSql v2/query_builder/models/mariadb/query/mariadb_generator.html#leftJoinSql,MariadbQuery proc leftJoinSql(self: MariadbQuery): MariadbQuery 75 +nim whereSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereSql,MariadbQuery proc whereSql(self: MariadbQuery): MariadbQuery 87 +nim orWhereSql v2/query_builder/models/mariadb/query/mariadb_generator.html#orWhereSql,MariadbQuery proc orWhereSql(self: MariadbQuery): MariadbQuery 100 +nim whereBetweenSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereBetweenSql,MariadbQuery proc whereBetweenSql(self: MariadbQuery): MariadbQuery 114 +nim whereBetweenStringSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereBetweenStringSql,MariadbQuery proc whereBetweenStringSql(self: MariadbQuery): MariadbQuery 130 +nim whereNotBetweenSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereNotBetweenSql,MariadbQuery proc whereNotBetweenSql(self: MariadbQuery): MariadbQuery 146 +nim whereNotBetweenStringSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereNotBetweenStringSql,MariadbQuery proc whereNotBetweenStringSql(self: MariadbQuery): MariadbQuery 162 +nim whereInSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereInSql,MariadbQuery proc whereInSql(self: MariadbQuery): MariadbQuery 178 +nim whereNotInSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereNotInSql,MariadbQuery proc whereNotInSql(self: MariadbQuery): MariadbQuery 194 +nim whereNullSql v2/query_builder/models/mariadb/query/mariadb_generator.html#whereNullSql,MariadbQuery proc whereNullSql(self: MariadbQuery): MariadbQuery 210 +nim groupBySql v2/query_builder/models/mariadb/query/mariadb_generator.html#groupBySql,MariadbQuery proc groupBySql(self: MariadbQuery): MariadbQuery 222 +nim havingSql v2/query_builder/models/mariadb/query/mariadb_generator.html#havingSql,MariadbQuery proc havingSql(self: MariadbQuery): MariadbQuery 233 +nim orderBySql v2/query_builder/models/mariadb/query/mariadb_generator.html#orderBySql,MariadbQuery proc orderBySql(self: MariadbQuery): MariadbQuery 248 +nim limitSql v2/query_builder/models/mariadb/query/mariadb_generator.html#limitSql,MariadbQuery proc limitSql(self: MariadbQuery): MariadbQuery 261 +nim offsetSql v2/query_builder/models/mariadb/query/mariadb_generator.html#offsetSql,MariadbQuery proc offsetSql(self: MariadbQuery): MariadbQuery 269 +nim insertSql v2/query_builder/models/mariadb/query/mariadb_generator.html#insertSql,MariadbQuery proc insertSql(self: MariadbQuery): MariadbQuery 279 +nim insertValueSql v2/query_builder/models/mariadb/query/mariadb_generator.html#insertValueSql,MariadbQuery,JsonNode proc insertValueSql(self: MariadbQuery; items: JsonNode): MariadbQuery 285 +nim insertValuesSql v2/query_builder/models/mariadb/query/mariadb_generator.html#insertValuesSql,MariadbQuery,openArray[JsonNode] proc insertValuesSql(self: MariadbQuery; rows: openArray[JsonNode]): MariadbQuery 305 +nim updateSql v2/query_builder/models/mariadb/query/mariadb_generator.html#updateSql,MariadbQuery proc updateSql(self: MariadbQuery): MariadbQuery 337 +nim updateValuesSql v2/query_builder/models/mariadb/query/mariadb_generator.html#updateValuesSql,MariadbQuery,JsonNode proc updateValuesSql(self: MariadbQuery; items: JsonNode): MariadbQuery 347 +nim deleteSql v2/query_builder/models/mariadb/query/mariadb_generator.html#deleteSql,MariadbQuery proc deleteSql(self: MariadbQuery): MariadbQuery 369 +nim deleteByIdSql v2/query_builder/models/mariadb/query/mariadb_generator.html#deleteByIdSql,MariadbQuery,int,string proc deleteByIdSql(self: MariadbQuery; id: int; key: string): MariadbQuery 374 +nim selectCountSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectCountSql,MariadbQuery proc selectCountSql(self: MariadbQuery): MariadbQuery 380 +nim selectMaxSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectMaxSql,MariadbQuery,string proc selectMaxSql(self: MariadbQuery; column: string): MariadbQuery 391 +nim selectMinSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectMinSql,MariadbQuery,string proc selectMinSql(self: MariadbQuery; column: string): MariadbQuery 396 +nim selectAvgSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectAvgSql,MariadbQuery,string proc selectAvgSql(self: MariadbQuery; column: string): MariadbQuery 401 +nim selectSumSql v2/query_builder/models/mariadb/query/mariadb_generator.html#selectSumSql,MariadbQuery,string proc selectSumSql(self: MariadbQuery; column: string): MariadbQuery 406 diff --git a/docs/v2/v2/query_builder/models/mysql/mysql_connections.html b/docs/v2/v2/query_builder/models/mysql/mysql_connections.html deleted file mode 100644 index 8c4d021b..00000000 --- a/docs/v2/v2/query_builder/models/mysql/mysql_connections.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - -- @@ -178,9 +188,8 @@
MariadbConnections = ref object log*: LogSetting - pools*: seq[MariadbConnection] - timeout*: int - info*: MariadbConnectionInfo + pools*: Connections + info*: ConnectionInfo isInTransaction*: bool transactionConn*: intTypes
MariadbQuery = ref object log*: LogSetting - pools*: seq[MariadbConnection] - timeout*: int - info*: MariadbConnectionInfo + pools*: Connections + info*: ConnectionInfo query*: JsonNode queryString*: string placeHolder*: JsonNode @@ -196,9 +205,8 @@Types
diff --git a/docs/v2/v2/query_builder/models/mariadb/query/mariadb_generator.html b/docs/v2/v2/query_builder/models/mariadb/query/mariadb_generator.html index 3ebe8067..9f4329fd 100644 --- a/docs/v2/v2/query_builder/models/mariadb/query/mariadb_generator.html +++ b/docs/v2/v2/query_builder/models/mariadb/query/mariadb_generator.html @@ -598,7 +598,7 @@ RawMariadbQuery = ref object log*: LogSetting - pools*: seq[MariadbConnection] - timeout*: int - info*: MariadbConnectionInfo + pools*: Connections + info*: ConnectionInfo query*: JsonNode queryString*: string placeHolder*: JsonNode @@ -218,8 +226,8 @@Types
Procs
--diff --git a/docs/v2/v2/query_builder/models/mariadb/mariadb_types.idx b/docs/v2/v2/query_builder/models/mariadb/mariadb_types.idx index c75acad2..2b1f5e39 100644 --- a/docs/v2/v2/query_builder/models/mariadb/mariadb_types.idx +++ b/docs/v2/v2/query_builder/models/mariadb/mariadb_types.idx @@ -1,8 +1,9 @@ nimTitle mariadb_types v2/query_builder/models/mariadb/mariadb_types.html module src/allographer/v2/query_builder/models/mariadb/mariadb_types 0 nim MariaDB v2/query_builder/models/mariadb/mariadb_types.html#MariaDB object MariaDB 6 -nim MariadbConnectionInfo v2/query_builder/models/mariadb/mariadb_types.html#MariadbConnectionInfo object MariadbConnectionInfo 8 -nim MariadbConnection v2/query_builder/models/mariadb/mariadb_types.html#MariadbConnection object MariadbConnection 15 -nim MariadbConnections v2/query_builder/models/mariadb/mariadb_types.html#MariadbConnections type MariadbConnections 21 -nim `$` v2/query_builder/models/mariadb/mariadb_types.html#$,MariadbConnections proc `$`(self: MariadbConnections): string 30 -nim MariadbQuery v2/query_builder/models/mariadb/mariadb_types.html#MariadbQuery type MariadbQuery 35 -nim RawMariadbQuery v2/query_builder/models/mariadb/mariadb_types.html#RawMariadbQuery type RawMariadbQuery 48 +nim ConnectionInfo v2/query_builder/models/mariadb/mariadb_types.html#ConnectionInfo object ConnectionInfo 9 +nim Connection v2/query_builder/models/mariadb/mariadb_types.html#Connection object Connection 17 +nim Connections v2/query_builder/models/mariadb/mariadb_types.html#Connections type Connections 23 +nim MariadbConnections v2/query_builder/models/mariadb/mariadb_types.html#MariadbConnections type MariadbConnections 29 +nim MariadbQuery v2/query_builder/models/mariadb/mariadb_types.html#MariadbQuery type MariadbQuery 39 +nim RawMariadbQuery v2/query_builder/models/mariadb/mariadb_types.html#RawMariadbQuery type RawMariadbQuery 51 +nim `$` v2/query_builder/models/mariadb/mariadb_types.html#$ proc `$`(self: MariadbConnections | MariadbQuery | RawMariadbQuery): string 63 diff --git a/docs/v2/v2/query_builder/models/mariadb/query/mariadb_builder.html b/docs/v2/v2/query_builder/models/mariadb/query/mariadb_builder.html index 5c525e26..253ba4e9 100644 --- a/docs/v2/v2/query_builder/models/mariadb/query/mariadb_builder.html +++ b/docs/v2/v2/query_builder/models/mariadb/query/mariadb_builder.html @@ -310,7 +310,7 @@- +
proc `$`(self: MariadbConnections): string {....raises: [], tags: [], forbids: [].}+ proc `$`(self: MariadbConnections | MariadbQuery | RawMariadbQuery): string- @@ -238,7 +246,7 @@
Procs
Procs
Procs
src/allographer/v2/query_builder/models/mysql/mysql_connections - - - - - - - - - - - - --- - - - - - diff --git a/docs/v2/v2/query_builder/models/mysql/mysql_connections.idx b/docs/v2/v2/query_builder/models/mysql/mysql_connections.idx deleted file mode 100644 index 18ddf521..00000000 --- a/docs/v2/v2/query_builder/models/mysql/mysql_connections.idx +++ /dev/null @@ -1,5 +0,0 @@ -nimTitle mysql_connections v2/query_builder/models/mysql/mysql_connections.html module src/allographer/v2/query_builder/models/mysql/mysql_connections 0 -nim `$` v2/query_builder/models/mysql/mysql_connections.html#$ proc `$`(self: MysqlConnections | MysqlQuery): string 6 -nim select v2/query_builder/models/mysql/mysql_connections.html#select,MysqlConnections,varargs[string] proc select(self: MysqlConnections; columnsArg: varargs[string]): MysqlQuery 10 -nim table v2/query_builder/models/mysql/mysql_connections.html#table,MysqlConnections,string proc table(self: MysqlConnections; tableArg: string): MysqlQuery 32 -nim raw v2/query_builder/models/mysql/mysql_connections.html#raw,MysqlConnections,string proc raw(self: MysqlConnections; sql: string; arges = newJArray()): RawMysqlQuery 50 diff --git a/docs/v2/v2/query_builder/models/mysql/mysql_exec.html b/docs/v2/v2/query_builder/models/mysql/mysql_exec.html new file mode 100644 index 00000000..493999e5 --- /dev/null +++ b/docs/v2/v2/query_builder/models/mysql/mysql_exec.html @@ -0,0 +1,589 @@ + + + + + + + +--src/allographer/v2/query_builder/models/mysql/mysql_connections
--- - ---- - -----
-- Index
-- Search: --- Group by: - -- - -- - - - ----Imports
-- mysql_types -
--- -Procs
--
----- -- -
proc `$`(self: MysqlConnections | MysqlQuery): string- - - - -
----- -- -
proc raw(self: MysqlConnections; sql: string; arges = newJArray()): RawMysqlQuery {. - ...raises: [], tags: [], forbids: [].}- - -
-arges is JArray [true, 1, 1.1, "str"]
-can't use BLOB data.
- - ----- -- -
proc select(self: MysqlConnections; columnsArg: varargs[string]): MysqlQuery {. - ...raises: [], tags: [], forbids: [].}- - - - -
--- --- -- -
proc table(self: MysqlConnections; tableArg: string): MysqlQuery {....raises: [], - tags: [], forbids: [].}- - - - -
-src/allographer/v2/query_builder/models/mysql/mysql_exec + + + + + + + + + + + + +++ + + + + + diff --git a/docs/v2/v2/query_builder/models/mysql/mysql_exec.idx b/docs/v2/v2/query_builder/models/mysql/mysql_exec.idx new file mode 100644 index 00000000..dbbd8c60 --- /dev/null +++ b/docs/v2/v2/query_builder/models/mysql/mysql_exec.idx @@ -0,0 +1,42 @@ +nimTitle mysql_exec v2/query_builder/models/mysql/mysql_exec.html module src/allographer/v2/query_builder/models/mysql/mysql_exec 0 +nim get v2/query_builder/models/mysql/mysql_exec.html#get,MysqlQuery proc get(self: MysqlQuery): Future[seq[JsonNode]] 356 +nim first v2/query_builder/models/mysql/mysql_exec.html#first,MysqlQuery proc first(self: MysqlQuery): Future[Option[JsonNode]] 367 +nim find v2/query_builder/models/mysql/mysql_exec.html#find,MysqlQuery,string,string proc find(self: MysqlQuery; id: string; key = "id"): Future[Option[JsonNode]] 378 +nim find v2/query_builder/models/mysql/mysql_exec.html#find,MysqlQuery,int,string proc find(self: MysqlQuery; id: int; key = "id"): Future[Option[JsonNode]] 390 +nim getPlain v2/query_builder/models/mysql/mysql_exec.html#getPlain,MysqlQuery proc getPlain(self: MysqlQuery): Future[seq[seq[string]]] 394 +nim firstPlain v2/query_builder/models/mysql/mysql_exec.html#firstPlain,MysqlQuery proc firstPlain(self: MysqlQuery): Future[seq[string]] 405 +nim findPlain v2/query_builder/models/mysql/mysql_exec.html#findPlain,MysqlQuery,string,string proc findPlain(self: MysqlQuery; id: string; key = "id"): Future[seq[string]] 416 +nim findPlain v2/query_builder/models/mysql/mysql_exec.html#findPlain,MysqlQuery,int,string proc findPlain(self: MysqlQuery; id: int; key = "id"): Future[seq[string]] 428 +nim insert v2/query_builder/models/mysql/mysql_exec.html#insert,MysqlQuery,JsonNode proc insert(self: MysqlQuery; items: JsonNode): owned(Future[void]) 433 +nim insert v2/query_builder/models/mysql/mysql_exec.html#insert,MysqlQuery,seq[JsonNode] proc insert(self: MysqlQuery; items: seq[JsonNode]): owned(Future[void]) 440 +nim insertId v2/query_builder/models/mysql/mysql_exec.html#insertId,MysqlQuery,JsonNode,string proc insertId(self: MysqlQuery; items: JsonNode; key = "id"): Future[string] 446 +nim insertId v2/query_builder/models/mysql/mysql_exec.html#insertId,MysqlQuery,seq[JsonNode],string proc insertId(self: MysqlQuery; items: seq[JsonNode]; key = "id"): Future[seq[string]] 453 +nim update v2/query_builder/models/mysql/mysql_exec.html#update,MysqlQuery,JsonNode proc update(self: MysqlQuery; items: JsonNode): owned(Future[void]) 463 +nim delete v2/query_builder/models/mysql/mysql_exec.html#delete,MysqlQuery proc delete(self: MysqlQuery): owned(Future[void]) 469 +nim delete v2/query_builder/models/mysql/mysql_exec.html#delete,MysqlQuery,int,string proc delete(self: MysqlQuery; id: int; key = "id"): owned(Future[void]) 475 +nim columns v2/query_builder/models/mysql/mysql_exec.html#columns,MysqlQuery proc columns(self: MysqlQuery): Future[seq[string]] 482 +nim count v2/query_builder/models/mysql/mysql_exec.html#count,MysqlQuery proc count(self: MysqlQuery): Future[int] 494 +nim min v2/query_builder/models/mysql/mysql_exec.html#min,MysqlQuery,string proc min(self: MysqlQuery; column: string): Future[Option[string]] 504 +nim max v2/query_builder/models/mysql/mysql_exec.html#max,MysqlQuery,string proc max(self: MysqlQuery; column: string): Future[Option[string]] 520 +nim avg v2/query_builder/models/mysql/mysql_exec.html#avg,MysqlQuery,string proc avg(self: MysqlQuery; column: string): Future[Option[float]] 536 +nim sum v2/query_builder/models/mysql/mysql_exec.html#sum,MysqlQuery,string proc sum(self: MysqlQuery; column: string): Future[Option[float]] 546 +nim begin v2/query_builder/models/mysql/mysql_exec.html#begin,MysqlConnections proc begin(self: MysqlConnections): owned(Future[void]) 556 +nim rollback v2/query_builder/models/mysql/mysql_exec.html#rollback,MysqlConnections proc rollback(self: MysqlConnections): owned(Future[void]) 561 +nim commit v2/query_builder/models/mysql/mysql_exec.html#commit,MysqlConnections proc commit(self: MysqlConnections): owned(Future[void]) 566 +nim get v2/query_builder/models/mysql/mysql_exec.html#get,RawMysqlQuery proc get(self: RawMysqlQuery): Future[seq[JsonNode]] 571 +nim getPlain v2/query_builder/models/mysql/mysql_exec.html#getPlain,RawMysqlQuery proc getPlain(self: RawMysqlQuery): Future[seq[seq[string]]] 577 +nim exec v2/query_builder/models/mysql/mysql_exec.html#exec,RawMysqlQuery proc exec(self: RawMysqlQuery): owned(Future[void]) 583 +nim first v2/query_builder/models/mysql/mysql_exec.html#first,RawMysqlQuery proc first(self: RawMysqlQuery): Future[Option[JsonNode]] 589 +nim firstPlain v2/query_builder/models/mysql/mysql_exec.html#firstPlain,RawMysqlQuery proc firstPlain(self: RawMysqlQuery): Future[seq[string]] 595 +nim seeder v2/query_builder/models/mysql/mysql_exec.html#seeder.t,MysqlConnections,string,untyped template seeder(rdb: MysqlConnections; tableName: string; body: untyped): untyped 601 +nim seeder v2/query_builder/models/mysql/mysql_exec.html#seeder.t,MysqlConnections,string,string,untyped template seeder(rdb: MysqlConnections; tableName, column: string; body: untyped): untyped 608 +nimgrp firstplain v2/query_builder/models/mysql/mysql_exec.html#firstPlain-procs-all proc 405 +nimgrp findplain v2/query_builder/models/mysql/mysql_exec.html#findPlain-procs-all proc 416 +nimgrp first v2/query_builder/models/mysql/mysql_exec.html#first-procs-all proc 367 +nimgrp insertid v2/query_builder/models/mysql/mysql_exec.html#insertId-procs-all proc 446 +nimgrp get v2/query_builder/models/mysql/mysql_exec.html#get-procs-all proc 356 +nimgrp insert v2/query_builder/models/mysql/mysql_exec.html#insert-procs-all proc 433 +nimgrp delete v2/query_builder/models/mysql/mysql_exec.html#delete-procs-all proc 469 +nimgrp getplain v2/query_builder/models/mysql/mysql_exec.html#getPlain-procs-all proc 394 +nimgrp find v2/query_builder/models/mysql/mysql_exec.html#find-procs-all proc 378 +nimgrp seeder v2/query_builder/models/mysql/mysql_exec.html#seeder-templates-all template 601 diff --git a/docs/v2/v2/query_builder/models/mysql/mysql_open.html b/docs/v2/v2/query_builder/models/mysql/mysql_open.html index 6a055bfb..c7caec52 100644 --- a/docs/v2/v2/query_builder/models/mysql/mysql_open.html +++ b/docs/v2/v2/query_builder/models/mysql/mysql_open.html @@ -55,11 +55,11 @@++src/allographer/v2/query_builder/models/mysql/mysql_exec
+++ + ++++ + +++++
+- Index
++ Search: +++ Group by: + +++
+ +- + Imports +
+- +
+++Procs
++ + +
+columns +
+- columns(self: MysqlQuery): Future[seq[string]]
+ +commit +
+- commit(self: MysqlConnections): owned(Future[void])
+ +count +
+- count(self: MysqlQuery): Future[int]
+ +delete +
+ +- delete(self: MysqlQuery): owned(Future[void])
+- delete(self: MysqlQuery; id: int; key = "id"): owned(Future[void])
+ +find +
+- find(self: MysqlQuery; id: int; key = "id"): Future[Option[JsonNode]]
+- find(self: MysqlQuery; id: string; key = "id"): Future[Option[JsonNode]]
+ +findPlain +
+- findPlain(self: MysqlQuery; id: int; key = "id"): Future[seq[string]]
+- findPlain(self: MysqlQuery; id: string; key = "id"): Future[seq[string]]
+ +first +
+- first(self: MysqlQuery): Future[Option[JsonNode]]
+- first(self: RawMysqlQuery): Future[Option[JsonNode]]
+ +firstPlain +
+- firstPlain(self: MysqlQuery): Future[seq[string]]
+- firstPlain(self: RawMysqlQuery): Future[seq[string]]
+ +get +
+- get(self: MysqlQuery): Future[seq[JsonNode]]
+- get(self: RawMysqlQuery): Future[seq[JsonNode]]
+ +getPlain +
+- getPlain(self: MysqlQuery): Future[seq[seq[string]]]
+- getPlain(self: RawMysqlQuery): Future[seq[seq[string]]]
+ +insert +
+- insert(self: MysqlQuery; items: JsonNode): owned(Future[void])
+- insert(self: MysqlQuery; items: seq[JsonNode]): owned(Future[void])
+ +insertId +
+ + +- insertId(self: MysqlQuery; items: JsonNode; key = "id"): Future[string]
+- insertId(self: MysqlQuery; items: seq[JsonNode]; key = "id"): Future[seq[string]]
+ +rollback +
+ + + +- rollback(self: MysqlConnections): owned(Future[void])
+ +- + +
+ ++ + + + ++++Imports
+ +++Procs
++
+++++ +- +
proc avg(self: MysqlQuery; column: string): Future[Option[float]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc begin(self: MysqlConnections): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc columns(self: MysqlQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + get columns sequence from table + +
+++++ +- +
proc commit(self: MysqlConnections): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect], forbids: [].}- + + + +
+++++ +- +
proc count(self: MysqlQuery): Future[int] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++- +
proc delete(self: MysqlQuery): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++ +- +
proc delete(self: MysqlQuery; id: int; key = "id"): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++ +- +
proc exec(self: RawMysqlQuery): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + It is only used with raw() + +
+++++- +
proc find(self: MysqlQuery; id: int; key = "id"): Future[Option[JsonNode]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++ +- +
proc find(self: MysqlQuery; id: string; key = "id"): Future[Option[JsonNode]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++- +
proc findPlain(self: MysqlQuery; id: int; key = "id"): Future[seq[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++ +- +
proc findPlain(self: MysqlQuery; id: string; key = "id"): Future[seq[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++- +
proc first(self: MysqlQuery): Future[Option[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++ +- +
proc first(self: RawMysqlQuery): Future[Option[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + It is only used with raw() + +
+++++- +
proc firstPlain(self: MysqlQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++ +- +
proc firstPlain(self: RawMysqlQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + It is only used with raw() + +
+++++- +
proc get(self: MysqlQuery): Future[seq[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++ +- +
proc get(self: RawMysqlQuery): Future[seq[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + It is only used with raw() + +
+++++- +
proc getPlain(self: MysqlQuery): Future[seq[seq[string]]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++ +- +
proc getPlain(self: RawMysqlQuery): Future[seq[seq[string]]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + It is only used with raw() + +
+++++- +
proc insert(self: MysqlQuery; items: JsonNode): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + items is JObject + +
+++ +- +
proc insert(self: MysqlQuery; items: seq[JsonNode]): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++- +
proc insertId(self: MysqlQuery; items: JsonNode; key = "id"): Future[string] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++ +- +
proc insertId(self: MysqlQuery; items: seq[JsonNode]; key = "id"): Future[ + seq[string]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, + TimeEffect], forbids: [].}- + + + +
+++++ +- +
proc max(self: MysqlQuery; column: string): Future[Option[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc min(self: MysqlQuery; column: string): Future[Option[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc rollback(self: MysqlConnections): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect], forbids: [].}- + + + +
+++++ +- +
proc sum(self: MysqlQuery; column: string): Future[Option[float]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++ +++ +- +
proc update(self: MysqlQuery; items: JsonNode): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++ +Templates
++
+++ +++- +
template seeder(rdb: MysqlConnections; tableName, column: string; body: untyped): untyped- + + The seeder block allows the code in the block to work only when the table or specified column is empty. + +
+++ +- +
template seeder(rdb: MysqlConnections; tableName: string; body: untyped): untyped- + + The seeder block allows the code in the block to work only when the table is empty. + +
+src/allographer/v2/query_builder/models/mysql/mysql_open
Procs
dbOpen -
- dbOpen(__2332033031: type MySQL; database: string = ""; user: string = ""; - password: string = ""; host: string = ""; port: int32 = 0; + shouldOutputLogFile = false; logDir = ""): MysqlConnections">dbOpen(__2348810247: type MySQL; database: string = ""; user: string = ""; + password: string = ""; host: string = ""; port: int = 0; maxConnections: int = 1; timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): MysqlConnections
@@ -87,9 +87,9 @@Imports
Procs
-diff --git a/docs/v2/v2/schema_builder/queries/postgres/rename_column.html b/docs/v2/v2/schema_builder/queries/postgres/rename_column.html index 58e07f23..3206d796 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/rename_column.html +++ b/docs/v2/v2/schema_builder/queries/postgres/rename_column.html @@ -83,9 +83,9 @@-diff --git a/docs/v2/v2/query_builder/models/mysql/mysql_open.idx b/docs/v2/v2/query_builder/models/mysql/mysql_open.idx index 0f2e51a0..2473b7eb 100644 --- a/docs/v2/v2/query_builder/models/mysql/mysql_open.idx +++ b/docs/v2/v2/query_builder/models/mysql/mysql_open.idx @@ -1,2 +1,2 @@ nimTitle mysql_open v2/query_builder/models/mysql/mysql_open.html module src/allographer/v2/query_builder/models/mysql/mysql_open 0 -nim dbOpen v2/query_builder/models/mysql/mysql_open.html#dbOpen,typeMySQL,string,string,string,string,int32,int,int,string proc dbOpen(__2332033031: type MySQL; database: string = ""; user: string = "";\n password: string = ""; host: string = ""; port: int32 = 0;\n maxConnections: int = 1; timeout = 30; shouldDisplayLog = false;\n shouldOutputLogFile = false; logDir = ""): MysqlConnections 8 +nim dbOpen v2/query_builder/models/mysql/mysql_open.html#dbOpen,typeMySQL,string,string,string,string,int,int,int,string proc dbOpen(__2348810247: type MySQL; database: string = ""; user: string = "";\n password: string = ""; host: string = ""; port: int = 0;\n maxConnections: int = 1; timeout = 30; shouldDisplayLog = false;\n shouldOutputLogFile = false; logDir = ""): MysqlConnections 8 diff --git a/docs/v2/v2/query_builder/models/mysql/mysql_query.html b/docs/v2/v2/query_builder/models/mysql/mysql_query.html index a564ff57..31fdf007 100644 --- a/docs/v2/v2/query_builder/models/mysql/mysql_query.html +++ b/docs/v2/v2/query_builder/models/mysql/mysql_query.html @@ -54,76 +54,9 @@ proc dbOpen(__2332033031: type MySQL; database: string = ""; user: string = ""; - password: string = ""; host: string = ""; port: int32 = 0; ++ proc dbOpen(__2348810247: type MySQL; database: string = ""; user: string = ""; + password: string = ""; host: string = ""; port: int = 0; maxConnections: int = 1; timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): MysqlConnections- @@ -110,7 +110,7 @@
Procs
src/allographer/v2/query_builder/models/mysql/mysql_query
- -Procs
- - -
columns -
-- columns(self: MysqlQuery): Future[seq[string]]
- -commit -
-- commit(self: MysqlConnections): owned(Future[void])
- -count -
-- count(self: MysqlQuery): Future[int]
- -delete -
-- delete(self: MysqlQuery): owned(Future[void])
-- delete(self: MysqlQuery; id: int; key = "id"): owned(Future[void])
- -distinct +
distinct
- -- `distinct`(self: MysqlQuery): MysqlQuery
-find -
-- find(self: MysqlQuery; id: int; key = "id"): Future[Option[JsonNode]]
-- find(self: MysqlQuery; id: string; key = "id"): Future[Option[JsonNode]]
-- find[T](self: MysqlQuery; id: int; typ: typedesc[T]; key = "id"): Future[ - Option[T]]
-- find[T](self: MysqlQuery; id: string; typ: typedesc[T]; key = "id"): Future[ - Option[T]]
- -findPlain -
-- findPlain(self: MysqlQuery; id: int; key = "id"): Future[seq[string]]
-- findPlain(self: MysqlQuery; id: string; key = "id"): Future[seq[string]]
- -first -
-- first(self: MysqlQuery): Future[Option[JsonNode]]
-- first(self: RawMysqlQuery): Future[Option[JsonNode]]
-- first[T](self: MysqlQuery; typ: typedesc[T]): Future[Option[T]]
- -firstPlain -
-- firstPlain(self: MysqlQuery): Future[seq[string]]
-- firstPlain(self: RawMysqlQuery): Future[seq[string]]
- -get -
-- get(self: MysqlQuery): Future[seq[JsonNode]]
-- get(self: RawMysqlQuery): Future[seq[JsonNode]]
-- get[T](self: MysqlQuery; typ: typedesc[T]): Future[seq[T]]
- -getPlain -
- getPlain(self: MysqlQuery): Future[seq[seq[string]]]
-- getPlain(self: RawMysqlQuery): Future[seq[seq[string]]]
-groupBy
-- groupBy(self: MysqlQuery; column: string): MysqlQuery
@@ -135,16 +68,6 @@src/allographer/v2/query_builder/models/mysql/mysql_query
value: string | int | float | bool): MysqlQuery- having(self: MysqlQuery; column: string; symbol: string; value: nil.type): MysqlQuery
-insert -
-- insert(self: MysqlQuery; items: JsonNode): owned(Future[void])
-- insert(self: MysqlQuery; items: seq[JsonNode]): owned(Future[void])
- -insertId -
- insertId(self: MysqlQuery; items: JsonNode; key = "id"): Future[string]
-- insertId(self: MysqlQuery; items: seq[JsonNode]; key = "id"): Future[seq[string]]
-join
- src/allographer/v2/query_builder/models/mysql/mysql_query - -
offset
-- offset(self: MysqlQuery; num: int): MysqlQuery
@@ -185,20 +100,17 @@src/allographer/v2/query_builder/models/mysql/mysql_query
- orWhere(self: MysqlQuery; column: string; symbol: string; value: nil.type): MysqlQuery
rollback -
- rollback(self: MysqlConnections): owned(Future[void])
+ -sum -
- sum(self: MysqlQuery; column: string): Future[Option[float]]
+ -update -
- update(self: MysqlQuery; items: JsonNode): owned(Future[void])
+- table(self: MysqlConnections; tableArg: string): MysqlQuery
+- table(self: MysqlQuery; tableArg: string): MysqlQuery
where @@ -230,19 +142,6 @@
-src/allographer/v2/query_builder/models/mysql/mysql_query
- -- -
-Templates
--
@@ -260,104 +159,13 @@src/allographer/v2/query_builder/models/mysql/mysql_query
Procs
-
---- -- -
proc avg(self: MysqlQuery; column: string): Future[Option[float]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
----- -- -
proc begin(self: MysqlConnections): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
----- -- -
proc columns(self: MysqlQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - get columns sequence from table - -
----- -- -
proc commit(self: MysqlConnections): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect], forbids: [].}- - - - -
----- -- -
proc count(self: MysqlQuery): Future[int] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
------ -
proc delete(self: MysqlQuery): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
--- -- -
proc delete(self: MysqlQuery; id: int; key = "id"): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
-+---- @@ -368,199 +176,6 @@
proc `distinct`(self: MysqlQuery): MysqlQuery {....raises: [], tags: [], forbids: [].}Procs
---- -- -
proc exec(self: RawMysqlQuery): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - It is only used with raw() - -
------ -
proc find(self: MysqlQuery; id: int; key = "id"): Future[Option[JsonNode]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
---- -
proc find(self: MysqlQuery; id: string; key = "id"): Future[Option[JsonNode]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
---- -
proc find[T](self: MysqlQuery; id: int; typ: typedesc[T]; key = "id"): Future[ - Option[T]] {....stackTrace: false.}- - - - -
--- -- -
proc find[T](self: MysqlQuery; id: string; typ: typedesc[T]; key = "id"): Future[ - Option[T]] {....stackTrace: false.}- - - - -
------ -
proc findPlain(self: MysqlQuery; id: int; key = "id"): Future[seq[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
--- -- -
proc findPlain(self: MysqlQuery; id: string; key = "id"): Future[seq[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
------ -
proc first(self: MysqlQuery): Future[Option[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
---- -
proc first(self: RawMysqlQuery): Future[Option[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - It is only used with raw() - -
--- -- -
proc first[T](self: MysqlQuery; typ: typedesc[T]): Future[Option[T]] {. - ...stackTrace: false.}- - - - -
------ -
proc firstPlain(self: MysqlQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
--- -- -
proc firstPlain(self: RawMysqlQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - It is only used with raw() - -
------ -
proc get(self: MysqlQuery): Future[seq[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
---- -
proc get(self: RawMysqlQuery): Future[seq[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - It is only used with raw() - -
--- -- -
proc get[T](self: MysqlQuery; typ: typedesc[T]): Future[seq[T]] {. - ...stackTrace: false.}- - - - -
----- -
proc getPlain(self: MysqlQuery): Future[seq[seq[string]]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
---- -
proc getPlain(self: RawMysqlQuery): Future[seq[seq[string]]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - It is only used with raw() - -
--@@ -586,55 +201,7 @@Procs
- -- -
proc having(self: MysqlQuery; column: string; symbol: string; value: nil.type): MysqlQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- - - - -
------ -
proc insert(self: MysqlQuery; items: JsonNode): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - items is JObject - -
--- -- -
proc insert(self: MysqlQuery; items: seq[JsonNode]): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
------ -
proc insertId(self: MysqlQuery; items: JsonNode; key = "id"): Future[string] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
--- -- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc insertId(self: MysqlQuery; items: seq[JsonNode]; key = "id"): Future[ - seq[string]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - TimeEffect], forbids: [].}- @@ -677,34 +244,6 @@
-Procs
----- -- -
proc max(self: MysqlQuery; column: string): Future[Option[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
---@@ -745,7 +284,7 @@- -
proc min(self: MysqlQuery; column: string): Future[Option[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - -
Procs
- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc orWhere(self: MysqlQuery; column: string; symbol: string; value: nil.type): MysqlQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- @@ -754,25 +293,24 @@
Procs
-diff --git a/docs/v2/v2/schema_builder/queries/postgres/postgres_query_type.html b/docs/v2/v2/schema_builder/queries/postgres/postgres_query_type.html index b55b4517..bdddd300 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/postgres_query_type.html +++ b/docs/v2/v2/schema_builder/queries/postgres/postgres_query_type.html @@ -144,7 +144,7 @@-- +
proc rollback(self: MysqlConnections): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect], forbids: [].}+-+ proc raw(self: MysqlConnections; sql: string; arges = newJArray()): RawMysqlQuery {. + ...raises: [], tags: [], forbids: [].}- - +
arges is JArray [true, 1, 1.1, "str"]
+can't use BLOB data.
+-diff --git a/docs/v2/v2/schema_builder/queries/postgres/create_table.html b/docs/v2/v2/schema_builder/queries/postgres/create_table.html index 8216e214..ad250516 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/create_table.html +++ b/docs/v2/v2/schema_builder/queries/postgres/create_table.html @@ -82,10 +82,10 @@-diff --git a/docs/v2/v2/query_builder/models/mysql/mysql_types.html b/docs/v2/v2/query_builder/models/mysql/mysql_types.html index fa4ac2c0..e17ca539 100644 --- a/docs/v2/v2/query_builder/models/mysql/mysql_types.html +++ b/docs/v2/v2/query_builder/models/mysql/mysql_types.html @@ -54,29 +54,30 @@- +
proc sum(self: MysqlQuery; column: string): Future[Option[float]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}++ proc select(self: MysqlConnections; columnsArg: varargs[string]): MysqlQuery {. + ...raises: [], tags: [], forbids: [].}- @@ -782,8 +320,8 @@
Procs
-diff --git a/docs/v2/v2/query_builder/models/mysql/mysql_query.idx b/docs/v2/v2/query_builder/models/mysql/mysql_query.idx index 499f9d64..ae70a09f 100644 --- a/docs/v2/v2/query_builder/models/mysql/mysql_query.idx +++ b/docs/v2/v2/query_builder/models/mysql/mysql_query.idx @@ -1,73 +1,32 @@ nimTitle mysql_query v2/query_builder/models/mysql/mysql_query.html module src/allographer/v2/query_builder/models/mysql/mysql_query 0 -nim table v2/query_builder/models/mysql/mysql_query.html#table,MysqlQuery,string proc table(self: MysqlQuery; tableArg: string): MysqlQuery 15 -nim `distinct` v2/query_builder/models/mysql/mysql_query.html#distinct,MysqlQuery proc `distinct`(self: MysqlQuery): MysqlQuery 20 -nim join v2/query_builder/models/mysql/mysql_query.html#join,MysqlQuery,string,string,string,string proc join(self: MysqlQuery; table: string; column1: string; symbol: string;\n column2: string): MysqlQuery 26 -nim leftJoin v2/query_builder/models/mysql/mysql_query.html#leftJoin,MysqlQuery,string,string,string,string proc leftJoin(self: MysqlQuery; table: string; column1: string; symbol: string;\n column2: string): MysqlQuery 45 -nim where v2/query_builder/models/mysql/mysql_query.html#where,MysqlQuery,string,string, proc where(self: MysqlQuery; column: string; symbol: string;\n value: string | int | float): MysqlQuery 67 -nim where v2/query_builder/models/mysql/mysql_query.html#where,MysqlQuery,string,string,bool proc where(self: MysqlQuery; column: string; symbol: string; value: bool): MysqlQuery 94 -nim where v2/query_builder/models/mysql/mysql_query.html#where,MysqlQuery,string,string,_2 proc where(self: MysqlQuery; column: string; symbol: string; value: nil.type): MysqlQuery 121 -nim orWhere v2/query_builder/models/mysql/mysql_query.html#orWhere,MysqlQuery,string,string, proc orWhere(self: MysqlQuery; column: string; symbol: string;\n value: string | int | float | bool): MysqlQuery 145 -nim orWhere v2/query_builder/models/mysql/mysql_query.html#orWhere,MysqlQuery,string,string,_2 proc orWhere(self: MysqlQuery; column: string; symbol: string; value: nil.type): MysqlQuery 172 -nim whereBetween v2/query_builder/models/mysql/mysql_query.html#whereBetween,MysqlQuery,string,array[,] proc whereBetween(self: MysqlQuery; column: string; width: array[2, int | float]): MysqlQuery 194 -nim whereBetween v2/query_builder/models/mysql/mysql_query.html#whereBetween,MysqlQuery,string,array[,string] proc whereBetween(self: MysqlQuery; column: string; width: array[2, string]): MysqlQuery 211 -nim whereNotBetween v2/query_builder/models/mysql/mysql_query.html#whereNotBetween,MysqlQuery,string,array[,] proc whereNotBetween(self: MysqlQuery; column: string; width: array[2, int | float]): MysqlQuery 228 -nim whereNotBetween v2/query_builder/models/mysql/mysql_query.html#whereNotBetween,MysqlQuery,string,array[,string] proc whereNotBetween(self: MysqlQuery; column: string; width: array[2, string]): MysqlQuery 245 -nim whereIn v2/query_builder/models/mysql/mysql_query.html#whereIn,MysqlQuery,string,seq[] proc whereIn(self: MysqlQuery; column: string; width: seq[int | float | string]): MysqlQuery 262 -nim whereNotIn v2/query_builder/models/mysql/mysql_query.html#whereNotIn,MysqlQuery,string,seq[] proc whereNotIn(self: MysqlQuery; column: string; width: seq[int | float | string]): MysqlQuery 279 -nim whereNull v2/query_builder/models/mysql/mysql_query.html#whereNull,MysqlQuery,string proc whereNull(self: MysqlQuery; column: string): MysqlQuery 296 -nim groupBy v2/query_builder/models/mysql/mysql_query.html#groupBy,MysqlQuery,string proc groupBy(self: MysqlQuery; column: string): MysqlQuery 310 -nim having v2/query_builder/models/mysql/mysql_query.html#having,MysqlQuery,string,string, proc having(self: MysqlQuery; column: string; symbol: string;\n value: string | int | float | bool): MysqlQuery 318 -nim having v2/query_builder/models/mysql/mysql_query.html#having,MysqlQuery,string,string,_2 proc having(self: MysqlQuery; column: string; symbol: string; value: nil.type): MysqlQuery 344 -nim orderBy v2/query_builder/models/mysql/mysql_query.html#orderBy,MysqlQuery,string,Order proc orderBy(self: MysqlQuery; column: string; order: Order): MysqlQuery 368 -nim limit v2/query_builder/models/mysql/mysql_query.html#limit,MysqlQuery,int proc limit(self: MysqlQuery; num: int): MysqlQuery 382 -nim offset v2/query_builder/models/mysql/mysql_query.html#offset,MysqlQuery,int proc offset(self: MysqlQuery; num: int): MysqlQuery 387 -nim get v2/query_builder/models/mysql/mysql_query.html#get,MysqlQuery proc get(self: MysqlQuery): Future[seq[JsonNode]] 729 -nim first v2/query_builder/models/mysql/mysql_query.html#first,MysqlQuery proc first(self: MysqlQuery): Future[Option[JsonNode]] 740 -nim find v2/query_builder/models/mysql/mysql_query.html#find,MysqlQuery,string,string proc find(self: MysqlQuery; id: string; key = "id"): Future[Option[JsonNode]] 751 -nim find v2/query_builder/models/mysql/mysql_query.html#find,MysqlQuery,int,string proc find(self: MysqlQuery; id: int; key = "id"): Future[Option[JsonNode]] 763 -nim getPlain v2/query_builder/models/mysql/mysql_query.html#getPlain,MysqlQuery proc getPlain(self: MysqlQuery): Future[seq[seq[string]]] 767 -nim firstPlain v2/query_builder/models/mysql/mysql_query.html#firstPlain,MysqlQuery proc firstPlain(self: MysqlQuery): Future[seq[string]] 778 -nim findPlain v2/query_builder/models/mysql/mysql_query.html#findPlain,MysqlQuery,string,string proc findPlain(self: MysqlQuery; id: string; key = "id"): Future[seq[string]] 789 -nim findPlain v2/query_builder/models/mysql/mysql_query.html#findPlain,MysqlQuery,int,string proc findPlain(self: MysqlQuery; id: int; key = "id"): Future[seq[string]] 801 -nim get v2/query_builder/models/mysql/mysql_query.html#get,MysqlQuery,typedesc[T] proc get[T](self: MysqlQuery; typ: typedesc[T]): Future[seq[T]] 806 -nim first v2/query_builder/models/mysql/mysql_query.html#first,MysqlQuery,typedesc[T] proc first[T](self: MysqlQuery; typ: typedesc[T]): Future[Option[T]] 819 -nim find v2/query_builder/models/mysql/mysql_query.html#find,MysqlQuery,string,typedesc[T],string proc find[T](self: MysqlQuery; id: string; typ: typedesc[T]; key = "id"): Future[\n Option[T]] 834 -nim find v2/query_builder/models/mysql/mysql_query.html#find,MysqlQuery,int,typedesc[T],string proc find[T](self: MysqlQuery; id: int; typ: typedesc[T]; key = "id"): Future[\n Option[T]] 850 -nim insert v2/query_builder/models/mysql/mysql_query.html#insert,MysqlQuery,JsonNode proc insert(self: MysqlQuery; items: JsonNode): owned(Future[void]) 854 -nim insert v2/query_builder/models/mysql/mysql_query.html#insert,MysqlQuery,seq[JsonNode] proc insert(self: MysqlQuery; items: seq[JsonNode]): owned(Future[void]) 861 -nim insertId v2/query_builder/models/mysql/mysql_query.html#insertId,MysqlQuery,JsonNode,string proc insertId(self: MysqlQuery; items: JsonNode; key = "id"): Future[string] 867 -nim insertId v2/query_builder/models/mysql/mysql_query.html#insertId,MysqlQuery,seq[JsonNode],string proc insertId(self: MysqlQuery; items: seq[JsonNode]; key = "id"): Future[seq[string]] 882 -nim update v2/query_builder/models/mysql/mysql_query.html#update,MysqlQuery,JsonNode proc update(self: MysqlQuery; items: JsonNode): owned(Future[void]) 900 -nim delete v2/query_builder/models/mysql/mysql_query.html#delete,MysqlQuery proc delete(self: MysqlQuery): owned(Future[void]) 906 -nim delete v2/query_builder/models/mysql/mysql_query.html#delete,MysqlQuery,int,string proc delete(self: MysqlQuery; id: int; key = "id"): owned(Future[void]) 912 -nim columns v2/query_builder/models/mysql/mysql_query.html#columns,MysqlQuery proc columns(self: MysqlQuery): Future[seq[string]] 919 -nim count v2/query_builder/models/mysql/mysql_query.html#count,MysqlQuery proc count(self: MysqlQuery): Future[int] 931 -nim min v2/query_builder/models/mysql/mysql_query.html#min,MysqlQuery,string proc min(self: MysqlQuery; column: string): Future[Option[string]] 941 -nim max v2/query_builder/models/mysql/mysql_query.html#max,MysqlQuery,string proc max(self: MysqlQuery; column: string): Future[Option[string]] 957 -nim avg v2/query_builder/models/mysql/mysql_query.html#avg,MysqlQuery,string proc avg(self: MysqlQuery; column: string): Future[Option[float]] 973 -nim sum v2/query_builder/models/mysql/mysql_query.html#sum,MysqlQuery,string proc sum(self: MysqlQuery; column: string): Future[Option[float]] 983 -nim begin v2/query_builder/models/mysql/mysql_query.html#begin,MysqlConnections proc begin(self: MysqlConnections): owned(Future[void]) 993 -nim rollback v2/query_builder/models/mysql/mysql_query.html#rollback,MysqlConnections proc rollback(self: MysqlConnections): owned(Future[void]) 998 -nim commit v2/query_builder/models/mysql/mysql_query.html#commit,MysqlConnections proc commit(self: MysqlConnections): owned(Future[void]) 1003 -nim get v2/query_builder/models/mysql/mysql_query.html#get,RawMysqlQuery proc get(self: RawMysqlQuery): Future[seq[JsonNode]] 1008 -nim getPlain v2/query_builder/models/mysql/mysql_query.html#getPlain,RawMysqlQuery proc getPlain(self: RawMysqlQuery): Future[seq[seq[string]]] 1014 -nim exec v2/query_builder/models/mysql/mysql_query.html#exec,RawMysqlQuery proc exec(self: RawMysqlQuery): owned(Future[void]) 1020 -nim first v2/query_builder/models/mysql/mysql_query.html#first,RawMysqlQuery proc first(self: RawMysqlQuery): Future[Option[JsonNode]] 1026 -nim firstPlain v2/query_builder/models/mysql/mysql_query.html#firstPlain,RawMysqlQuery proc firstPlain(self: RawMysqlQuery): Future[seq[string]] 1032 -nim seeder v2/query_builder/models/mysql/mysql_query.html#seeder.t,MysqlConnections,string,untyped template seeder(rdb: MysqlConnections; tableName: string; body: untyped): untyped 1038 -nim seeder v2/query_builder/models/mysql/mysql_query.html#seeder.t,MysqlConnections,string,string,untyped template seeder(rdb: MysqlConnections; tableName, column: string; body: untyped): untyped 1045 -nimgrp firstplain v2/query_builder/models/mysql/mysql_query.html#firstPlain-procs-all proc 778 -nimgrp findplain v2/query_builder/models/mysql/mysql_query.html#findPlain-procs-all proc 789 -nimgrp wherenotbetween v2/query_builder/models/mysql/mysql_query.html#whereNotBetween-procs-all proc 228 -nimgrp wherebetween v2/query_builder/models/mysql/mysql_query.html#whereBetween-procs-all proc 194 -nimgrp having v2/query_builder/models/mysql/mysql_query.html#having-procs-all proc 318 -nimgrp orwhere v2/query_builder/models/mysql/mysql_query.html#orWhere-procs-all proc 145 -nimgrp first v2/query_builder/models/mysql/mysql_query.html#first-procs-all proc 740 -nimgrp get v2/query_builder/models/mysql/mysql_query.html#get-procs-all proc 729 -nimgrp insertid v2/query_builder/models/mysql/mysql_query.html#insertId-procs-all proc 867 -nimgrp insert v2/query_builder/models/mysql/mysql_query.html#insert-procs-all proc 854 -nimgrp where v2/query_builder/models/mysql/mysql_query.html#where-procs-all proc 67 -nimgrp delete v2/query_builder/models/mysql/mysql_query.html#delete-procs-all proc 906 -nimgrp getplain v2/query_builder/models/mysql/mysql_query.html#getPlain-procs-all proc 767 -nimgrp find v2/query_builder/models/mysql/mysql_query.html#find-procs-all proc 751 -nimgrp seeder v2/query_builder/models/mysql/mysql_query.html#seeder-templates-all template 1038 +nim select v2/query_builder/models/mysql/mysql_query.html#select,MysqlConnections,varargs[string] proc select(self: MysqlConnections; columnsArg: varargs[string]): MysqlQuery 11 +nim table v2/query_builder/models/mysql/mysql_query.html#table,MysqlConnections,string proc table(self: MysqlConnections; tableArg: string): MysqlQuery 31 +nim table v2/query_builder/models/mysql/mysql_query.html#table,MysqlQuery,string proc table(self: MysqlQuery; tableArg: string): MysqlQuery 47 +nim `distinct` v2/query_builder/models/mysql/mysql_query.html#distinct,MysqlQuery proc `distinct`(self: MysqlQuery): MysqlQuery 52 +nim join v2/query_builder/models/mysql/mysql_query.html#join,MysqlQuery,string,string,string,string proc join(self: MysqlQuery; table: string; column1: string; symbol: string;\n column2: string): MysqlQuery 58 +nim leftJoin v2/query_builder/models/mysql/mysql_query.html#leftJoin,MysqlQuery,string,string,string,string proc leftJoin(self: MysqlQuery; table: string; column1: string; symbol: string;\n column2: string): MysqlQuery 77 +nim where v2/query_builder/models/mysql/mysql_query.html#where,MysqlQuery,string,string, proc where(self: MysqlQuery; column: string; symbol: string;\n value: string | int | float): MysqlQuery 99 +nim where v2/query_builder/models/mysql/mysql_query.html#where,MysqlQuery,string,string,bool proc where(self: MysqlQuery; column: string; symbol: string; value: bool): MysqlQuery 126 +nim where v2/query_builder/models/mysql/mysql_query.html#where,MysqlQuery,string,string,_2 proc where(self: MysqlQuery; column: string; symbol: string; value: nil.type): MysqlQuery 153 +nim orWhere v2/query_builder/models/mysql/mysql_query.html#orWhere,MysqlQuery,string,string, proc orWhere(self: MysqlQuery; column: string; symbol: string;\n value: string | int | float | bool): MysqlQuery 177 +nim orWhere v2/query_builder/models/mysql/mysql_query.html#orWhere,MysqlQuery,string,string,_2 proc orWhere(self: MysqlQuery; column: string; symbol: string; value: nil.type): MysqlQuery 204 +nim whereBetween v2/query_builder/models/mysql/mysql_query.html#whereBetween,MysqlQuery,string,array[,] proc whereBetween(self: MysqlQuery; column: string; width: array[2, int | float]): MysqlQuery 226 +nim whereBetween v2/query_builder/models/mysql/mysql_query.html#whereBetween,MysqlQuery,string,array[,string] proc whereBetween(self: MysqlQuery; column: string; width: array[2, string]): MysqlQuery 243 +nim whereNotBetween v2/query_builder/models/mysql/mysql_query.html#whereNotBetween,MysqlQuery,string,array[,] proc whereNotBetween(self: MysqlQuery; column: string; width: array[2, int | float]): MysqlQuery 260 +nim whereNotBetween v2/query_builder/models/mysql/mysql_query.html#whereNotBetween,MysqlQuery,string,array[,string] proc whereNotBetween(self: MysqlQuery; column: string; width: array[2, string]): MysqlQuery 277 +nim whereIn v2/query_builder/models/mysql/mysql_query.html#whereIn,MysqlQuery,string,seq[] proc whereIn(self: MysqlQuery; column: string; width: seq[int | float | string]): MysqlQuery 294 +nim whereNotIn v2/query_builder/models/mysql/mysql_query.html#whereNotIn,MysqlQuery,string,seq[] proc whereNotIn(self: MysqlQuery; column: string; width: seq[int | float | string]): MysqlQuery 311 +nim whereNull v2/query_builder/models/mysql/mysql_query.html#whereNull,MysqlQuery,string proc whereNull(self: MysqlQuery; column: string): MysqlQuery 328 +nim groupBy v2/query_builder/models/mysql/mysql_query.html#groupBy,MysqlQuery,string proc groupBy(self: MysqlQuery; column: string): MysqlQuery 342 +nim having v2/query_builder/models/mysql/mysql_query.html#having,MysqlQuery,string,string, proc having(self: MysqlQuery; column: string; symbol: string;\n value: string | int | float | bool): MysqlQuery 350 +nim having v2/query_builder/models/mysql/mysql_query.html#having,MysqlQuery,string,string,_2 proc having(self: MysqlQuery; column: string; symbol: string; value: nil.type): MysqlQuery 376 +nim orderBy v2/query_builder/models/mysql/mysql_query.html#orderBy,MysqlQuery,string,Order proc orderBy(self: MysqlQuery; column: string; order: Order): MysqlQuery 400 +nim limit v2/query_builder/models/mysql/mysql_query.html#limit,MysqlQuery,int proc limit(self: MysqlQuery; num: int): MysqlQuery 414 +nim offset v2/query_builder/models/mysql/mysql_query.html#offset,MysqlQuery,int proc offset(self: MysqlQuery; num: int): MysqlQuery 419 +nim raw v2/query_builder/models/mysql/mysql_query.html#raw,MysqlConnections,string proc raw(self: MysqlConnections; sql: string; arges = newJArray()): RawMysqlQuery 424 +nimgrp wherenotbetween v2/query_builder/models/mysql/mysql_query.html#whereNotBetween-procs-all proc 260 +nimgrp wherebetween v2/query_builder/models/mysql/mysql_query.html#whereBetween-procs-all proc 226 +nimgrp having v2/query_builder/models/mysql/mysql_query.html#having-procs-all proc 350 +nimgrp orwhere v2/query_builder/models/mysql/mysql_query.html#orWhere-procs-all proc 177 +nimgrp table v2/query_builder/models/mysql/mysql_query.html#table-procs-all proc 31 +nimgrp where v2/query_builder/models/mysql/mysql_query.html#where-procs-all proc 99 diff --git a/docs/v2/v2/query_builder/models/mysql/mysql_transaction.html b/docs/v2/v2/query_builder/models/mysql/mysql_transaction.html index e78bff77..ceb0c112 100644 --- a/docs/v2/v2/query_builder/models/mysql/mysql_transaction.html +++ b/docs/v2/v2/query_builder/models/mysql/mysql_transaction.html @@ -101,7 +101,7 @@-- proc table(self: MysqlQuery; tableArg: string): MysqlQuery {....raises: [], ++- - proc table(self: MysqlConnections; tableArg: string): MysqlQuery {....raises: [], tags: [], forbids: [].}- @@ -791,13 +329,9 @@
Procs
---- - -- +
proc update(self: MysqlQuery; items: JsonNode): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}+ proc table(self: MysqlQuery; tableArg: string): MysqlQuery {....raises: [], + tags: [], forbids: [].}- @@ -818,7 +352,7 @@
Procs
- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc where(self: MysqlQuery; column: string; symbol: string; value: bool): MysqlQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- @@ -827,7 +361,7 @@
Procs
-- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc where(self: MysqlQuery; column: string; symbol: string; value: nil.type): MysqlQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- @@ -911,31 +445,6 @@
Procs
-Templates
--
@@ -947,7 +456,7 @@---- -
template seeder(rdb: MysqlConnections; tableName, column: string; body: untyped): untyped- - - The seeder block allows the code in the block to work only when the table or specified column is empty. - -
---- -
template seeder(rdb: MysqlConnections; tableName: string; body: untyped): untyped- - - The seeder block allows the code in the block to work only when the table is empty. - -
-Templates
Templates
src/allographer/v2/query_builder/models/mysql/mysql_types
Types
-
- MySQL
-- MysqlConnection
-- Connection
+- MysqlConnectionInfo
+ port*: int">ConnectionInfo +- Connections
+- MySQL
- MysqlConnections
- src/allographer/v2/query_builder/models/mysql/mysql_types transactionConn*: int">MysqlQuery
- src/allographer/v2/query_builder/models/mysql/mysql_types
Procs
$ -
@@ -126,16 +126,8 @@- `$`(self: MysqlConnections): string
+- `$`(self: MysqlConnections | MysqlQuery | RawMysqlQuery): string
Imports
Types
-
--- -
MySQL = object- - - - -
--diff --git a/docs/v2/v2/query_builder/models/postgres/postgres_connections.html b/docs/v2/v2/query_builder/models/postgres/postgres_connections.html deleted file mode 100644 index 30a1817c..00000000 --- a/docs/v2/v2/query_builder/models/postgres/postgres_connections.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - - MysqlConnection = object ++- Connection = object conn*: PMySQL isBusy*: bool createdAt*: int64 @@ -146,8 +138,8 @@Types
- MysqlConnectionInfo = object +++ ConnectionInfo = object database*: string user*: string password*: string @@ -158,14 +150,32 @@Types
+ +++- +
Connections = ref object + conns*: seq[Connection] + timeout*: int +- + + + +
++- +
MySQL = object- + + +
diff --git a/docs/v2/v2/query_builder/models/orm.html b/docs/v2/v2/query_builder/models/orm.html new file mode 100644 index 00000000..4812f79f --- /dev/null +++ b/docs/v2/v2/query_builder/models/orm.html @@ -0,0 +1,115 @@ + + + + + + + +- @@ -178,9 +188,8 @@
MysqlConnections = ref object log*: LogSetting - pools*: seq[MysqlConnection] - timeout*: int - info*: MysqlConnectionInfo + pools*: Connections + info*: ConnectionInfo isInTransaction*: bool transactionConn*: intTypes
MysqlQuery = ref object log*: LogSetting - pools*: seq[MysqlConnection] - timeout*: int - info*: MysqlConnectionInfo + pools*: Connections + info*: ConnectionInfo query*: JsonNode queryString*: string placeHolder*: JsonNode @@ -196,9 +205,8 @@Types
diff --git a/docs/v2/v2/query_builder/models/mysql/query/mysql_generator.html b/docs/v2/v2/query_builder/models/mysql/query/mysql_generator.html index 9c1a2837..0ed3c5cb 100644 --- a/docs/v2/v2/query_builder/models/mysql/query/mysql_generator.html +++ b/docs/v2/v2/query_builder/models/mysql/query/mysql_generator.html @@ -597,7 +597,7 @@ RawMysqlQuery = ref object log*: LogSetting - pools*: seq[MysqlConnection] - timeout*: int - info*: MysqlConnectionInfo + pools*: Connections + info*: ConnectionInfo query*: JsonNode queryString*: string placeHolder*: JsonNode @@ -218,8 +226,8 @@Types
Procs
--diff --git a/docs/v2/v2/query_builder/models/mysql/mysql_types.idx b/docs/v2/v2/query_builder/models/mysql/mysql_types.idx index 60dbf59d..3843cd71 100644 --- a/docs/v2/v2/query_builder/models/mysql/mysql_types.idx +++ b/docs/v2/v2/query_builder/models/mysql/mysql_types.idx @@ -1,8 +1,9 @@ nimTitle mysql_types v2/query_builder/models/mysql/mysql_types.html module src/allographer/v2/query_builder/models/mysql/mysql_types 0 nim MySQL v2/query_builder/models/mysql/mysql_types.html#MySQL object MySQL 6 -nim MysqlConnectionInfo v2/query_builder/models/mysql/mysql_types.html#MysqlConnectionInfo object MysqlConnectionInfo 8 -nim MysqlConnection v2/query_builder/models/mysql/mysql_types.html#MysqlConnection object MysqlConnection 15 -nim MysqlConnections v2/query_builder/models/mysql/mysql_types.html#MysqlConnections type MysqlConnections 21 -nim `$` v2/query_builder/models/mysql/mysql_types.html#$,MysqlConnections proc `$`(self: MysqlConnections): string 30 -nim MysqlQuery v2/query_builder/models/mysql/mysql_types.html#MysqlQuery type MysqlQuery 35 -nim RawMysqlQuery v2/query_builder/models/mysql/mysql_types.html#RawMysqlQuery type RawMysqlQuery 48 +nim ConnectionInfo v2/query_builder/models/mysql/mysql_types.html#ConnectionInfo object ConnectionInfo 9 +nim Connection v2/query_builder/models/mysql/mysql_types.html#Connection object Connection 17 +nim Connections v2/query_builder/models/mysql/mysql_types.html#Connections type Connections 23 +nim MysqlConnections v2/query_builder/models/mysql/mysql_types.html#MysqlConnections type MysqlConnections 29 +nim MysqlQuery v2/query_builder/models/mysql/mysql_types.html#MysqlQuery type MysqlQuery 39 +nim RawMysqlQuery v2/query_builder/models/mysql/mysql_types.html#RawMysqlQuery type RawMysqlQuery 51 +nim `$` v2/query_builder/models/mysql/mysql_types.html#$ proc `$`(self: MysqlConnections | MysqlQuery | RawMysqlQuery): string 63 diff --git a/docs/v2/v2/query_builder/models/mysql/query/mysql_builder.html b/docs/v2/v2/query_builder/models/mysql/query/mysql_builder.html index b883a241..49808bb4 100644 --- a/docs/v2/v2/query_builder/models/mysql/query/mysql_builder.html +++ b/docs/v2/v2/query_builder/models/mysql/query/mysql_builder.html @@ -310,7 +310,7 @@- +
proc `$`(self: MysqlConnections): string {....raises: [], tags: [], forbids: [].}+ proc `$`(self: MysqlConnections | MysqlQuery | RawMysqlQuery): string- @@ -238,7 +246,7 @@
Procs
Procs
Procs
src/allographer/v2/query_builder/models/orm + + + + + + + + + + + + +++ + + + + + diff --git a/docs/v2/v2/query_builder/models/orm.idx b/docs/v2/v2/query_builder/models/orm.idx new file mode 100644 index 00000000..b4e06d4c --- /dev/null +++ b/docs/v2/v2/query_builder/models/orm.idx @@ -0,0 +1,4 @@ +nimTitle orm v2/query_builder/models/orm.html module src/allographer/v2/query_builder/models/orm 0 +nim orm v2/query_builder/models/orm.html#orm,Future[seq[JsonNode]],typedesc[T] proc orm[T](response: Future[seq[JsonNode]]; typ: typedesc[T]): Future[seq[T]] 5 +nim orm v2/query_builder/models/orm.html#orm,Future[Option[JsonNode]],typedesc[T] proc orm[T](response: Future[Option[JsonNode]]; typ: typedesc[T]): Future[Option[T]] 13 +nimgrp orm v2/query_builder/models/orm.html#orm-procs-all proc 5 diff --git a/docs/v2/v2/query_builder/models/postgres/poatgres_transaction.html b/docs/v2/v2/query_builder/models/postgres/poatgres_transaction.html index cd7cbd9d..252d99ef 100644 --- a/docs/v2/v2/query_builder/models/postgres/poatgres_transaction.html +++ b/docs/v2/v2/query_builder/models/postgres/poatgres_transaction.html @@ -101,7 +101,7 @@++src/allographer/v2/query_builder/models/orm
++ + ++ + +Templates
src/allographer/v2/query_builder/models/postgres/postgres_connections - - - - - - - - - - - - --- - - - - - diff --git a/docs/v2/v2/query_builder/models/postgres/postgres_connections.idx b/docs/v2/v2/query_builder/models/postgres/postgres_connections.idx deleted file mode 100644 index 6150958a..00000000 --- a/docs/v2/v2/query_builder/models/postgres/postgres_connections.idx +++ /dev/null @@ -1,5 +0,0 @@ -nimTitle postgres_connections v2/query_builder/models/postgres/postgres_connections.html module src/allographer/v2/query_builder/models/postgres/postgres_connections 0 -nim `$` v2/query_builder/models/postgres/postgres_connections.html#$ proc `$`(self: PostgresConnections | PostgresQuery): string 5 -nim select v2/query_builder/models/postgres/postgres_connections.html#select,PostgresConnections,varargs[string] proc select(self: PostgresConnections; columnsArg: varargs[string]): PostgresQuery 9 -nim table v2/query_builder/models/postgres/postgres_connections.html#table,PostgresConnections,string proc table(self: PostgresConnections; tableArg: string): PostgresQuery 30 -nim raw v2/query_builder/models/postgres/postgres_connections.html#raw,PostgresConnections,string proc raw(self: PostgresConnections; sql: string; arges = newJArray()): RawPostgresQuery 47 diff --git a/docs/v2/v2/query_builder/models/postgres/postgres_exec.html b/docs/v2/v2/query_builder/models/postgres/postgres_exec.html new file mode 100644 index 00000000..81099cb0 --- /dev/null +++ b/docs/v2/v2/query_builder/models/postgres/postgres_exec.html @@ -0,0 +1,596 @@ + + + + + + + +--src/allographer/v2/query_builder/models/postgres/postgres_connections
--- - ---- - -----
-- Index
-- Search: --- Group by: - -- - -- - - - ----Imports
-- postgres_types -
--- -Procs
--
----- -- -
proc `$`(self: PostgresConnections | PostgresQuery): string- - - - -
----- -- -
proc raw(self: PostgresConnections; sql: string; arges = newJArray()): RawPostgresQuery {. - ...raises: [], tags: [], forbids: [].}- - -
-arges is JArray
-can't use BLOB data.
- - ----- -- -
proc select(self: PostgresConnections; columnsArg: varargs[string]): PostgresQuery {. - ...raises: [], tags: [], forbids: [].}- - - - -
--- --- -- -
proc table(self: PostgresConnections; tableArg: string): PostgresQuery {. - ...raises: [], tags: [], forbids: [].}- - - - -
-src/allographer/v2/query_builder/models/postgres/postgres_exec + + + + + + + + + + + + +++ + + + + + diff --git a/docs/v2/v2/query_builder/models/postgres/postgres_exec.idx b/docs/v2/v2/query_builder/models/postgres/postgres_exec.idx new file mode 100644 index 00000000..de70acc6 --- /dev/null +++ b/docs/v2/v2/query_builder/models/postgres/postgres_exec.idx @@ -0,0 +1,42 @@ +nimTitle postgres_exec v2/query_builder/models/postgres/postgres_exec.html module src/allographer/v2/query_builder/models/postgres/postgres_exec 0 +nim get v2/query_builder/models/postgres/postgres_exec.html#get,PostgresQuery proc get(self: PostgresQuery): Future[seq[JsonNode]] 373 +nim first v2/query_builder/models/postgres/postgres_exec.html#first,PostgresQuery proc first(self: PostgresQuery): Future[Option[JsonNode]] 385 +nim find v2/query_builder/models/postgres/postgres_exec.html#find,PostgresQuery,string,string proc find(self: PostgresQuery; id: string; key = "id"): Future[Option[JsonNode]] 397 +nim find v2/query_builder/models/postgres/postgres_exec.html#find,PostgresQuery,int,string proc find(self: PostgresQuery; id: int; key = "id"): Future[Option[JsonNode]] 410 +nim getPlain v2/query_builder/models/postgres/postgres_exec.html#getPlain,PostgresQuery proc getPlain(self: PostgresQuery): Future[seq[seq[string]]] 415 +nim firstPlain v2/query_builder/models/postgres/postgres_exec.html#firstPlain,PostgresQuery proc firstPlain(self: PostgresQuery): Future[seq[string]] 427 +nim findPlain v2/query_builder/models/postgres/postgres_exec.html#findPlain,PostgresQuery,string,string proc findPlain(self: PostgresQuery; id: string; key = "id"): Future[seq[string]] 439 +nim findPlain v2/query_builder/models/postgres/postgres_exec.html#findPlain,PostgresQuery,int,string proc findPlain(self: PostgresQuery; id: int; key = "id"): Future[seq[string]] 452 +nim insert v2/query_builder/models/postgres/postgres_exec.html#insert,PostgresQuery,JsonNode proc insert(self: PostgresQuery; items: JsonNode): owned(Future[void]) 457 +nim insert v2/query_builder/models/postgres/postgres_exec.html#insert,PostgresQuery,seq[JsonNode] proc insert(self: PostgresQuery; items: seq[JsonNode]): owned(Future[void]) 465 +nim insertId v2/query_builder/models/postgres/postgres_exec.html#insertId,PostgresQuery,JsonNode,string proc insertId(self: PostgresQuery; items: JsonNode; key = "id"): Future[string] 472 +nim insertId v2/query_builder/models/postgres/postgres_exec.html#insertId,PostgresQuery,seq[JsonNode],string proc insertId(self: PostgresQuery; items: seq[JsonNode]; key = "id"): Future[\n seq[string]] 480 +nim update v2/query_builder/models/postgres/postgres_exec.html#update,PostgresQuery,JsonNode proc update(self: PostgresQuery; items: JsonNode): owned(Future[void]) 491 +nim delete v2/query_builder/models/postgres/postgres_exec.html#delete,PostgresQuery proc delete(self: PostgresQuery): owned(Future[void]) 498 +nim delete v2/query_builder/models/postgres/postgres_exec.html#delete,PostgresQuery,int,string proc delete(self: PostgresQuery; id: int; key = "id"): owned(Future[void]) 505 +nim columns v2/query_builder/models/postgres/postgres_exec.html#columns,PostgresQuery proc columns(self: PostgresQuery): Future[seq[string]] 513 +nim count v2/query_builder/models/postgres/postgres_exec.html#count,PostgresQuery proc count(self: PostgresQuery): Future[int] 526 +nim min v2/query_builder/models/postgres/postgres_exec.html#min,PostgresQuery,string proc min(self: PostgresQuery; column: string): Future[Option[string]] 537 +nim max v2/query_builder/models/postgres/postgres_exec.html#max,PostgresQuery,string proc max(self: PostgresQuery; column: string): Future[Option[string]] 554 +nim avg v2/query_builder/models/postgres/postgres_exec.html#avg,PostgresQuery,string proc avg(self: PostgresQuery; column: string): Future[Option[float]] 571 +nim sum v2/query_builder/models/postgres/postgres_exec.html#sum,PostgresQuery,string proc sum(self: PostgresQuery; column: string): Future[Option[float]] 582 +nim begin v2/query_builder/models/postgres/postgres_exec.html#begin,PostgresConnections proc begin(self: PostgresConnections): owned(Future[void]) 593 +nim rollback v2/query_builder/models/postgres/postgres_exec.html#rollback,PostgresConnections proc rollback(self: PostgresConnections): owned(Future[void]) 598 +nim commit v2/query_builder/models/postgres/postgres_exec.html#commit,PostgresConnections proc commit(self: PostgresConnections): owned(Future[void]) 603 +nim get v2/query_builder/models/postgres/postgres_exec.html#get,RawPostgresQuery proc get(self: RawPostgresQuery): Future[seq[JsonNode]] 608 +nim getPlain v2/query_builder/models/postgres/postgres_exec.html#getPlain,RawPostgresQuery proc getPlain(self: RawPostgresQuery): Future[seq[seq[string]]] 614 +nim exec v2/query_builder/models/postgres/postgres_exec.html#exec,RawPostgresQuery proc exec(self: RawPostgresQuery): owned(Future[void]) 620 +nim first v2/query_builder/models/postgres/postgres_exec.html#first,RawPostgresQuery proc first(self: RawPostgresQuery): Future[Option[JsonNode]] 626 +nim firstPlain v2/query_builder/models/postgres/postgres_exec.html#firstPlain,RawPostgresQuery proc firstPlain(self: RawPostgresQuery): Future[seq[string]] 632 +nim seeder v2/query_builder/models/postgres/postgres_exec.html#seeder.t,PostgresConnections,string,untyped template seeder(rdb: PostgresConnections; tableName: string; body: untyped): untyped 638 +nim seeder v2/query_builder/models/postgres/postgres_exec.html#seeder.t,PostgresConnections,string,string,untyped template seeder(rdb: PostgresConnections; tableName, column: string; body: untyped): untyped 645 +nimgrp firstplain v2/query_builder/models/postgres/postgres_exec.html#firstPlain-procs-all proc 427 +nimgrp findplain v2/query_builder/models/postgres/postgres_exec.html#findPlain-procs-all proc 439 +nimgrp first v2/query_builder/models/postgres/postgres_exec.html#first-procs-all proc 385 +nimgrp insertid v2/query_builder/models/postgres/postgres_exec.html#insertId-procs-all proc 472 +nimgrp get v2/query_builder/models/postgres/postgres_exec.html#get-procs-all proc 373 +nimgrp insert v2/query_builder/models/postgres/postgres_exec.html#insert-procs-all proc 457 +nimgrp delete v2/query_builder/models/postgres/postgres_exec.html#delete-procs-all proc 498 +nimgrp getplain v2/query_builder/models/postgres/postgres_exec.html#getPlain-procs-all proc 415 +nimgrp find v2/query_builder/models/postgres/postgres_exec.html#find-procs-all proc 397 +nimgrp seeder v2/query_builder/models/postgres/postgres_exec.html#seeder-templates-all template 638 diff --git a/docs/v2/v2/query_builder/models/postgres/postgres_open.html b/docs/v2/v2/query_builder/models/postgres/postgres_open.html index 0902fd98..e25a9372 100644 --- a/docs/v2/v2/query_builder/models/postgres/postgres_open.html +++ b/docs/v2/v2/query_builder/models/postgres/postgres_open.html @@ -55,11 +55,11 @@++src/allographer/v2/query_builder/models/postgres/postgres_exec
+++ + ++++ + +++++
+- Index
++ Search: +++ Group by: + +++
+ +- + Imports +
+- +
+++Procs
++ + +
+columns +
+ +- columns(self: PostgresQuery): Future[seq[string]]
+ +count +
+- count(self: PostgresQuery): Future[int]
+ +delete +
+ +- delete(self: PostgresQuery): owned(Future[void])
+- delete(self: PostgresQuery; id: int; key = "id"): owned(Future[void])
+ +find +
+- find(self: PostgresQuery; id: int; key = "id"): Future[Option[JsonNode]]
+- find(self: PostgresQuery; id: string; key = "id"): Future[Option[JsonNode]]
+ +findPlain +
+- findPlain(self: PostgresQuery; id: int; key = "id"): Future[seq[string]]
+- findPlain(self: PostgresQuery; id: string; key = "id"): Future[seq[string]]
+ +first +
+- first(self: PostgresQuery): Future[Option[JsonNode]]
+- first(self: RawPostgresQuery): Future[Option[JsonNode]]
+ +firstPlain +
+- firstPlain(self: PostgresQuery): Future[seq[string]]
+- firstPlain(self: RawPostgresQuery): Future[seq[string]]
+ +get +
+- get(self: PostgresQuery): Future[seq[JsonNode]]
+- get(self: RawPostgresQuery): Future[seq[JsonNode]]
+ +getPlain +
+- getPlain(self: PostgresQuery): Future[seq[seq[string]]]
+- getPlain(self: RawPostgresQuery): Future[seq[seq[string]]]
+ +insert +
+- insert(self: PostgresQuery; items: JsonNode): owned(Future[void])
+- insert(self: PostgresQuery; items: seq[JsonNode]): owned(Future[void])
+ +insertId +
+ + +- insertId(self: PostgresQuery; items: JsonNode; key = "id"): Future[string]
+- insertId(self: PostgresQuery; items: seq[JsonNode]; key = "id"): Future[ + seq[string]]
+ +rollback +
+ + + +- rollback(self: PostgresConnections): owned(Future[void])
+ +- + +
+ ++ + + + ++++Imports
+ +++Procs
++
+++++ +- +
proc avg(self: PostgresQuery; column: string): Future[Option[float]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc begin(self: PostgresConnections): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc columns(self: PostgresQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + get columns sequence from table + +
+++++ +- +
proc commit(self: PostgresConnections): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc count(self: PostgresQuery): Future[int] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++- +
proc delete(self: PostgresQuery): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++ +- +
proc delete(self: PostgresQuery; id: int; key = "id"): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++ +- +
proc exec(self: RawPostgresQuery): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + It is only used with raw() + +
+++++- +
proc find(self: PostgresQuery; id: int; key = "id"): Future[Option[JsonNode]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++ +- +
proc find(self: PostgresQuery; id: string; key = "id"): Future[Option[JsonNode]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++- +
proc findPlain(self: PostgresQuery; id: int; key = "id"): Future[seq[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++ +- +
proc findPlain(self: PostgresQuery; id: string; key = "id"): Future[seq[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++- +
proc first(self: PostgresQuery): Future[Option[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++ +- +
proc first(self: RawPostgresQuery): Future[Option[JsonNode]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + It is only used with raw() + +
+++++- +
proc firstPlain(self: PostgresQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++ +- +
proc firstPlain(self: RawPostgresQuery): Future[seq[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + It is only used with raw() + +
+++++- +
proc get(self: PostgresQuery): Future[seq[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++ +- +
proc get(self: RawPostgresQuery): Future[seq[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + It is only used with raw() + +
+++++- +
proc getPlain(self: PostgresQuery): Future[seq[seq[string]]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++ +- +
proc getPlain(self: RawPostgresQuery): Future[seq[seq[string]]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + It is only used with raw() + +
+++++- +
proc insert(self: PostgresQuery; items: JsonNode): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + items is JObject + +
+++ +- +
proc insert(self: PostgresQuery; items: seq[JsonNode]): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++- +
proc insertId(self: PostgresQuery; items: JsonNode; key = "id"): Future[string] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++ +- +
proc insertId(self: PostgresQuery; items: seq[JsonNode]; key = "id"): Future[ + seq[string]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, + TimeEffect], forbids: [].}- + + + +
+++++ +- +
proc max(self: PostgresQuery; column: string): Future[Option[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc min(self: PostgresQuery; column: string): Future[Option[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc rollback(self: PostgresConnections): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++ +- +
proc sum(self: PostgresQuery; column: string): Future[Option[float]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++ +++ +- +
proc update(self: PostgresQuery; items: JsonNode): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++ +Templates
++
+++ +++- +
template seeder(rdb: PostgresConnections; tableName, column: string; + body: untyped): untyped- + + The seeder block allows the code in the block to work only when the table or specified column is empty. + +
+++ +- +
template seeder(rdb: PostgresConnections; tableName: string; body: untyped): untyped- + + The seeder block allows the code in the block to work only when the table is empty. + +
+src/allographer/v2/query_builder/models/postgres/postgres_open
Procs
dbOpen -
- dbOpen(__2164260871: type PostgreSQL; database: string = ""; user: string = ""; - password: string = ""; host: string = ""; port: int32 = 0; + password: string = ""; host: string = ""; port: int = 0; maxConnections: int = 1; timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): PostgresConnections
@@ -87,10 +87,10 @@Imports
Procs
-diff --git a/docs/v2/v2/schema_builder/queries/postgres/add_column.html b/docs/v2/v2/schema_builder/queries/postgres/add_column.html index a861a2a3..005f33db 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/add_column.html +++ b/docs/v2/v2/schema_builder/queries/postgres/add_column.html @@ -82,10 +82,10 @@-diff --git a/docs/v2/v2/query_builder/models/postgres/postgres_open.idx b/docs/v2/v2/query_builder/models/postgres/postgres_open.idx index daae3542..2fa64836 100644 --- a/docs/v2/v2/query_builder/models/postgres/postgres_open.idx +++ b/docs/v2/v2/query_builder/models/postgres/postgres_open.idx @@ -1,2 +1,2 @@ nimTitle postgres_open v2/query_builder/models/postgres/postgres_open.html module src/allographer/v2/query_builder/models/postgres/postgres_open 0 -nim dbOpen v2/query_builder/models/postgres/postgres_open.html#dbOpen,typePostgreSQL,string,string,string,string,int32,int,int,string proc dbOpen(__2164260871: type PostgreSQL; database: string = ""; user: string = "";\n password: string = ""; host: string = ""; port: int32 = 0;\n maxConnections: int = 1; timeout = 30; shouldDisplayLog = false;\n shouldOutputLogFile = false; logDir = ""): PostgresConnections 8 +nim dbOpen v2/query_builder/models/postgres/postgres_open.html#dbOpen,typePostgreSQL,string,string,string,string,int,int,int,string proc dbOpen(__2164260871: type PostgreSQL; database: string = ""; user: string = "";\n password: string = ""; host: string = ""; port: int = 0;\n maxConnections: int = 1; timeout = 30; shouldDisplayLog = false;\n shouldOutputLogFile = false; logDir = ""): PostgresConnections 8 diff --git a/docs/v2/v2/query_builder/models/postgres/postgres_query.html b/docs/v2/v2/query_builder/models/postgres/postgres_query.html index 03658211..a82b1f7c 100644 --- a/docs/v2/v2/query_builder/models/postgres/postgres_query.html +++ b/docs/v2/v2/query_builder/models/postgres/postgres_query.html @@ -54,76 +54,9 @@ proc dbOpen(__2164260871: type PostgreSQL; database: string = ""; ++ proc dbOpen(__2164260871: type PostgreSQL; database: string = ""; user: string = ""; password: string = ""; host: string = ""; - port: int32 = 0; maxConnections: int = 1; timeout = 30; + port: int = 0; maxConnections: int = 1; timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): PostgresConnections- @@ -110,7 +110,7 @@
Procs
src/allographer/v2/query_builder/models/postgres/postgres_quer
- -Procs
- - -
columns -
- -- columns(self: PostgresQuery): Future[seq[string]]
- -count -
-- count(self: PostgresQuery): Future[int]
- -delete -
-- delete(self: PostgresQuery): owned(Future[void])
-- delete(self: PostgresQuery; id: int; key = "id"): owned(Future[void])
- -distinct + - -
find -
-- find(self: PostgresQuery; id: int; key = "id"): Future[Option[JsonNode]]
-- find(self: PostgresQuery; id: string; key = "id"): Future[Option[JsonNode]]
-- find[T](self: PostgresQuery; id: int; typ: typedesc[T]; key = "id"): Future[ - Option[T]]
-- find[T](self: PostgresQuery; id: string; typ: typedesc[T]; key = "id"): Future[ - Option[T]]
- -findPlain -
-- findPlain(self: PostgresQuery; id: int; key = "id"): Future[seq[string]]
-- findPlain(self: PostgresQuery; id: string; key = "id"): Future[seq[string]]
- -first -
-- first(self: PostgresQuery): Future[Option[JsonNode]]
-- first(self: RawPostgresQuery): Future[Option[JsonNode]]
-- first[T](self: PostgresQuery; typ: typedesc[T]): Future[Option[T]]
- -firstPlain -
-- firstPlain(self: PostgresQuery): Future[seq[string]]
-- firstPlain(self: RawPostgresQuery): Future[seq[string]]
- -get -
-- get(self: PostgresQuery): Future[seq[JsonNode]]
-- get(self: RawPostgresQuery): Future[seq[JsonNode]]
-- get[T](self: PostgresQuery; typ: typedesc[T]): Future[seq[T]]
- -getPlain -
- getPlain(self: PostgresQuery): Future[seq[seq[string]]]
-- getPlain(self: RawPostgresQuery): Future[seq[seq[string]]]
-groupBy
-- groupBy(self: PostgresQuery; column: string): PostgresQuery
@@ -135,18 +68,6 @@src/allographer/v2/query_builder/models/postgres/postgres_quer value: string | int | float | bool): PostgresQuery
- having(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery
-insert -
-- insert(self: PostgresQuery; items: JsonNode): owned(Future[void])
-- insert(self: PostgresQuery; items: seq[JsonNode]): owned(Future[void])
- -insertId -
- insertId(self: PostgresQuery; items: JsonNode; key = "id"): Future[string]
-- insertId(self: PostgresQuery; items: seq[JsonNode]; key = "id"): Future[ - seq[string]]
-join
- src/allographer/v2/query_builder/models/postgres/postgres_quer - -
offset
-- offset(self: PostgresQuery; num: int): PostgresQuery
@@ -187,20 +100,17 @@src/allographer/v2/query_builder/models/postgres/postgres_quer
- orWhere(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery
rollback -
- rollback(self: PostgresConnections): owned(Future[void])
+ -sum -
- sum(self: PostgresQuery; column: string): Future[Option[float]]
+ -update -
- update(self: PostgresQuery; items: JsonNode): owned(Future[void])
+- table(self: PostgresConnections; tableArg: string): PostgresQuery
+- table(self: PostgresQuery; tableArg: string): PostgresQuery
where @@ -234,19 +144,6 @@
-src/allographer/v2/query_builder/models/postgres/postgres_quer - -
- -
-Templates
--
@@ -264,105 +161,13 @@src/allographer/v2/query_builder/models/postgres/postgres_quer
diff --git a/docs/v2/v2/schema_builder/queries/mysql/sub/is_exists.html b/docs/v2/v2/schema_builder/queries/mysql/sub/is_exists.html index 9752c696..6ec3670c 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/sub/is_exists.html +++ b/docs/v2/v2/schema_builder/queries/mysql/sub/is_exists.html @@ -78,7 +78,7 @@Procs
-
---- -- -
proc avg(self: PostgresQuery; column: string): Future[Option[float]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
----- -- -
proc begin(self: PostgresConnections): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
----- -- -
proc columns(self: PostgresQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - get columns sequence from table - -
----- -- -
proc commit(self: PostgresConnections): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
----- -- -
proc count(self: PostgresQuery): Future[int] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
------ -
proc delete(self: PostgresQuery): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
--- -- -
proc delete(self: PostgresQuery; id: int; key = "id"): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
-+---- @@ -373,202 +178,6 @@
proc `distinct`(self: PostgresQuery): PostgresQuery {....raises: [], tags: [], forbids: [].}Procs
---- -- -
proc exec(self: RawPostgresQuery): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - It is only used with raw() - -
------ -
proc find(self: PostgresQuery; id: int; key = "id"): Future[Option[JsonNode]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
---- -
proc find(self: PostgresQuery; id: string; key = "id"): Future[Option[JsonNode]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
---- -
proc find[T](self: PostgresQuery; id: int; typ: typedesc[T]; key = "id"): Future[ - Option[T]] {....stackTrace: false.}- - - - -
--- -- -
proc find[T](self: PostgresQuery; id: string; typ: typedesc[T]; key = "id"): Future[ - Option[T]] {....stackTrace: false.}- - - - -
------ -
proc findPlain(self: PostgresQuery; id: int; key = "id"): Future[seq[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
--- -- -
proc findPlain(self: PostgresQuery; id: string; key = "id"): Future[seq[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
------ -
proc first(self: PostgresQuery): Future[Option[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
---- -
proc first(self: RawPostgresQuery): Future[Option[JsonNode]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - It is only used with raw() - -
--- -- -
proc first[T](self: PostgresQuery; typ: typedesc[T]): Future[Option[T]] {. - ...stackTrace: false.}- - - - -
------ -
proc firstPlain(self: PostgresQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
--- -- -
proc firstPlain(self: RawPostgresQuery): Future[seq[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - It is only used with raw() - -
------ -
proc get(self: PostgresQuery): Future[seq[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
---- -
proc get(self: RawPostgresQuery): Future[seq[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - It is only used with raw() - -
--- -- -
proc get[T](self: PostgresQuery; typ: typedesc[T]): Future[seq[T]] {. - ...stackTrace: false.}- - - - -
----- -
proc getPlain(self: PostgresQuery): Future[seq[seq[string]]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
---- -
proc getPlain(self: RawPostgresQuery): Future[seq[seq[string]]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - It is only used with raw() - -
--@@ -594,55 +203,7 @@Procs
- -- -
proc having(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- - - - -
------ -
proc insert(self: PostgresQuery; items: JsonNode): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - items is JObject - -
--- -- -
proc insert(self: PostgresQuery; items: seq[JsonNode]): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
------ -
proc insertId(self: PostgresQuery; items: JsonNode; key = "id"): Future[string] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
--- -- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc insertId(self: PostgresQuery; items: seq[JsonNode]; key = "id"): Future[ - seq[string]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - TimeEffect], forbids: [].}- @@ -685,34 +246,6 @@
-Procs
----- -- -
proc max(self: PostgresQuery; column: string): Future[Option[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
---@@ -753,8 +286,8 @@- -
proc min(self: PostgresQuery; column: string): Future[Option[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - -
Procs
- + value: nil.type): PostgresQuery {. + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc orWhere(self: PostgresQuery; column: string; symbol: string; - value: nil.type): PostgresQuery {....raises: [Exception, KeyError], - tags: [], forbids: [].}- @@ -763,25 +296,24 @@
Procs
--diff --git a/docs/v2/v2/schema_builder/queries/mysql/sub/create_column_query.html b/docs/v2/v2/schema_builder/queries/mysql/sub/create_column_query.html index 7cadfabc..91eaf41e 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/sub/create_column_query.html +++ b/docs/v2/v2/schema_builder/queries/mysql/sub/create_column_query.html @@ -150,7 +150,7 @@- +
proc rollback(self: PostgresConnections): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}+-+ proc raw(self: PostgresConnections; sql: string; arges = newJArray()): RawPostgresQuery {. + ...raises: [], tags: [], forbids: [].}- - +
arges is JArray
+can't use BLOB data.
+--diff --git a/docs/v2/v2/query_builder/models/sqlite/query/sqlite_generator.idx b/docs/v2/v2/query_builder/models/sqlite/query/sqlite_generator.idx index 9c2b9791..35d0c6bf 100644 --- a/docs/v2/v2/query_builder/models/sqlite/query/sqlite_generator.idx +++ b/docs/v2/v2/query_builder/models/sqlite/query/sqlite_generator.idx @@ -1,33 +1,33 @@ nimTitle sqlite_generator v2/query_builder/models/sqlite/query/sqlite_generator.html module src/allographer/v2/query_builder/models/sqlite/query/sqlite_generator 0 nim selectSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectSql,SqliteQuery proc selectSql(self: SqliteQuery): SqliteQuery 21 -nim fromSql v2/query_builder/models/sqlite/query/sqlite_generator.html#fromSql,SqliteQuery proc fromSql(self: SqliteQuery): SqliteQuery 48 -nim selectFirstSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectFirstSql,SqliteQuery proc selectFirstSql(self: SqliteQuery): SqliteQuery 54 -nim selectByIdSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectByIdSql,SqliteQuery,string proc selectByIdSql(self: SqliteQuery; key: string): SqliteQuery 59 -nim joinSql v2/query_builder/models/sqlite/query/sqlite_generator.html#joinSql,SqliteQuery proc joinSql(self: SqliteQuery): SqliteQuery 68 -nim leftJoinSql v2/query_builder/models/sqlite/query/sqlite_generator.html#leftJoinSql,SqliteQuery proc leftJoinSql(self: SqliteQuery): SqliteQuery 80 -nim whereSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereSql,SqliteQuery proc whereSql(self: SqliteQuery): SqliteQuery 92 -nim orWhereSql v2/query_builder/models/sqlite/query/sqlite_generator.html#orWhereSql,SqliteQuery proc orWhereSql(self: SqliteQuery): SqliteQuery 106 -nim whereBetweenSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereBetweenSql,SqliteQuery proc whereBetweenSql(self: SqliteQuery): SqliteQuery 120 -nim whereBetweenStringSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereBetweenStringSql,SqliteQuery proc whereBetweenStringSql(self: SqliteQuery): SqliteQuery 134 -nim whereNotBetweenSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereNotBetweenSql,SqliteQuery proc whereNotBetweenSql(self: SqliteQuery): SqliteQuery 148 -nim whereNotBetweenStringSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereNotBetweenStringSql,SqliteQuery proc whereNotBetweenStringSql(self: SqliteQuery): SqliteQuery 162 -nim whereInSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereInSql,SqliteQuery proc whereInSql(self: SqliteQuery): SqliteQuery 176 -nim whereNotInSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereNotInSql,SqliteQuery proc whereNotInSql(self: SqliteQuery): SqliteQuery 197 -nim whereNullSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereNullSql,SqliteQuery proc whereNullSql(self: SqliteQuery): SqliteQuery 218 -nim groupBySql v2/query_builder/models/sqlite/query/sqlite_generator.html#groupBySql,SqliteQuery proc groupBySql(self: SqliteQuery): SqliteQuery 229 -nim havingSql v2/query_builder/models/sqlite/query/sqlite_generator.html#havingSql,SqliteQuery proc havingSql(self: SqliteQuery): SqliteQuery 240 -nim orderBySql v2/query_builder/models/sqlite/query/sqlite_generator.html#orderBySql,SqliteQuery proc orderBySql(self: SqliteQuery): SqliteQuery 255 -nim limitSql v2/query_builder/models/sqlite/query/sqlite_generator.html#limitSql,SqliteQuery proc limitSql(self: SqliteQuery): SqliteQuery 268 -nim offsetSql v2/query_builder/models/sqlite/query/sqlite_generator.html#offsetSql,SqliteQuery proc offsetSql(self: SqliteQuery): SqliteQuery 276 -nim insertSql v2/query_builder/models/sqlite/query/sqlite_generator.html#insertSql,SqliteQuery proc insertSql(self: SqliteQuery): SqliteQuery 286 -nim insertValueSql v2/query_builder/models/sqlite/query/sqlite_generator.html#insertValueSql,SqliteQuery,JsonNode proc insertValueSql(self: SqliteQuery; items: JsonNode): SqliteQuery 292 -nim insertValuesSql v2/query_builder/models/sqlite/query/sqlite_generator.html#insertValuesSql,SqliteQuery,openArray[JsonNode] proc insertValuesSql(self: SqliteQuery; rows: openArray[JsonNode]): SqliteQuery 313 -nim updateSql v2/query_builder/models/sqlite/query/sqlite_generator.html#updateSql,SqliteQuery proc updateSql(self: SqliteQuery): SqliteQuery 345 -nim updateValuesSql v2/query_builder/models/sqlite/query/sqlite_generator.html#updateValuesSql,SqliteQuery,JsonNode proc updateValuesSql(self: SqliteQuery; items: JsonNode): SqliteQuery 355 -nim deleteSql v2/query_builder/models/sqlite/query/sqlite_generator.html#deleteSql,SqliteQuery proc deleteSql(self: SqliteQuery): SqliteQuery 377 -nim deleteByIdSql v2/query_builder/models/sqlite/query/sqlite_generator.html#deleteByIdSql,SqliteQuery,int,string proc deleteByIdSql(self: SqliteQuery; id: int; key: string): SqliteQuery 382 -nim selectCountSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectCountSql,SqliteQuery proc selectCountSql(self: SqliteQuery): SqliteQuery 388 -nim selectMaxSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectMaxSql,SqliteQuery,string proc selectMaxSql(self: SqliteQuery; column: string): SqliteQuery 399 -nim selectMinSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectMinSql,SqliteQuery,string proc selectMinSql(self: SqliteQuery; column: string): SqliteQuery 404 -nim selectAvgSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectAvgSql,SqliteQuery,string proc selectAvgSql(self: SqliteQuery; column: string): SqliteQuery 409 -nim selectSumSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectSumSql,SqliteQuery,string proc selectSumSql(self: SqliteQuery; column: string): SqliteQuery 414 +nim fromSql v2/query_builder/models/sqlite/query/sqlite_generator.html#fromSql,SqliteQuery proc fromSql(self: SqliteQuery): SqliteQuery 42 +nim selectFirstSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectFirstSql,SqliteQuery proc selectFirstSql(self: SqliteQuery): SqliteQuery 48 +nim selectByIdSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectByIdSql,SqliteQuery,string proc selectByIdSql(self: SqliteQuery; key: string): SqliteQuery 53 +nim joinSql v2/query_builder/models/sqlite/query/sqlite_generator.html#joinSql,SqliteQuery proc joinSql(self: SqliteQuery): SqliteQuery 62 +nim leftJoinSql v2/query_builder/models/sqlite/query/sqlite_generator.html#leftJoinSql,SqliteQuery proc leftJoinSql(self: SqliteQuery): SqliteQuery 74 +nim whereSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereSql,SqliteQuery proc whereSql(self: SqliteQuery): SqliteQuery 86 +nim orWhereSql v2/query_builder/models/sqlite/query/sqlite_generator.html#orWhereSql,SqliteQuery proc orWhereSql(self: SqliteQuery): SqliteQuery 100 +nim whereBetweenSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereBetweenSql,SqliteQuery proc whereBetweenSql(self: SqliteQuery): SqliteQuery 114 +nim whereBetweenStringSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereBetweenStringSql,SqliteQuery proc whereBetweenStringSql(self: SqliteQuery): SqliteQuery 128 +nim whereNotBetweenSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereNotBetweenSql,SqliteQuery proc whereNotBetweenSql(self: SqliteQuery): SqliteQuery 142 +nim whereNotBetweenStringSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereNotBetweenStringSql,SqliteQuery proc whereNotBetweenStringSql(self: SqliteQuery): SqliteQuery 156 +nim whereInSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereInSql,SqliteQuery proc whereInSql(self: SqliteQuery): SqliteQuery 170 +nim whereNotInSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereNotInSql,SqliteQuery proc whereNotInSql(self: SqliteQuery): SqliteQuery 191 +nim whereNullSql v2/query_builder/models/sqlite/query/sqlite_generator.html#whereNullSql,SqliteQuery proc whereNullSql(self: SqliteQuery): SqliteQuery 212 +nim groupBySql v2/query_builder/models/sqlite/query/sqlite_generator.html#groupBySql,SqliteQuery proc groupBySql(self: SqliteQuery): SqliteQuery 223 +nim havingSql v2/query_builder/models/sqlite/query/sqlite_generator.html#havingSql,SqliteQuery proc havingSql(self: SqliteQuery): SqliteQuery 234 +nim orderBySql v2/query_builder/models/sqlite/query/sqlite_generator.html#orderBySql,SqliteQuery proc orderBySql(self: SqliteQuery): SqliteQuery 249 +nim limitSql v2/query_builder/models/sqlite/query/sqlite_generator.html#limitSql,SqliteQuery proc limitSql(self: SqliteQuery): SqliteQuery 262 +nim offsetSql v2/query_builder/models/sqlite/query/sqlite_generator.html#offsetSql,SqliteQuery proc offsetSql(self: SqliteQuery): SqliteQuery 270 +nim insertSql v2/query_builder/models/sqlite/query/sqlite_generator.html#insertSql,SqliteQuery proc insertSql(self: SqliteQuery): SqliteQuery 280 +nim insertValueSql v2/query_builder/models/sqlite/query/sqlite_generator.html#insertValueSql,SqliteQuery,JsonNode proc insertValueSql(self: SqliteQuery; items: JsonNode): SqliteQuery 286 +nim insertValuesSql v2/query_builder/models/sqlite/query/sqlite_generator.html#insertValuesSql,SqliteQuery,openArray[JsonNode] proc insertValuesSql(self: SqliteQuery; rows: openArray[JsonNode]): SqliteQuery 307 +nim updateSql v2/query_builder/models/sqlite/query/sqlite_generator.html#updateSql,SqliteQuery proc updateSql(self: SqliteQuery): SqliteQuery 339 +nim updateValuesSql v2/query_builder/models/sqlite/query/sqlite_generator.html#updateValuesSql,SqliteQuery,JsonNode proc updateValuesSql(self: SqliteQuery; items: JsonNode): SqliteQuery 349 +nim deleteSql v2/query_builder/models/sqlite/query/sqlite_generator.html#deleteSql,SqliteQuery proc deleteSql(self: SqliteQuery): SqliteQuery 371 +nim deleteByIdSql v2/query_builder/models/sqlite/query/sqlite_generator.html#deleteByIdSql,SqliteQuery,int,string proc deleteByIdSql(self: SqliteQuery; id: int; key: string): SqliteQuery 376 +nim selectCountSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectCountSql,SqliteQuery proc selectCountSql(self: SqliteQuery): SqliteQuery 382 +nim selectMaxSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectMaxSql,SqliteQuery,string proc selectMaxSql(self: SqliteQuery; column: string): SqliteQuery 393 +nim selectMinSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectMinSql,SqliteQuery,string proc selectMinSql(self: SqliteQuery; column: string): SqliteQuery 398 +nim selectAvgSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectAvgSql,SqliteQuery,string proc selectAvgSql(self: SqliteQuery; column: string): SqliteQuery 403 +nim selectSumSql v2/query_builder/models/sqlite/query/sqlite_generator.html#selectSumSql,SqliteQuery,string proc selectSumSql(self: SqliteQuery; column: string): SqliteQuery 408 diff --git a/docs/v2/v2/query_builder/models/sqlite/sqlite_connections.html b/docs/v2/v2/query_builder/models/sqlite/sqlite_connections.html deleted file mode 100644 index 4bac06e0..00000000 --- a/docs/v2/v2/query_builder/models/sqlite/sqlite_connections.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - -- +
proc sum(self: PostgresQuery; column: string): Future[Option[float]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}++ proc select(self: PostgresConnections; columnsArg: varargs[string]): PostgresQuery {. + ...raises: [], tags: [], forbids: [].}- @@ -791,22 +323,18 @@
Procs
-diff --git a/docs/v2/v2/query_builder/models/postgres/postgres_query.idx b/docs/v2/v2/query_builder/models/postgres/postgres_query.idx index cd40b9a6..2da52483 100644 --- a/docs/v2/v2/query_builder/models/postgres/postgres_query.idx +++ b/docs/v2/v2/query_builder/models/postgres/postgres_query.idx @@ -1,73 +1,32 @@ nimTitle postgres_query v2/query_builder/models/postgres/postgres_query.html module src/allographer/v2/query_builder/models/postgres/postgres_query 0 -nim table v2/query_builder/models/postgres/postgres_query.html#table,PostgresQuery,string proc table(self: PostgresQuery; tableArg: string): PostgresQuery 16 -nim `distinct` v2/query_builder/models/postgres/postgres_query.html#distinct,PostgresQuery proc `distinct`(self: PostgresQuery): PostgresQuery 21 -nim join v2/query_builder/models/postgres/postgres_query.html#join,PostgresQuery,string,string,string,string proc join(self: PostgresQuery; table: string; column1: string; symbol: string;\n column2: string): PostgresQuery 27 -nim leftJoin v2/query_builder/models/postgres/postgres_query.html#leftJoin,PostgresQuery,string,string,string,string proc leftJoin(self: PostgresQuery; table: string; column1: string; symbol: string;\n column2: string): PostgresQuery 46 -nim where v2/query_builder/models/postgres/postgres_query.html#where,PostgresQuery,string,string, proc where(self: PostgresQuery; column: string; symbol: string;\n value: string | int | float): PostgresQuery 68 -nim where v2/query_builder/models/postgres/postgres_query.html#where,PostgresQuery,string,string,bool proc where(self: PostgresQuery; column: string; symbol: string; value: bool): PostgresQuery 95 -nim where v2/query_builder/models/postgres/postgres_query.html#where,PostgresQuery,string,string,_2 proc where(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery 122 -nim orWhere v2/query_builder/models/postgres/postgres_query.html#orWhere,PostgresQuery,string,string, proc orWhere(self: PostgresQuery; column: string; symbol: string;\n value: string | int | float | bool): PostgresQuery 146 -nim orWhere v2/query_builder/models/postgres/postgres_query.html#orWhere,PostgresQuery,string,string,_2 proc orWhere(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery 173 -nim whereBetween v2/query_builder/models/postgres/postgres_query.html#whereBetween,PostgresQuery,string,array[,] proc whereBetween(self: PostgresQuery; column: string; width: array[2, int | float]): PostgresQuery 195 -nim whereBetween v2/query_builder/models/postgres/postgres_query.html#whereBetween,PostgresQuery,string,array[,string] proc whereBetween(self: PostgresQuery; column: string; width: array[2, string]): PostgresQuery 212 -nim whereNotBetween v2/query_builder/models/postgres/postgres_query.html#whereNotBetween,PostgresQuery,string,array[,] proc whereNotBetween(self: PostgresQuery; column: string;\n width: array[2, int | float]): PostgresQuery 229 -nim whereNotBetween v2/query_builder/models/postgres/postgres_query.html#whereNotBetween,PostgresQuery,string,array[,string] proc whereNotBetween(self: PostgresQuery; column: string; width: array[2, string]): PostgresQuery 246 -nim whereIn v2/query_builder/models/postgres/postgres_query.html#whereIn,PostgresQuery,string,seq[] proc whereIn(self: PostgresQuery; column: string; width: seq[int | float | string]): PostgresQuery 263 -nim whereNotIn v2/query_builder/models/postgres/postgres_query.html#whereNotIn,PostgresQuery,string,seq[] proc whereNotIn(self: PostgresQuery; column: string; width: seq[int | float | string]): PostgresQuery 280 -nim whereNull v2/query_builder/models/postgres/postgres_query.html#whereNull,PostgresQuery,string proc whereNull(self: PostgresQuery; column: string): PostgresQuery 297 -nim groupBy v2/query_builder/models/postgres/postgres_query.html#groupBy,PostgresQuery,string proc groupBy(self: PostgresQuery; column: string): PostgresQuery 311 -nim having v2/query_builder/models/postgres/postgres_query.html#having,PostgresQuery,string,string, proc having(self: PostgresQuery; column: string; symbol: string;\n value: string | int | float | bool): PostgresQuery 319 -nim having v2/query_builder/models/postgres/postgres_query.html#having,PostgresQuery,string,string,_2 proc having(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery 345 -nim orderBy v2/query_builder/models/postgres/postgres_query.html#orderBy,PostgresQuery,string,Order proc orderBy(self: PostgresQuery; column: string; order: Order): PostgresQuery 369 -nim limit v2/query_builder/models/postgres/postgres_query.html#limit,PostgresQuery,int proc limit(self: PostgresQuery; num: int): PostgresQuery 383 -nim offset v2/query_builder/models/postgres/postgres_query.html#offset,PostgresQuery,int proc offset(self: PostgresQuery; num: int): PostgresQuery 388 -nim get v2/query_builder/models/postgres/postgres_query.html#get,PostgresQuery proc get(self: PostgresQuery): Future[seq[JsonNode]] 748 -nim first v2/query_builder/models/postgres/postgres_query.html#first,PostgresQuery proc first(self: PostgresQuery): Future[Option[JsonNode]] 760 -nim find v2/query_builder/models/postgres/postgres_query.html#find,PostgresQuery,string,string proc find(self: PostgresQuery; id: string; key = "id"): Future[Option[JsonNode]] 772 -nim find v2/query_builder/models/postgres/postgres_query.html#find,PostgresQuery,int,string proc find(self: PostgresQuery; id: int; key = "id"): Future[Option[JsonNode]] 785 -nim getPlain v2/query_builder/models/postgres/postgres_query.html#getPlain,PostgresQuery proc getPlain(self: PostgresQuery): Future[seq[seq[string]]] 790 -nim firstPlain v2/query_builder/models/postgres/postgres_query.html#firstPlain,PostgresQuery proc firstPlain(self: PostgresQuery): Future[seq[string]] 802 -nim findPlain v2/query_builder/models/postgres/postgres_query.html#findPlain,PostgresQuery,string,string proc findPlain(self: PostgresQuery; id: string; key = "id"): Future[seq[string]] 814 -nim findPlain v2/query_builder/models/postgres/postgres_query.html#findPlain,PostgresQuery,int,string proc findPlain(self: PostgresQuery; id: int; key = "id"): Future[seq[string]] 827 -nim get v2/query_builder/models/postgres/postgres_query.html#get,PostgresQuery,typedesc[T] proc get[T](self: PostgresQuery; typ: typedesc[T]): Future[seq[T]] 832 -nim first v2/query_builder/models/postgres/postgres_query.html#first,PostgresQuery,typedesc[T] proc first[T](self: PostgresQuery; typ: typedesc[T]): Future[Option[T]] 846 -nim find v2/query_builder/models/postgres/postgres_query.html#find,PostgresQuery,string,typedesc[T],string proc find[T](self: PostgresQuery; id: string; typ: typedesc[T]; key = "id"): Future[\n Option[T]] 862 -nim find v2/query_builder/models/postgres/postgres_query.html#find,PostgresQuery,int,typedesc[T],string proc find[T](self: PostgresQuery; id: int; typ: typedesc[T]; key = "id"): Future[\n Option[T]] 879 -nim insert v2/query_builder/models/postgres/postgres_query.html#insert,PostgresQuery,JsonNode proc insert(self: PostgresQuery; items: JsonNode): owned(Future[void]) 884 -nim insert v2/query_builder/models/postgres/postgres_query.html#insert,PostgresQuery,seq[JsonNode] proc insert(self: PostgresQuery; items: seq[JsonNode]): owned(Future[void]) 892 -nim insertId v2/query_builder/models/postgres/postgres_query.html#insertId,PostgresQuery,JsonNode,string proc insertId(self: PostgresQuery; items: JsonNode; key = "id"): Future[string] 899 -nim insertId v2/query_builder/models/postgres/postgres_query.html#insertId,PostgresQuery,seq[JsonNode],string proc insertId(self: PostgresQuery; items: seq[JsonNode]; key = "id"): Future[\n seq[string]] 907 -nim update v2/query_builder/models/postgres/postgres_query.html#update,PostgresQuery,JsonNode proc update(self: PostgresQuery; items: JsonNode): owned(Future[void]) 918 -nim delete v2/query_builder/models/postgres/postgres_query.html#delete,PostgresQuery proc delete(self: PostgresQuery): owned(Future[void]) 925 -nim delete v2/query_builder/models/postgres/postgres_query.html#delete,PostgresQuery,int,string proc delete(self: PostgresQuery; id: int; key = "id"): owned(Future[void]) 932 -nim columns v2/query_builder/models/postgres/postgres_query.html#columns,PostgresQuery proc columns(self: PostgresQuery): Future[seq[string]] 940 -nim count v2/query_builder/models/postgres/postgres_query.html#count,PostgresQuery proc count(self: PostgresQuery): Future[int] 953 -nim min v2/query_builder/models/postgres/postgres_query.html#min,PostgresQuery,string proc min(self: PostgresQuery; column: string): Future[Option[string]] 964 -nim max v2/query_builder/models/postgres/postgres_query.html#max,PostgresQuery,string proc max(self: PostgresQuery; column: string): Future[Option[string]] 981 -nim avg v2/query_builder/models/postgres/postgres_query.html#avg,PostgresQuery,string proc avg(self: PostgresQuery; column: string): Future[Option[float]] 998 -nim sum v2/query_builder/models/postgres/postgres_query.html#sum,PostgresQuery,string proc sum(self: PostgresQuery; column: string): Future[Option[float]] 1009 -nim begin v2/query_builder/models/postgres/postgres_query.html#begin,PostgresConnections proc begin(self: PostgresConnections): owned(Future[void]) 1020 -nim rollback v2/query_builder/models/postgres/postgres_query.html#rollback,PostgresConnections proc rollback(self: PostgresConnections): owned(Future[void]) 1025 -nim commit v2/query_builder/models/postgres/postgres_query.html#commit,PostgresConnections proc commit(self: PostgresConnections): owned(Future[void]) 1030 -nim get v2/query_builder/models/postgres/postgres_query.html#get,RawPostgresQuery proc get(self: RawPostgresQuery): Future[seq[JsonNode]] 1035 -nim getPlain v2/query_builder/models/postgres/postgres_query.html#getPlain,RawPostgresQuery proc getPlain(self: RawPostgresQuery): Future[seq[seq[string]]] 1041 -nim exec v2/query_builder/models/postgres/postgres_query.html#exec,RawPostgresQuery proc exec(self: RawPostgresQuery): owned(Future[void]) 1047 -nim first v2/query_builder/models/postgres/postgres_query.html#first,RawPostgresQuery proc first(self: RawPostgresQuery): Future[Option[JsonNode]] 1053 -nim firstPlain v2/query_builder/models/postgres/postgres_query.html#firstPlain,RawPostgresQuery proc firstPlain(self: RawPostgresQuery): Future[seq[string]] 1059 -nim seeder v2/query_builder/models/postgres/postgres_query.html#seeder.t,PostgresConnections,string,untyped template seeder(rdb: PostgresConnections; tableName: string; body: untyped): untyped 1065 -nim seeder v2/query_builder/models/postgres/postgres_query.html#seeder.t,PostgresConnections,string,string,untyped template seeder(rdb: PostgresConnections; tableName, column: string; body: untyped): untyped 1072 -nimgrp firstplain v2/query_builder/models/postgres/postgres_query.html#firstPlain-procs-all proc 802 -nimgrp findplain v2/query_builder/models/postgres/postgres_query.html#findPlain-procs-all proc 814 -nimgrp wherenotbetween v2/query_builder/models/postgres/postgres_query.html#whereNotBetween-procs-all proc 229 -nimgrp wherebetween v2/query_builder/models/postgres/postgres_query.html#whereBetween-procs-all proc 195 -nimgrp having v2/query_builder/models/postgres/postgres_query.html#having-procs-all proc 319 -nimgrp orwhere v2/query_builder/models/postgres/postgres_query.html#orWhere-procs-all proc 146 -nimgrp first v2/query_builder/models/postgres/postgres_query.html#first-procs-all proc 760 -nimgrp get v2/query_builder/models/postgres/postgres_query.html#get-procs-all proc 748 -nimgrp insertid v2/query_builder/models/postgres/postgres_query.html#insertId-procs-all proc 899 -nimgrp insert v2/query_builder/models/postgres/postgres_query.html#insert-procs-all proc 884 -nimgrp where v2/query_builder/models/postgres/postgres_query.html#where-procs-all proc 68 -nimgrp delete v2/query_builder/models/postgres/postgres_query.html#delete-procs-all proc 925 -nimgrp getplain v2/query_builder/models/postgres/postgres_query.html#getPlain-procs-all proc 790 -nimgrp find v2/query_builder/models/postgres/postgres_query.html#find-procs-all proc 772 -nimgrp seeder v2/query_builder/models/postgres/postgres_query.html#seeder-templates-all template 1065 +nim select v2/query_builder/models/postgres/postgres_query.html#select,PostgresConnections,varargs[string] proc select(self: PostgresConnections; columnsArg: varargs[string]): PostgresQuery 15 +nim table v2/query_builder/models/postgres/postgres_query.html#table,PostgresConnections,string proc table(self: PostgresConnections; tableArg: string): PostgresQuery 35 +nim table v2/query_builder/models/postgres/postgres_query.html#table,PostgresQuery,string proc table(self: PostgresQuery; tableArg: string): PostgresQuery 51 +nim `distinct` v2/query_builder/models/postgres/postgres_query.html#distinct,PostgresQuery proc `distinct`(self: PostgresQuery): PostgresQuery 56 +nim join v2/query_builder/models/postgres/postgres_query.html#join,PostgresQuery,string,string,string,string proc join(self: PostgresQuery; table: string; column1: string; symbol: string;\n column2: string): PostgresQuery 62 +nim leftJoin v2/query_builder/models/postgres/postgres_query.html#leftJoin,PostgresQuery,string,string,string,string proc leftJoin(self: PostgresQuery; table: string; column1: string; symbol: string;\n column2: string): PostgresQuery 81 +nim where v2/query_builder/models/postgres/postgres_query.html#where,PostgresQuery,string,string, proc where(self: PostgresQuery; column: string; symbol: string;\n value: string | int | float): PostgresQuery 103 +nim where v2/query_builder/models/postgres/postgres_query.html#where,PostgresQuery,string,string,bool proc where(self: PostgresQuery; column: string; symbol: string; value: bool): PostgresQuery 130 +nim where v2/query_builder/models/postgres/postgres_query.html#where,PostgresQuery,string,string,_2 proc where(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery 157 +nim orWhere v2/query_builder/models/postgres/postgres_query.html#orWhere,PostgresQuery,string,string, proc orWhere(self: PostgresQuery; column: string; symbol: string;\n value: string | int | float | bool): PostgresQuery 181 +nim orWhere v2/query_builder/models/postgres/postgres_query.html#orWhere,PostgresQuery,string,string,_2 proc orWhere(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery 208 +nim whereBetween v2/query_builder/models/postgres/postgres_query.html#whereBetween,PostgresQuery,string,array[,] proc whereBetween(self: PostgresQuery; column: string; width: array[2, int | float]): PostgresQuery 230 +nim whereBetween v2/query_builder/models/postgres/postgres_query.html#whereBetween,PostgresQuery,string,array[,string] proc whereBetween(self: PostgresQuery; column: string; width: array[2, string]): PostgresQuery 247 +nim whereNotBetween v2/query_builder/models/postgres/postgres_query.html#whereNotBetween,PostgresQuery,string,array[,] proc whereNotBetween(self: PostgresQuery; column: string;\n width: array[2, int | float]): PostgresQuery 264 +nim whereNotBetween v2/query_builder/models/postgres/postgres_query.html#whereNotBetween,PostgresQuery,string,array[,string] proc whereNotBetween(self: PostgresQuery; column: string; width: array[2, string]): PostgresQuery 281 +nim whereIn v2/query_builder/models/postgres/postgres_query.html#whereIn,PostgresQuery,string,seq[] proc whereIn(self: PostgresQuery; column: string; width: seq[int | float | string]): PostgresQuery 298 +nim whereNotIn v2/query_builder/models/postgres/postgres_query.html#whereNotIn,PostgresQuery,string,seq[] proc whereNotIn(self: PostgresQuery; column: string; width: seq[int | float | string]): PostgresQuery 315 +nim whereNull v2/query_builder/models/postgres/postgres_query.html#whereNull,PostgresQuery,string proc whereNull(self: PostgresQuery; column: string): PostgresQuery 332 +nim groupBy v2/query_builder/models/postgres/postgres_query.html#groupBy,PostgresQuery,string proc groupBy(self: PostgresQuery; column: string): PostgresQuery 346 +nim having v2/query_builder/models/postgres/postgres_query.html#having,PostgresQuery,string,string, proc having(self: PostgresQuery; column: string; symbol: string;\n value: string | int | float | bool): PostgresQuery 354 +nim having v2/query_builder/models/postgres/postgres_query.html#having,PostgresQuery,string,string,_2 proc having(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery 380 +nim orderBy v2/query_builder/models/postgres/postgres_query.html#orderBy,PostgresQuery,string,Order proc orderBy(self: PostgresQuery; column: string; order: Order): PostgresQuery 404 +nim limit v2/query_builder/models/postgres/postgres_query.html#limit,PostgresQuery,int proc limit(self: PostgresQuery; num: int): PostgresQuery 418 +nim offset v2/query_builder/models/postgres/postgres_query.html#offset,PostgresQuery,int proc offset(self: PostgresQuery; num: int): PostgresQuery 423 +nim raw v2/query_builder/models/postgres/postgres_query.html#raw,PostgresConnections,string proc raw(self: PostgresConnections; sql: string; arges = newJArray()): RawPostgresQuery 428 +nimgrp wherenotbetween v2/query_builder/models/postgres/postgres_query.html#whereNotBetween-procs-all proc 264 +nimgrp wherebetween v2/query_builder/models/postgres/postgres_query.html#whereBetween-procs-all proc 230 +nimgrp having v2/query_builder/models/postgres/postgres_query.html#having-procs-all proc 354 +nimgrp orwhere v2/query_builder/models/postgres/postgres_query.html#orWhere-procs-all proc 181 +nimgrp table v2/query_builder/models/postgres/postgres_query.html#table-procs-all proc 35 +nimgrp where v2/query_builder/models/postgres/postgres_query.html#where-procs-all proc 103 diff --git a/docs/v2/v2/query_builder/models/postgres/postgres_types.html b/docs/v2/v2/query_builder/models/postgres/postgres_types.html index f5b07e60..75d22cd2 100644 --- a/docs/v2/v2/query_builder/models/postgres/postgres_types.html +++ b/docs/v2/v2/query_builder/models/postgres/postgres_types.html @@ -54,21 +54,22 @@--- +
proc table(self: PostgresQuery; tableArg: string): PostgresQuery {....raises: [], - tags: [], forbids: [].}+- - proc table(self: PostgresConnections; tableArg: string): PostgresQuery {. + ...raises: [], tags: [], forbids: [].} ---- - -- +
proc update(self: PostgresQuery; items: JsonNode): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}+ proc table(self: PostgresQuery; tableArg: string): PostgresQuery {....raises: [], + tags: [], forbids: [].}- @@ -827,7 +355,7 @@
Procs
- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc where(self: PostgresQuery; column: string; symbol: string; value: bool): PostgresQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- @@ -836,7 +364,7 @@
Procs
-- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc where(self: PostgresQuery; column: string; symbol: string; value: nil.type): PostgresQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- @@ -923,32 +451,6 @@
Procs
-Templates
--
@@ -960,7 +462,7 @@---- -
template seeder(rdb: PostgresConnections; tableName, column: string; - body: untyped): untyped- - - The seeder block allows the code in the block to work only when the table or specified column is empty. - -
---- -
template seeder(rdb: PostgresConnections; tableName: string; body: untyped): untyped- - - The seeder block allows the code in the block to work only when the table is empty. - -
-Templates
src/allographer/v2/query_builder/models/postgres/postgres_type
Types
-
- PostgresConnection
+ createdAt*: int64">Connection +- Connections
- PostgresConnections
- PostgreSQL
- src/allographer/v2/query_builder/models/postgres/postgres_type transactionConn*: int">PostgresQuery
- src/allographer/v2/query_builder/models/postgres/postgres_type
Procs
$ -
@@ -117,8 +117,8 @@- `$`(self: PostgresConnections): string
+- `$`(self: PostgresConnections | PostgresQuery | RawPostgresQuery): string
Imports
diff --git a/docs/v2/v2/query_builder/models/sqlite/query/sqlite_generator.html b/docs/v2/v2/query_builder/models/sqlite/query/sqlite_generator.html index 3d7a30c7..e7de70b7 100644 --- a/docs/v2/v2/query_builder/models/sqlite/query/sqlite_generator.html +++ b/docs/v2/v2/query_builder/models/sqlite/query/sqlite_generator.html @@ -598,7 +598,7 @@Types
-
- PostgresConnection = object +++ Connection = ref object conn*: PPGconn isBusy*: bool createdAt*: int64 @@ -127,13 +127,23 @@Types
+ ++- +
Connections = ref object + conns*: seq[Connection] + timeout*: int +- + + +
diff --git a/docs/v2/v2/query_builder/models/postgres/query/postgres_generator.idx b/docs/v2/v2/query_builder/models/postgres/query/postgres_generator.idx index 22e90931..a6630691 100644 --- a/docs/v2/v2/query_builder/models/postgres/query/postgres_generator.idx +++ b/docs/v2/v2/query_builder/models/postgres/query/postgres_generator.idx @@ -1,33 +1,33 @@ nimTitle postgres_generator v2/query_builder/models/postgres/query/postgres_generator.html module src/allographer/v2/query_builder/models/postgres/query/postgres_generator 0 -nim selectSql v2/query_builder/models/postgres/query/postgres_generator.html#selectSql,PostgresQuery proc selectSql(self: PostgresQuery): PostgresQuery 22 -nim fromSql v2/query_builder/models/postgres/query/postgres_generator.html#fromSql,PostgresQuery proc fromSql(self: PostgresQuery): PostgresQuery 49 -nim selectFirstSql v2/query_builder/models/postgres/query/postgres_generator.html#selectFirstSql,PostgresQuery proc selectFirstSql(self: PostgresQuery): PostgresQuery 55 -nim selectByIdSql v2/query_builder/models/postgres/query/postgres_generator.html#selectByIdSql,PostgresQuery,string proc selectByIdSql(self: PostgresQuery; key: string): PostgresQuery 60 -nim joinSql v2/query_builder/models/postgres/query/postgres_generator.html#joinSql,PostgresQuery proc joinSql(self: PostgresQuery): PostgresQuery 69 -nim leftJoinSql v2/query_builder/models/postgres/query/postgres_generator.html#leftJoinSql,PostgresQuery proc leftJoinSql(self: PostgresQuery): PostgresQuery 81 -nim whereSql v2/query_builder/models/postgres/query/postgres_generator.html#whereSql,PostgresQuery proc whereSql(self: PostgresQuery): PostgresQuery 93 -nim orWhereSql v2/query_builder/models/postgres/query/postgres_generator.html#orWhereSql,PostgresQuery proc orWhereSql(self: PostgresQuery): PostgresQuery 106 -nim whereBetweenSql v2/query_builder/models/postgres/query/postgres_generator.html#whereBetweenSql,PostgresQuery proc whereBetweenSql(self: PostgresQuery): PostgresQuery 120 -nim whereBetweenStringSql v2/query_builder/models/postgres/query/postgres_generator.html#whereBetweenStringSql,PostgresQuery proc whereBetweenStringSql(self: PostgresQuery): PostgresQuery 136 -nim whereNotBetweenSql v2/query_builder/models/postgres/query/postgres_generator.html#whereNotBetweenSql,PostgresQuery proc whereNotBetweenSql(self: PostgresQuery): PostgresQuery 152 -nim whereNotBetweenStringSql v2/query_builder/models/postgres/query/postgres_generator.html#whereNotBetweenStringSql,PostgresQuery proc whereNotBetweenStringSql(self: PostgresQuery): PostgresQuery 168 -nim whereInSql v2/query_builder/models/postgres/query/postgres_generator.html#whereInSql,PostgresQuery proc whereInSql(self: PostgresQuery): PostgresQuery 184 -nim whereNotInSql v2/query_builder/models/postgres/query/postgres_generator.html#whereNotInSql,PostgresQuery proc whereNotInSql(self: PostgresQuery): PostgresQuery 200 -nim whereNullSql v2/query_builder/models/postgres/query/postgres_generator.html#whereNullSql,PostgresQuery proc whereNullSql(self: PostgresQuery): PostgresQuery 216 -nim groupBySql v2/query_builder/models/postgres/query/postgres_generator.html#groupBySql,PostgresQuery proc groupBySql(self: PostgresQuery): PostgresQuery 228 -nim havingSql v2/query_builder/models/postgres/query/postgres_generator.html#havingSql,PostgresQuery proc havingSql(self: PostgresQuery): PostgresQuery 239 -nim orderBySql v2/query_builder/models/postgres/query/postgres_generator.html#orderBySql,PostgresQuery proc orderBySql(self: PostgresQuery): PostgresQuery 254 -nim limitSql v2/query_builder/models/postgres/query/postgres_generator.html#limitSql,PostgresQuery proc limitSql(self: PostgresQuery): PostgresQuery 267 -nim offsetSql v2/query_builder/models/postgres/query/postgres_generator.html#offsetSql,PostgresQuery proc offsetSql(self: PostgresQuery): PostgresQuery 275 -nim insertSql v2/query_builder/models/postgres/query/postgres_generator.html#insertSql,PostgresQuery proc insertSql(self: PostgresQuery): PostgresQuery 285 -nim insertValueSql v2/query_builder/models/postgres/query/postgres_generator.html#insertValueSql,PostgresQuery,JsonNode proc insertValueSql(self: PostgresQuery; items: JsonNode): PostgresQuery 291 -nim insertValuesSql v2/query_builder/models/postgres/query/postgres_generator.html#insertValuesSql,PostgresQuery,openArray[JsonNode] proc insertValuesSql(self: PostgresQuery; rows: openArray[JsonNode]): PostgresQuery 311 -nim updateSql v2/query_builder/models/postgres/query/postgres_generator.html#updateSql,PostgresQuery proc updateSql(self: PostgresQuery): PostgresQuery 343 -nim updateValuesSql v2/query_builder/models/postgres/query/postgres_generator.html#updateValuesSql,PostgresQuery,JsonNode proc updateValuesSql(self: PostgresQuery; items: JsonNode): PostgresQuery 353 -nim deleteSql v2/query_builder/models/postgres/query/postgres_generator.html#deleteSql,PostgresQuery proc deleteSql(self: PostgresQuery): PostgresQuery 375 -nim deleteByIdSql v2/query_builder/models/postgres/query/postgres_generator.html#deleteByIdSql,PostgresQuery,int,string proc deleteByIdSql(self: PostgresQuery; id: int; key: string): PostgresQuery 380 -nim selectCountSql v2/query_builder/models/postgres/query/postgres_generator.html#selectCountSql,PostgresQuery proc selectCountSql(self: PostgresQuery): PostgresQuery 386 -nim selectMaxSql v2/query_builder/models/postgres/query/postgres_generator.html#selectMaxSql,PostgresQuery,string proc selectMaxSql(self: PostgresQuery; column: string): PostgresQuery 397 -nim selectMinSql v2/query_builder/models/postgres/query/postgres_generator.html#selectMinSql,PostgresQuery,string proc selectMinSql(self: PostgresQuery; column: string): PostgresQuery 402 -nim selectAvgSql v2/query_builder/models/postgres/query/postgres_generator.html#selectAvgSql,PostgresQuery,string proc selectAvgSql(self: PostgresQuery; column: string): PostgresQuery 407 -nim selectSumSql v2/query_builder/models/postgres/query/postgres_generator.html#selectSumSql,PostgresQuery,string proc selectSumSql(self: PostgresQuery; column: string): PostgresQuery 412 +nim selectSql v2/query_builder/models/postgres/query/postgres_generator.html#selectSql,PostgresQuery proc selectSql(self: PostgresQuery): PostgresQuery 21 +nim fromSql v2/query_builder/models/postgres/query/postgres_generator.html#fromSql,PostgresQuery proc fromSql(self: PostgresQuery): PostgresQuery 43 +nim selectFirstSql v2/query_builder/models/postgres/query/postgres_generator.html#selectFirstSql,PostgresQuery proc selectFirstSql(self: PostgresQuery): PostgresQuery 49 +nim selectByIdSql v2/query_builder/models/postgres/query/postgres_generator.html#selectByIdSql,PostgresQuery,string proc selectByIdSql(self: PostgresQuery; key: string): PostgresQuery 54 +nim joinSql v2/query_builder/models/postgres/query/postgres_generator.html#joinSql,PostgresQuery proc joinSql(self: PostgresQuery): PostgresQuery 63 +nim leftJoinSql v2/query_builder/models/postgres/query/postgres_generator.html#leftJoinSql,PostgresQuery proc leftJoinSql(self: PostgresQuery): PostgresQuery 75 +nim whereSql v2/query_builder/models/postgres/query/postgres_generator.html#whereSql,PostgresQuery proc whereSql(self: PostgresQuery): PostgresQuery 87 +nim orWhereSql v2/query_builder/models/postgres/query/postgres_generator.html#orWhereSql,PostgresQuery proc orWhereSql(self: PostgresQuery): PostgresQuery 100 +nim whereBetweenSql v2/query_builder/models/postgres/query/postgres_generator.html#whereBetweenSql,PostgresQuery proc whereBetweenSql(self: PostgresQuery): PostgresQuery 114 +nim whereBetweenStringSql v2/query_builder/models/postgres/query/postgres_generator.html#whereBetweenStringSql,PostgresQuery proc whereBetweenStringSql(self: PostgresQuery): PostgresQuery 130 +nim whereNotBetweenSql v2/query_builder/models/postgres/query/postgres_generator.html#whereNotBetweenSql,PostgresQuery proc whereNotBetweenSql(self: PostgresQuery): PostgresQuery 146 +nim whereNotBetweenStringSql v2/query_builder/models/postgres/query/postgres_generator.html#whereNotBetweenStringSql,PostgresQuery proc whereNotBetweenStringSql(self: PostgresQuery): PostgresQuery 162 +nim whereInSql v2/query_builder/models/postgres/query/postgres_generator.html#whereInSql,PostgresQuery proc whereInSql(self: PostgresQuery): PostgresQuery 178 +nim whereNotInSql v2/query_builder/models/postgres/query/postgres_generator.html#whereNotInSql,PostgresQuery proc whereNotInSql(self: PostgresQuery): PostgresQuery 194 +nim whereNullSql v2/query_builder/models/postgres/query/postgres_generator.html#whereNullSql,PostgresQuery proc whereNullSql(self: PostgresQuery): PostgresQuery 210 +nim groupBySql v2/query_builder/models/postgres/query/postgres_generator.html#groupBySql,PostgresQuery proc groupBySql(self: PostgresQuery): PostgresQuery 222 +nim havingSql v2/query_builder/models/postgres/query/postgres_generator.html#havingSql,PostgresQuery proc havingSql(self: PostgresQuery): PostgresQuery 233 +nim orderBySql v2/query_builder/models/postgres/query/postgres_generator.html#orderBySql,PostgresQuery proc orderBySql(self: PostgresQuery): PostgresQuery 248 +nim limitSql v2/query_builder/models/postgres/query/postgres_generator.html#limitSql,PostgresQuery proc limitSql(self: PostgresQuery): PostgresQuery 261 +nim offsetSql v2/query_builder/models/postgres/query/postgres_generator.html#offsetSql,PostgresQuery proc offsetSql(self: PostgresQuery): PostgresQuery 269 +nim insertSql v2/query_builder/models/postgres/query/postgres_generator.html#insertSql,PostgresQuery proc insertSql(self: PostgresQuery): PostgresQuery 279 +nim insertValueSql v2/query_builder/models/postgres/query/postgres_generator.html#insertValueSql,PostgresQuery,JsonNode proc insertValueSql(self: PostgresQuery; items: JsonNode): PostgresQuery 285 +nim insertValuesSql v2/query_builder/models/postgres/query/postgres_generator.html#insertValuesSql,PostgresQuery,openArray[JsonNode] proc insertValuesSql(self: PostgresQuery; rows: openArray[JsonNode]): PostgresQuery 305 +nim updateSql v2/query_builder/models/postgres/query/postgres_generator.html#updateSql,PostgresQuery proc updateSql(self: PostgresQuery): PostgresQuery 337 +nim updateValuesSql v2/query_builder/models/postgres/query/postgres_generator.html#updateValuesSql,PostgresQuery,JsonNode proc updateValuesSql(self: PostgresQuery; items: JsonNode): PostgresQuery 347 +nim deleteSql v2/query_builder/models/postgres/query/postgres_generator.html#deleteSql,PostgresQuery proc deleteSql(self: PostgresQuery): PostgresQuery 369 +nim deleteByIdSql v2/query_builder/models/postgres/query/postgres_generator.html#deleteByIdSql,PostgresQuery,int,string proc deleteByIdSql(self: PostgresQuery; id: int; key: string): PostgresQuery 374 +nim selectCountSql v2/query_builder/models/postgres/query/postgres_generator.html#selectCountSql,PostgresQuery proc selectCountSql(self: PostgresQuery): PostgresQuery 380 +nim selectMaxSql v2/query_builder/models/postgres/query/postgres_generator.html#selectMaxSql,PostgresQuery,string proc selectMaxSql(self: PostgresQuery; column: string): PostgresQuery 391 +nim selectMinSql v2/query_builder/models/postgres/query/postgres_generator.html#selectMinSql,PostgresQuery,string proc selectMinSql(self: PostgresQuery; column: string): PostgresQuery 396 +nim selectAvgSql v2/query_builder/models/postgres/query/postgres_generator.html#selectAvgSql,PostgresQuery,string proc selectAvgSql(self: PostgresQuery; column: string): PostgresQuery 401 +nim selectSumSql v2/query_builder/models/postgres/query/postgres_generator.html#selectSumSql,PostgresQuery,string proc selectSumSql(self: PostgresQuery; column: string): PostgresQuery 406 diff --git a/docs/v2/v2/query_builder/models/sqlite/query/sqlite_builder.html b/docs/v2/v2/query_builder/models/sqlite/query/sqlite_builder.html index 31a0f738..0f4b920a 100644 --- a/docs/v2/v2/query_builder/models/sqlite/query/sqlite_builder.html +++ b/docs/v2/v2/query_builder/models/sqlite/query/sqlite_builder.html @@ -310,7 +310,7 @@- @@ -154,8 +164,7 @@
PostgresConnections = ref object log*: LogSetting - pools*: seq[PostgresConnection] - timeout*: int + pools*: Connections isInTransaction*: bool transactionConn*: intTypes
PostgresQuery = ref object log*: LogSetting - pools*: seq[PostgresConnection] - timeout*: int + pools*: Connections query*: JsonNode queryString*: string placeHolder*: JsonNode @@ -171,8 +180,7 @@Types
diff --git a/docs/v2/v2/query_builder/models/postgres/query/postgres_generator.html b/docs/v2/v2/query_builder/models/postgres/query/postgres_generator.html index e7ec455c..dbee42f4 100644 --- a/docs/v2/v2/query_builder/models/postgres/query/postgres_generator.html +++ b/docs/v2/v2/query_builder/models/postgres/query/postgres_generator.html @@ -598,7 +598,7 @@ RawPostgresQuery = ref object log*: LogSetting - pools*: seq[PostgresConnection] - timeout*: int + pools*: Connections query*: JsonNode queryString*: string placeHolder*: JsonNode @@ -192,8 +200,8 @@Types
Procs
--diff --git a/docs/v2/v2/query_builder/models/postgres/postgres_types.idx b/docs/v2/v2/query_builder/models/postgres/postgres_types.idx index c5360755..a2d9841c 100644 --- a/docs/v2/v2/query_builder/models/postgres/postgres_types.idx +++ b/docs/v2/v2/query_builder/models/postgres/postgres_types.idx @@ -1,7 +1,8 @@ nimTitle postgres_types v2/query_builder/models/postgres/postgres_types.html module src/allographer/v2/query_builder/models/postgres/postgres_types 0 nim PostgreSQL v2/query_builder/models/postgres/postgres_types.html#PostgreSQL object PostgreSQL 6 -nim PostgresConnection v2/query_builder/models/postgres/postgres_types.html#PostgresConnection object PostgresConnection 9 -nim PostgresConnections v2/query_builder/models/postgres/postgres_types.html#PostgresConnections type PostgresConnections 16 -nim `$` v2/query_builder/models/postgres/postgres_types.html#$,PostgresConnections proc `$`(self: PostgresConnections): string 24 -nim PostgresQuery v2/query_builder/models/postgres/postgres_types.html#PostgresQuery type PostgresQuery 29 +nim Connection v2/query_builder/models/postgres/postgres_types.html#Connection type Connection 9 +nim Connections v2/query_builder/models/postgres/postgres_types.html#Connections type Connections 15 +nim PostgresConnections v2/query_builder/models/postgres/postgres_types.html#PostgresConnections type PostgresConnections 21 +nim PostgresQuery v2/query_builder/models/postgres/postgres_types.html#PostgresQuery type PostgresQuery 30 nim RawPostgresQuery v2/query_builder/models/postgres/postgres_types.html#RawPostgresQuery type RawPostgresQuery 41 +nim `$` v2/query_builder/models/postgres/postgres_types.html#$ proc `$`(self: PostgresConnections | PostgresQuery | RawPostgresQuery): string 52 diff --git a/docs/v2/v2/query_builder/models/postgres/query/postgres_builder.html b/docs/v2/v2/query_builder/models/postgres/query/postgres_builder.html index 5d4b85e0..388ceb44 100644 --- a/docs/v2/v2/query_builder/models/postgres/query/postgres_builder.html +++ b/docs/v2/v2/query_builder/models/postgres/query/postgres_builder.html @@ -310,7 +310,7 @@- +
proc `$`(self: PostgresConnections): string {....raises: [], tags: [], forbids: [].}+ proc `$`(self: PostgresConnections | PostgresQuery | RawPostgresQuery): string- @@ -212,7 +220,7 @@
Procs
Procs
Procs
Procs
Procs
src/allographer/v2/query_builder/models/sqlite/sqlite_connections - - - - - - - - - - - - --- - - - - - diff --git a/docs/v2/v2/query_builder/models/sqlite/sqlite_connections.idx b/docs/v2/v2/query_builder/models/sqlite/sqlite_connections.idx deleted file mode 100644 index 380c5520..00000000 --- a/docs/v2/v2/query_builder/models/sqlite/sqlite_connections.idx +++ /dev/null @@ -1,5 +0,0 @@ -nimTitle sqlite_connections v2/query_builder/models/sqlite/sqlite_connections.html module src/allographer/v2/query_builder/models/sqlite/sqlite_connections 0 -nim `$` v2/query_builder/models/sqlite/sqlite_connections.html#$ proc `$`(self: SqliteConnections | SqliteQuery): string 5 -nim select v2/query_builder/models/sqlite/sqlite_connections.html#select,SqliteConnections,varargs[string] proc select(self: SqliteConnections; columnsArg: varargs[string]): SqliteQuery 9 -nim table v2/query_builder/models/sqlite/sqlite_connections.html#table,SqliteConnections,string proc table(self: SqliteConnections; tableArg: string): SqliteQuery 30 -nim raw v2/query_builder/models/sqlite/sqlite_connections.html#raw,SqliteConnections,string proc raw(self: SqliteConnections; sql: string; arges = newJArray()): RawSqliteQuery 47 diff --git a/docs/v2/v2/query_builder/models/sqlite/sqlite_exec.html b/docs/v2/v2/query_builder/models/sqlite/sqlite_exec.html new file mode 100644 index 00000000..2223f425 --- /dev/null +++ b/docs/v2/v2/query_builder/models/sqlite/sqlite_exec.html @@ -0,0 +1,605 @@ + + + + + + + +--src/allographer/v2/query_builder/models/sqlite/sqlite_connections
--- - ---- - -----
-- Index
-- Search: --- Group by: - -- - -- - - - ----Imports
-- sqlite_types -
--- -Procs
--
----- -- -
proc `$`(self: SqliteConnections | SqliteQuery): string- - - - -
----- -- -
proc raw(self: SqliteConnections; sql: string; arges = newJArray()): RawSqliteQuery {. - ...raises: [], tags: [], forbids: [].}- - -
-arges is JArray
-can't use BLOB data.
- - ----- -- -
proc select(self: SqliteConnections; columnsArg: varargs[string]): SqliteQuery {. - ...raises: [], tags: [], forbids: [].}- - - - -
--- --- -- -
proc table(self: SqliteConnections; tableArg: string): SqliteQuery {....raises: [], - tags: [], forbids: [].}- - - - -
-src/allographer/v2/query_builder/models/sqlite/sqlite_exec + + + + + + + + + + + + +++ + + + + + diff --git a/docs/v2/v2/query_builder/models/sqlite/sqlite_exec.idx b/docs/v2/v2/query_builder/models/sqlite/sqlite_exec.idx new file mode 100644 index 00000000..1b70847c --- /dev/null +++ b/docs/v2/v2/query_builder/models/sqlite/sqlite_exec.idx @@ -0,0 +1,42 @@ +nimTitle sqlite_exec v2/query_builder/models/sqlite/sqlite_exec.html module src/allographer/v2/query_builder/models/sqlite/sqlite_exec 0 +nim get v2/query_builder/models/sqlite/sqlite_exec.html#get,SqliteQuery proc get(self: SqliteQuery): Future[seq[JsonNode]] 474 +nim first v2/query_builder/models/sqlite/sqlite_exec.html#first,SqliteQuery proc first(self: SqliteQuery): Future[Option[JsonNode]] 485 +nim find v2/query_builder/models/sqlite/sqlite_exec.html#find,SqliteQuery,string,string proc find(self: SqliteQuery; id: string; key = "id"): Future[Option[JsonNode]] 496 +nim find v2/query_builder/models/sqlite/sqlite_exec.html#find,SqliteQuery,int,string proc find(self: SqliteQuery; id: int; key = "id"): Future[Option[JsonNode]] 508 +nim getPlain v2/query_builder/models/sqlite/sqlite_exec.html#getPlain,SqliteQuery proc getPlain(self: SqliteQuery): Future[seq[seq[string]]] 513 +nim firstPlain v2/query_builder/models/sqlite/sqlite_exec.html#firstPlain,SqliteQuery proc firstPlain(self: SqliteQuery): Future[seq[string]] 524 +nim findPlain v2/query_builder/models/sqlite/sqlite_exec.html#findPlain,SqliteQuery,string,string proc findPlain(self: SqliteQuery; id: string; key = "id"): Future[seq[string]] 535 +nim findPlain v2/query_builder/models/sqlite/sqlite_exec.html#findPlain,SqliteQuery,int,string proc findPlain(self: SqliteQuery; id: int; key = "id"): Future[seq[string]] 547 +nim insert v2/query_builder/models/sqlite/sqlite_exec.html#insert,SqliteQuery,JsonNode proc insert(self: SqliteQuery; items: JsonNode): owned(Future[void]) 601 +nim insert v2/query_builder/models/sqlite/sqlite_exec.html#insert,SqliteQuery,seq[JsonNode] proc insert(self: SqliteQuery; items: seq[JsonNode]): owned(Future[void]) 607 +nim insertId v2/query_builder/models/sqlite/sqlite_exec.html#insertId,SqliteQuery,JsonNode,string proc insertId(self: SqliteQuery; items: JsonNode; key = "id"): Future[string] 613 +nim insertId v2/query_builder/models/sqlite/sqlite_exec.html#insertId,SqliteQuery,seq[JsonNode],string proc insertId(self: SqliteQuery; items: seq[JsonNode]; key = "id"): Future[\n seq[string]] 619 +nim update v2/query_builder/models/sqlite/sqlite_exec.html#update,SqliteQuery,JsonNode proc update(self: SqliteQuery; items: JsonNode): owned(Future[void]) 628 +nim delete v2/query_builder/models/sqlite/sqlite_exec.html#delete,SqliteQuery proc delete(self: SqliteQuery): owned(Future[void]) 634 +nim delete v2/query_builder/models/sqlite/sqlite_exec.html#delete,SqliteQuery,int,string proc delete(self: SqliteQuery; id: int; key = "id"): owned(Future[void]) 640 +nim columns v2/query_builder/models/sqlite/sqlite_exec.html#columns,SqliteQuery proc columns(self: SqliteQuery): Future[seq[string]] 647 +nim count v2/query_builder/models/sqlite/sqlite_exec.html#count,SqliteQuery proc count(self: SqliteQuery): Future[int] 653 +nim min v2/query_builder/models/sqlite/sqlite_exec.html#min,SqliteQuery,string proc min(self: SqliteQuery; column: string): Future[Option[string]] 663 +nim max v2/query_builder/models/sqlite/sqlite_exec.html#max,SqliteQuery,string proc max(self: SqliteQuery; column: string): Future[Option[string]] 679 +nim avg v2/query_builder/models/sqlite/sqlite_exec.html#avg,SqliteQuery,string proc avg(self: SqliteQuery; column: string): Future[Option[float]] 695 +nim sum v2/query_builder/models/sqlite/sqlite_exec.html#sum,SqliteQuery,string proc sum(self: SqliteQuery; column: string): Future[Option[float]] 705 +nim begin v2/query_builder/models/sqlite/sqlite_exec.html#begin,SqliteConnections proc begin(self: SqliteConnections): owned(Future[void]) 715 +nim rollback v2/query_builder/models/sqlite/sqlite_exec.html#rollback,SqliteConnections proc rollback(self: SqliteConnections): owned(Future[void]) 720 +nim commit v2/query_builder/models/sqlite/sqlite_exec.html#commit,SqliteConnections proc commit(self: SqliteConnections): owned(Future[void]) 725 +nim get v2/query_builder/models/sqlite/sqlite_exec.html#get,RawSqliteQuery proc get(self: RawSqliteQuery): Future[seq[JsonNode]] 730 +nim getPlain v2/query_builder/models/sqlite/sqlite_exec.html#getPlain,RawSqliteQuery proc getPlain(self: RawSqliteQuery): Future[seq[seq[string]]] 736 +nim exec v2/query_builder/models/sqlite/sqlite_exec.html#exec,RawSqliteQuery proc exec(self: RawSqliteQuery): owned(Future[void]) 742 +nim first v2/query_builder/models/sqlite/sqlite_exec.html#first,RawSqliteQuery proc first(self: RawSqliteQuery): Future[Option[JsonNode]] 748 +nim firstPlain v2/query_builder/models/sqlite/sqlite_exec.html#firstPlain,RawSqliteQuery proc firstPlain(self: RawSqliteQuery): Future[seq[string]] 754 +nim seeder v2/query_builder/models/sqlite/sqlite_exec.html#seeder.t,SqliteConnections,string,untyped template seeder(rdb: SqliteConnections; tableName: string; body: untyped): untyped 760 +nim seeder v2/query_builder/models/sqlite/sqlite_exec.html#seeder.t,SqliteConnections,string,string,untyped template seeder(rdb: SqliteConnections; tableName, column: string; body: untyped): untyped 767 +nimgrp firstplain v2/query_builder/models/sqlite/sqlite_exec.html#firstPlain-procs-all proc 524 +nimgrp findplain v2/query_builder/models/sqlite/sqlite_exec.html#findPlain-procs-all proc 535 +nimgrp first v2/query_builder/models/sqlite/sqlite_exec.html#first-procs-all proc 485 +nimgrp insertid v2/query_builder/models/sqlite/sqlite_exec.html#insertId-procs-all proc 613 +nimgrp get v2/query_builder/models/sqlite/sqlite_exec.html#get-procs-all proc 474 +nimgrp insert v2/query_builder/models/sqlite/sqlite_exec.html#insert-procs-all proc 601 +nimgrp delete v2/query_builder/models/sqlite/sqlite_exec.html#delete-procs-all proc 634 +nimgrp getplain v2/query_builder/models/sqlite/sqlite_exec.html#getPlain-procs-all proc 513 +nimgrp find v2/query_builder/models/sqlite/sqlite_exec.html#find-procs-all proc 496 +nimgrp seeder v2/query_builder/models/sqlite/sqlite_exec.html#seeder-templates-all template 760 diff --git a/docs/v2/v2/query_builder/models/sqlite/sqlite_open.html b/docs/v2/v2/query_builder/models/sqlite/sqlite_open.html index 533cbbcc..862d0789 100644 --- a/docs/v2/v2/query_builder/models/sqlite/sqlite_open.html +++ b/docs/v2/v2/query_builder/models/sqlite/sqlite_open.html @@ -55,11 +55,9 @@++src/allographer/v2/query_builder/models/sqlite/sqlite_exec
+++ + ++++ + +++++
+- Index
++ Search: +++ Group by: + +++
+ +- + Imports +
+- +
+++Procs
++ + +
+columns +
+- columns(self: SqliteQuery): Future[seq[string]]
+ +commit +
+- commit(self: SqliteConnections): owned(Future[void])
+ +count +
+- count(self: SqliteQuery): Future[int]
+ +delete +
+ +- delete(self: SqliteQuery): owned(Future[void])
+- delete(self: SqliteQuery; id: int; key = "id"): owned(Future[void])
+ +find +
+- find(self: SqliteQuery; id: int; key = "id"): Future[Option[JsonNode]]
+- find(self: SqliteQuery; id: string; key = "id"): Future[Option[JsonNode]]
+ +findPlain +
+- findPlain(self: SqliteQuery; id: int; key = "id"): Future[seq[string]]
+- findPlain(self: SqliteQuery; id: string; key = "id"): Future[seq[string]]
+ +first +
+- first(self: RawSqliteQuery): Future[Option[JsonNode]]
+- first(self: SqliteQuery): Future[Option[JsonNode]]
+ +firstPlain +
+- firstPlain(self: RawSqliteQuery): Future[seq[string]]
+- firstPlain(self: SqliteQuery): Future[seq[string]]
+ +get +
+- get(self: RawSqliteQuery): Future[seq[JsonNode]]
+- get(self: SqliteQuery): Future[seq[JsonNode]]
+ +getPlain +
+- getPlain(self: RawSqliteQuery): Future[seq[seq[string]]]
+- getPlain(self: SqliteQuery): Future[seq[seq[string]]]
+ +insert +
+- insert(self: SqliteQuery; items: JsonNode): owned(Future[void])
+- insert(self: SqliteQuery; items: seq[JsonNode]): owned(Future[void])
+ +insertId +
+ + +- insertId(self: SqliteQuery; items: JsonNode; key = "id"): Future[string]
+- insertId(self: SqliteQuery; items: seq[JsonNode]; key = "id"): Future[ + seq[string]]
+ +rollback +
+ + + +- rollback(self: SqliteConnections): owned(Future[void])
+ +- + +
+ ++ + + + ++++Imports
+ +++Procs
++
+++++ +- +
proc avg(self: SqliteQuery; column: string): Future[Option[float]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, + ReadDbEffect], forbids: [].}- + + + +
+++++ +- +
proc begin(self: SqliteConnections): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc columns(self: SqliteQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++ +- +
proc commit(self: SqliteConnections): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc count(self: SqliteQuery): Future[int] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + + +
+++++- +
proc delete(self: SqliteQuery): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect, + ReadDbEffect], forbids: [].}- + + + +
+++ +- +
proc delete(self: SqliteQuery; id: int; key = "id"): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + + +
+++++ +- +
proc exec(self: RawSqliteQuery): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + It is only used with raw() + +
+++++- +
proc find(self: SqliteQuery; id: int; key = "id"): Future[Option[JsonNode]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, + ReadDbEffect], forbids: [].}- + + + +
+++ +- +
proc find(self: SqliteQuery; id: string; key = "id"): Future[Option[JsonNode]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, + ReadDbEffect], forbids: [].}- + + + +
+++++- +
proc findPlain(self: SqliteQuery; id: int; key = "id"): Future[seq[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, + ReadDbEffect], forbids: [].}- + + + +
+++ +- +
proc findPlain(self: SqliteQuery; id: string; key = "id"): Future[seq[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, + ReadDbEffect], forbids: [].}- + + + +
+++++- +
proc first(self: RawSqliteQuery): Future[Option[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + It is only used with raw() + +
+++ +- +
proc first(self: SqliteQuery): Future[Option[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + + +
+++++- +
proc firstPlain(self: RawSqliteQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + It is only used with raw() + +
+++ +- +
proc firstPlain(self: SqliteQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + + +
+++++- +
proc get(self: RawSqliteQuery): Future[seq[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + It is only used with raw() + +
+++ +- +
proc get(self: SqliteQuery): Future[seq[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + + +
+++++- +
proc getPlain(self: RawSqliteQuery): Future[seq[seq[string]]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, + ReadDbEffect], forbids: [].}- + + It is only used with raw() + +
+++ +- +
proc getPlain(self: SqliteQuery): Future[seq[seq[string]]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + + +
+++++- +
proc insert(self: SqliteQuery; items: JsonNode): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + + +
+++ +- +
proc insert(self: SqliteQuery; items: seq[JsonNode]): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + + +
+++++- +
proc insertId(self: SqliteQuery; items: JsonNode; key = "id"): Future[string] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, + ReadDbEffect], forbids: [].}- + + + +
+++ +- +
proc insertId(self: SqliteQuery; items: seq[JsonNode]; key = "id"): Future[ + seq[string]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, + TimeEffect, ReadDbEffect], forbids: [].}- + + + +
+++++ +- +
proc max(self: SqliteQuery; column: string): Future[Option[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, + ReadDbEffect], forbids: [].}- + + + +
+++++ +- +
proc min(self: SqliteQuery; column: string): Future[Option[string]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, + ReadDbEffect], forbids: [].}- + + + +
+++++ +- +
proc rollback(self: SqliteConnections): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + + +
+++++ +- +
proc sum(self: SqliteQuery; column: string): Future[Option[float]] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, + ReadDbEffect], forbids: [].}- + + + +
+++ +++ +- +
proc update(self: SqliteQuery; items: JsonNode): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], + forbids: [].}- + + + +
+++ +Templates
++
+++ +++- +
template seeder(rdb: SqliteConnections; tableName, column: string; body: untyped): untyped- + + The seeder block allows the code in the block to work only when the table or specified column is empty. + +
+++ +- +
template seeder(rdb: SqliteConnections; tableName: string; body: untyped): untyped- + + The seeder block allows the code in the block to work only when the table is empty. + +
+src/allographer/v2/query_builder/models/sqlite/sqlite_open
Procs
dbOpen -
- dbOpen(__2113929222: type SQLite3; database: string = ""; user: string = ""; - password: string = ""; host: string = ""; port: int32 = 0; + shouldOutputLogFile = false; logDir = ""): SqliteConnections">dbOpen(__2113929222: type SQLite3; database: string = ""; maxConnections: int = 1; timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): SqliteConnections
@@ -87,11 +85,10 @@Imports
Procs
--diff --git a/docs/v2/v2/query_builder/models/sqlite/sqlite_open.idx b/docs/v2/v2/query_builder/models/sqlite/sqlite_open.idx index 3a5dc86f..e70b9d2b 100644 --- a/docs/v2/v2/query_builder/models/sqlite/sqlite_open.idx +++ b/docs/v2/v2/query_builder/models/sqlite/sqlite_open.idx @@ -1,2 +1,2 @@ nimTitle sqlite_open v2/query_builder/models/sqlite/sqlite_open.html module src/allographer/v2/query_builder/models/sqlite/sqlite_open 0 -nim dbOpen v2/query_builder/models/sqlite/sqlite_open.html#dbOpen,typeSQLite3,string,string,string,string,int32,int,int,string proc dbOpen(__2113929222: type SQLite3; database: string = ""; user: string = "";\n password: string = ""; host: string = ""; port: int32 = 0;\n maxConnections: int = 1; timeout = 30; shouldDisplayLog = false;\n shouldOutputLogFile = false; logDir = ""): SqliteConnections 7 +nim dbOpen v2/query_builder/models/sqlite/sqlite_open.html#dbOpen,typeSQLite3,string,int,int,string proc dbOpen(__2113929222: type SQLite3; database: string = "";\n maxConnections: int = 1; timeout = 30; shouldDisplayLog = false;\n shouldOutputLogFile = false; logDir = ""): SqliteConnections 7 diff --git a/docs/v2/v2/query_builder/models/sqlite/sqlite_query.html b/docs/v2/v2/query_builder/models/sqlite/sqlite_query.html index c2e366c5..6bdaf50e 100644 --- a/docs/v2/v2/query_builder/models/sqlite/sqlite_query.html +++ b/docs/v2/v2/query_builder/models/sqlite/sqlite_query.html @@ -54,76 +54,9 @@- +
proc dbOpen(__2113929222: type SQLite3; database: string = ""; - user: string = ""; password: string = ""; host: string = ""; - port: int32 = 0; maxConnections: int = 1; timeout = 30; - shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): SqliteConnections+ proc dbOpen(__2113929222: type SQLite3; database: string = ""; + maxConnections: int = 1; timeout = 30; shouldDisplayLog = false; + shouldOutputLogFile = false; logDir = ""): SqliteConnections- @@ -110,7 +107,7 @@
Procs
src/allographer/v2/query_builder/models/sqlite/sqlite_query
Procs
- - -
columns -
-- columns(self: SqliteQuery): Future[seq[string]]
- -commit -
-- commit(self: SqliteConnections): owned(Future[void])
- -count -
-- count(self: SqliteQuery): Future[int]
- -delete -
-- delete(self: SqliteQuery): owned(Future[void])
-- delete(self: SqliteQuery; id: int; key = "id"): owned(Future[void])
- -distinct +
distinct
- -- `distinct`(self: SqliteQuery): SqliteQuery
-find -
-- find(self: SqliteQuery; id: int; key = "id"): Future[Option[JsonNode]]
-- find(self: SqliteQuery; id: string; key = "id"): Future[Option[JsonNode]]
-- find[T](self: SqliteQuery; id: int; typ: typedesc[T]; key = "id"): Future[ - Option[T]]
-- find[T](self: SqliteQuery; id: string; typ: typedesc[T]; key = "id"): Future[ - Option[T]]
- -findPlain -
-- findPlain(self: SqliteQuery; id: int; key = "id"): Future[seq[string]]
-- findPlain(self: SqliteQuery; id: string; key = "id"): Future[seq[string]]
- -first -
-- first(self: RawSqliteQuery): Future[Option[JsonNode]]
-- first(self: SqliteQuery): Future[Option[JsonNode]]
-- first[T](self: SqliteQuery; typ: typedesc[T]): Future[Option[T]]
- -firstPlain -
-- firstPlain(self: RawSqliteQuery): Future[seq[string]]
-- firstPlain(self: SqliteQuery): Future[seq[string]]
- -get -
-- get(self: RawSqliteQuery): Future[seq[JsonNode]]
-- get(self: SqliteQuery): Future[seq[JsonNode]]
-- get[T](self: SqliteQuery; typ: typedesc[T]): Future[seq[T]]
- -getPlain -
- getPlain(self: RawSqliteQuery): Future[seq[seq[string]]]
-- getPlain(self: SqliteQuery): Future[seq[seq[string]]]
-groupBy
-- groupBy(self: SqliteQuery; column: string): SqliteQuery
@@ -135,18 +68,6 @@src/allographer/v2/query_builder/models/sqlite/sqlite_query
- having(self: SqliteQuery; column: string; symbol: string; value: nil.type): SqliteQuery
-insert -
-- insert(self: SqliteQuery; items: JsonNode): owned(Future[void])
-- insert(self: SqliteQuery; items: seq[JsonNode]): owned(Future[void])
- -insertId -
- insertId(self: SqliteQuery; items: JsonNode; key = "id"): Future[string]
-- insertId(self: SqliteQuery; items: seq[JsonNode]; key = "id"): Future[ - seq[string]]
-join
- -- src/allographer/v2/query_builder/models/sqlite/sqlite_querylimit
- limit(self: SqliteQuery; num: int): SqliteQuery
-offset
-- offset(self: SqliteQuery; num: int): SqliteQuery
@@ -187,20 +100,17 @@src/allographer/v2/query_builder/models/sqlite/sqlite_queryorWhere(self: SqliteQuery; column: string; symbol: string; value: nil.type): SqliteQuery
rollback -
- rollback(self: SqliteConnections): owned(Future[void])
+ -sum -
- - -- sum(self: SqliteQuery; column: string): Future[Option[float]]
+ -update -
- update(self: SqliteQuery; items: JsonNode): owned(Future[void])
+- table(self: SqliteConnections; tableArg: string): SqliteQuery
+- table(self: SqliteQuery; tableArg: string): SqliteQuery
where @@ -232,19 +142,6 @@
- -src/allographer/v2/query_builder/models/sqlite/sqlite_querywhereNull
- whereNull(self: SqliteQuery; column: string): SqliteQuery
-- -
-Procs
-
---- -- -
proc avg(self: SqliteQuery; column: string): Future[Option[float]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, - ReadDbEffect], forbids: [].}- - - - -
----- -- -
proc begin(self: SqliteConnections): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - - -
----- -- -
proc columns(self: SqliteQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
----- -- -
proc commit(self: SqliteConnections): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect], forbids: [].}- - - - -
----- -- -
proc count(self: SqliteQuery): Future[int] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}- - - - -
------ -
proc delete(self: SqliteQuery): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect, - ReadDbEffect], forbids: [].}- - - - -
--- -- -
proc delete(self: SqliteQuery; id: int; key = "id"): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}- - - - -
-+--- -- @@ -369,206 +173,6 @@
proc `distinct`(self: SqliteQuery): SqliteQuery {....raises: [], tags: [], forbids: [].}Procs
- ----- -- -
proc exec(self: RawSqliteQuery): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - It is only used with raw() - -
------ -
proc find(self: SqliteQuery; id: int; key = "id"): Future[Option[JsonNode]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, - ReadDbEffect], forbids: [].}- - - - -
---- -
proc find(self: SqliteQuery; id: string; key = "id"): Future[Option[JsonNode]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, - ReadDbEffect], forbids: [].}- - - - -
---- -
proc find[T](self: SqliteQuery; id: int; typ: typedesc[T]; key = "id"): Future[ - Option[T]] {....stackTrace: false.}- - - - -
--- -- -
proc find[T](self: SqliteQuery; id: string; typ: typedesc[T]; key = "id"): Future[ - Option[T]] {....stackTrace: false.}- - - - -
------ -
proc findPlain(self: SqliteQuery; id: int; key = "id"): Future[seq[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, - ReadDbEffect], forbids: [].}- - - - -
--- -- -
proc findPlain(self: SqliteQuery; id: string; key = "id"): Future[seq[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, - ReadDbEffect], forbids: [].}- - - - -
------ -
proc first(self: RawSqliteQuery): Future[Option[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}- - - It is only used with raw() - -
---- -
proc first(self: SqliteQuery): Future[Option[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}- - - - -
--- -- -
proc first[T](self: SqliteQuery; typ: typedesc[T]): Future[Option[T]] {. - ...stackTrace: false.}- - - - -
------ -
proc firstPlain(self: RawSqliteQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}- - - It is only used with raw() - -
--- -- -
proc firstPlain(self: SqliteQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}- - - - -
------ -
proc get(self: RawSqliteQuery): Future[seq[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}- - - It is only used with raw() - -
---- -
proc get(self: SqliteQuery): Future[seq[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}- - - - -
--- -- -
proc get[T](self: SqliteQuery; typ: typedesc[T]): Future[seq[T]] {. - ...stackTrace: false.}- - - - -
----- -
proc getPlain(self: RawSqliteQuery): Future[seq[seq[string]]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, - ReadDbEffect], forbids: [].}- - - It is only used with raw() - -
--@@ -597,57 +201,7 @@- -
proc getPlain(self: SqliteQuery): Future[seq[seq[string]]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}- - - -
Procs
- -- -
proc having(self: SqliteQuery; column: string; symbol: string; value: nil.type): SqliteQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- - - - -
------ -
proc insert(self: SqliteQuery; items: JsonNode): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}- - - - -
--- -- -
proc insert(self: SqliteQuery; items: seq[JsonNode]): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}- - - - -
------ -
proc insertId(self: SqliteQuery; items: JsonNode; key = "id"): Future[string] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, - ReadDbEffect], forbids: [].}- - - - -
--- -- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc insertId(self: SqliteQuery; items: seq[JsonNode]; key = "id"): Future[ - seq[string]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - TimeEffect, ReadDbEffect], forbids: [].}- @@ -690,34 +244,6 @@
-Procs
----- -- -
proc max(self: SqliteQuery; column: string): Future[Option[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, - ReadDbEffect], forbids: [].}- - - - -
---@@ -758,7 +284,7 @@- -
proc min(self: SqliteQuery; column: string): Future[Option[string]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, - ReadDbEffect], forbids: [].}- - - -
Procs
- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc orWhere(self: SqliteQuery; column: string; symbol: string; value: nil.type): SqliteQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- @@ -767,25 +293,24 @@
Procs
-diff --git a/docs/v2/v2/schema_builder/queries/mysql/sub/change_column_query.html b/docs/v2/v2/schema_builder/queries/mysql/sub/change_column_query.html index 4cf1c828..4488129c 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/sub/change_column_query.html +++ b/docs/v2/v2/schema_builder/queries/mysql/sub/change_column_query.html @@ -134,7 +134,7 @@-- +
proc rollback(self: SqliteConnections): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect], forbids: [].}+-+ proc raw(self: SqliteConnections; sql: string; arges = newJArray()): RawSqliteQuery {. + ...raises: [], tags: [], forbids: [].}- - +
arges is JArray
+can't use BLOB data.
+-diff --git a/docs/v2/v2/schema_builder/queries/mysql/mysql_query_type.html b/docs/v2/v2/schema_builder/queries/mysql/mysql_query_type.html index 32291dec..ca3de6cc 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/mysql_query_type.html +++ b/docs/v2/v2/schema_builder/queries/mysql/mysql_query_type.html @@ -67,9 +67,9 @@-diff --git a/docs/v2/v2/query_builder/models/sqlite/sqlite_types.html b/docs/v2/v2/query_builder/models/sqlite/sqlite_types.html index ce055ee7..bd697d9a 100644 --- a/docs/v2/v2/query_builder/models/sqlite/sqlite_types.html +++ b/docs/v2/v2/query_builder/models/sqlite/sqlite_types.html @@ -54,30 +54,30 @@- +
proc sum(self: SqliteQuery; column: string): Future[Option[float]] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, - ReadDbEffect], forbids: [].}++ proc select(self: SqliteConnections; columnsArg: varargs[string]): SqliteQuery {. + ...raises: [], tags: [], forbids: [].}- @@ -795,8 +320,8 @@
Procs
-diff --git a/docs/v2/v2/query_builder/models/sqlite/sqlite_query.idx b/docs/v2/v2/query_builder/models/sqlite/sqlite_query.idx index bd215028..98c2e79d 100644 --- a/docs/v2/v2/query_builder/models/sqlite/sqlite_query.idx +++ b/docs/v2/v2/query_builder/models/sqlite/sqlite_query.idx @@ -1,73 +1,32 @@ nimTitle sqlite_query v2/query_builder/models/sqlite/sqlite_query.html module src/allographer/v2/query_builder/models/sqlite/sqlite_query 0 -nim table v2/query_builder/models/sqlite/sqlite_query.html#table,SqliteQuery,string proc table(self: SqliteQuery; tableArg: string): SqliteQuery 15 -nim `distinct` v2/query_builder/models/sqlite/sqlite_query.html#distinct,SqliteQuery proc `distinct`(self: SqliteQuery): SqliteQuery 20 -nim join v2/query_builder/models/sqlite/sqlite_query.html#join,SqliteQuery,string,string,string,string proc join(self: SqliteQuery; table: string; column1: string; symbol: string;\n column2: string): SqliteQuery 26 -nim leftJoin v2/query_builder/models/sqlite/sqlite_query.html#leftJoin,SqliteQuery,string,string,string,string proc leftJoin(self: SqliteQuery; table: string; column1: string; symbol: string;\n column2: string): SqliteQuery 45 -nim where v2/query_builder/models/sqlite/sqlite_query.html#where,SqliteQuery,string,string, proc where(self: SqliteQuery; column: string; symbol: string;\n value: string | int | float): SqliteQuery 67 -nim where v2/query_builder/models/sqlite/sqlite_query.html#where,SqliteQuery,string,string,bool proc where(self: SqliteQuery; column: string; symbol: string; value: bool): SqliteQuery 94 -nim where v2/query_builder/models/sqlite/sqlite_query.html#where,SqliteQuery,string,string,_2 proc where(self: SqliteQuery; column: string; symbol: string; value: nil.type): SqliteQuery 121 -nim orWhere v2/query_builder/models/sqlite/sqlite_query.html#orWhere,SqliteQuery,string,string, proc orWhere(self: SqliteQuery; column: string; symbol: string;\n value: string | int | float | bool): SqliteQuery 145 -nim orWhere v2/query_builder/models/sqlite/sqlite_query.html#orWhere,SqliteQuery,string,string,_2 proc orWhere(self: SqliteQuery; column: string; symbol: string; value: nil.type): SqliteQuery 171 -nim whereBetween v2/query_builder/models/sqlite/sqlite_query.html#whereBetween,SqliteQuery,string,array[,] proc whereBetween(self: SqliteQuery; column: string; width: array[2, int | float]): SqliteQuery 192 -nim whereBetween v2/query_builder/models/sqlite/sqlite_query.html#whereBetween,SqliteQuery,string,array[,string] proc whereBetween(self: SqliteQuery; column: string; width: array[2, string]): SqliteQuery 205 -nim whereNotBetween v2/query_builder/models/sqlite/sqlite_query.html#whereNotBetween,SqliteQuery,string,array[,] proc whereNotBetween(self: SqliteQuery; column: string; width: array[2, int | float]): SqliteQuery 218 -nim whereNotBetween v2/query_builder/models/sqlite/sqlite_query.html#whereNotBetween,SqliteQuery,string,array[,string] proc whereNotBetween(self: SqliteQuery; column: string; width: array[2, string]): SqliteQuery 231 -nim whereIn v2/query_builder/models/sqlite/sqlite_query.html#whereIn,SqliteQuery,string,seq[] proc whereIn(self: SqliteQuery; column: string; width: seq[int | float | string]): SqliteQuery 244 -nim whereNotIn v2/query_builder/models/sqlite/sqlite_query.html#whereNotIn,SqliteQuery,string,seq[] proc whereNotIn(self: SqliteQuery; column: string; width: seq[int | float | string]): SqliteQuery 258 -nim whereNull v2/query_builder/models/sqlite/sqlite_query.html#whereNull,SqliteQuery,string proc whereNull(self: SqliteQuery; column: string): SqliteQuery 272 -nim groupBy v2/query_builder/models/sqlite/sqlite_query.html#groupBy,SqliteQuery,string proc groupBy(self: SqliteQuery; column: string): SqliteQuery 284 -nim having v2/query_builder/models/sqlite/sqlite_query.html#having,SqliteQuery,string,string, proc having(self: SqliteQuery; column: string; symbol: string;\n value: string | int | float | bool): SqliteQuery 292 -nim having v2/query_builder/models/sqlite/sqlite_query.html#having,SqliteQuery,string,string,_2 proc having(self: SqliteQuery; column: string; symbol: string; value: nil.type): SqliteQuery 318 -nim orderBy v2/query_builder/models/sqlite/sqlite_query.html#orderBy,SqliteQuery,string,Order proc orderBy(self: SqliteQuery; column: string; order: Order): SqliteQuery 342 -nim limit v2/query_builder/models/sqlite/sqlite_query.html#limit,SqliteQuery,int proc limit(self: SqliteQuery; num: int): SqliteQuery 356 -nim offset v2/query_builder/models/sqlite/sqlite_query.html#offset,SqliteQuery,int proc offset(self: SqliteQuery; num: int): SqliteQuery 361 -nim get v2/query_builder/models/sqlite/sqlite_query.html#get,SqliteQuery proc get(self: SqliteQuery): Future[seq[JsonNode]] 826 -nim first v2/query_builder/models/sqlite/sqlite_query.html#first,SqliteQuery proc first(self: SqliteQuery): Future[Option[JsonNode]] 837 -nim find v2/query_builder/models/sqlite/sqlite_query.html#find,SqliteQuery,string,string proc find(self: SqliteQuery; id: string; key = "id"): Future[Option[JsonNode]] 848 -nim find v2/query_builder/models/sqlite/sqlite_query.html#find,SqliteQuery,int,string proc find(self: SqliteQuery; id: int; key = "id"): Future[Option[JsonNode]] 860 -nim getPlain v2/query_builder/models/sqlite/sqlite_query.html#getPlain,SqliteQuery proc getPlain(self: SqliteQuery): Future[seq[seq[string]]] 865 -nim firstPlain v2/query_builder/models/sqlite/sqlite_query.html#firstPlain,SqliteQuery proc firstPlain(self: SqliteQuery): Future[seq[string]] 876 -nim findPlain v2/query_builder/models/sqlite/sqlite_query.html#findPlain,SqliteQuery,string,string proc findPlain(self: SqliteQuery; id: string; key = "id"): Future[seq[string]] 887 -nim findPlain v2/query_builder/models/sqlite/sqlite_query.html#findPlain,SqliteQuery,int,string proc findPlain(self: SqliteQuery; id: int; key = "id"): Future[seq[string]] 899 -nim get v2/query_builder/models/sqlite/sqlite_query.html#get,SqliteQuery,typedesc[T] proc get[T](self: SqliteQuery; typ: typedesc[T]): Future[seq[T]] 904 -nim first v2/query_builder/models/sqlite/sqlite_query.html#first,SqliteQuery,typedesc[T] proc first[T](self: SqliteQuery; typ: typedesc[T]): Future[Option[T]] 917 -nim find v2/query_builder/models/sqlite/sqlite_query.html#find,SqliteQuery,string,typedesc[T],string proc find[T](self: SqliteQuery; id: string; typ: typedesc[T]; key = "id"): Future[\n Option[T]] 932 -nim find v2/query_builder/models/sqlite/sqlite_query.html#find,SqliteQuery,int,typedesc[T],string proc find[T](self: SqliteQuery; id: int; typ: typedesc[T]; key = "id"): Future[\n Option[T]] 948 -nim insert v2/query_builder/models/sqlite/sqlite_query.html#insert,SqliteQuery,JsonNode proc insert(self: SqliteQuery; items: JsonNode): owned(Future[void]) 953 -nim insert v2/query_builder/models/sqlite/sqlite_query.html#insert,SqliteQuery,seq[JsonNode] proc insert(self: SqliteQuery; items: seq[JsonNode]): owned(Future[void]) 959 -nim insertId v2/query_builder/models/sqlite/sqlite_query.html#insertId,SqliteQuery,JsonNode,string proc insertId(self: SqliteQuery; items: JsonNode; key = "id"): Future[string] 965 -nim insertId v2/query_builder/models/sqlite/sqlite_query.html#insertId,SqliteQuery,seq[JsonNode],string proc insertId(self: SqliteQuery; items: seq[JsonNode]; key = "id"): Future[\n seq[string]] 971 -nim update v2/query_builder/models/sqlite/sqlite_query.html#update,SqliteQuery,JsonNode proc update(self: SqliteQuery; items: JsonNode): owned(Future[void]) 980 -nim delete v2/query_builder/models/sqlite/sqlite_query.html#delete,SqliteQuery proc delete(self: SqliteQuery): owned(Future[void]) 986 -nim delete v2/query_builder/models/sqlite/sqlite_query.html#delete,SqliteQuery,int,string proc delete(self: SqliteQuery; id: int; key = "id"): owned(Future[void]) 992 -nim columns v2/query_builder/models/sqlite/sqlite_query.html#columns,SqliteQuery proc columns(self: SqliteQuery): Future[seq[string]] 999 -nim count v2/query_builder/models/sqlite/sqlite_query.html#count,SqliteQuery proc count(self: SqliteQuery): Future[int] 1005 -nim min v2/query_builder/models/sqlite/sqlite_query.html#min,SqliteQuery,string proc min(self: SqliteQuery; column: string): Future[Option[string]] 1015 -nim max v2/query_builder/models/sqlite/sqlite_query.html#max,SqliteQuery,string proc max(self: SqliteQuery; column: string): Future[Option[string]] 1031 -nim avg v2/query_builder/models/sqlite/sqlite_query.html#avg,SqliteQuery,string proc avg(self: SqliteQuery; column: string): Future[Option[float]] 1047 -nim sum v2/query_builder/models/sqlite/sqlite_query.html#sum,SqliteQuery,string proc sum(self: SqliteQuery; column: string): Future[Option[float]] 1057 -nim begin v2/query_builder/models/sqlite/sqlite_query.html#begin,SqliteConnections proc begin(self: SqliteConnections): owned(Future[void]) 1067 -nim rollback v2/query_builder/models/sqlite/sqlite_query.html#rollback,SqliteConnections proc rollback(self: SqliteConnections): owned(Future[void]) 1072 -nim commit v2/query_builder/models/sqlite/sqlite_query.html#commit,SqliteConnections proc commit(self: SqliteConnections): owned(Future[void]) 1077 -nim get v2/query_builder/models/sqlite/sqlite_query.html#get,RawSqliteQuery proc get(self: RawSqliteQuery): Future[seq[JsonNode]] 1082 -nim getPlain v2/query_builder/models/sqlite/sqlite_query.html#getPlain,RawSqliteQuery proc getPlain(self: RawSqliteQuery): Future[seq[seq[string]]] 1088 -nim exec v2/query_builder/models/sqlite/sqlite_query.html#exec,RawSqliteQuery proc exec(self: RawSqliteQuery): owned(Future[void]) 1094 -nim first v2/query_builder/models/sqlite/sqlite_query.html#first,RawSqliteQuery proc first(self: RawSqliteQuery): Future[Option[JsonNode]] 1100 -nim firstPlain v2/query_builder/models/sqlite/sqlite_query.html#firstPlain,RawSqliteQuery proc firstPlain(self: RawSqliteQuery): Future[seq[string]] 1106 -nim seeder v2/query_builder/models/sqlite/sqlite_query.html#seeder.t,SqliteConnections,string,untyped template seeder(rdb: SqliteConnections; tableName: string; body: untyped): untyped 1112 -nim seeder v2/query_builder/models/sqlite/sqlite_query.html#seeder.t,SqliteConnections,string,string,untyped template seeder(rdb: SqliteConnections; tableName, column: string; body: untyped): untyped 1119 -nimgrp firstplain v2/query_builder/models/sqlite/sqlite_query.html#firstPlain-procs-all proc 876 -nimgrp findplain v2/query_builder/models/sqlite/sqlite_query.html#findPlain-procs-all proc 887 -nimgrp wherenotbetween v2/query_builder/models/sqlite/sqlite_query.html#whereNotBetween-procs-all proc 218 -nimgrp wherebetween v2/query_builder/models/sqlite/sqlite_query.html#whereBetween-procs-all proc 192 -nimgrp having v2/query_builder/models/sqlite/sqlite_query.html#having-procs-all proc 292 -nimgrp orwhere v2/query_builder/models/sqlite/sqlite_query.html#orWhere-procs-all proc 145 -nimgrp first v2/query_builder/models/sqlite/sqlite_query.html#first-procs-all proc 837 -nimgrp get v2/query_builder/models/sqlite/sqlite_query.html#get-procs-all proc 826 -nimgrp insertid v2/query_builder/models/sqlite/sqlite_query.html#insertId-procs-all proc 965 -nimgrp insert v2/query_builder/models/sqlite/sqlite_query.html#insert-procs-all proc 953 -nimgrp where v2/query_builder/models/sqlite/sqlite_query.html#where-procs-all proc 67 -nimgrp delete v2/query_builder/models/sqlite/sqlite_query.html#delete-procs-all proc 986 -nimgrp getplain v2/query_builder/models/sqlite/sqlite_query.html#getPlain-procs-all proc 865 -nimgrp find v2/query_builder/models/sqlite/sqlite_query.html#find-procs-all proc 848 -nimgrp seeder v2/query_builder/models/sqlite/sqlite_query.html#seeder-templates-all template 1112 +nim select v2/query_builder/models/sqlite/sqlite_query.html#select,SqliteConnections,varargs[string] proc select(self: SqliteConnections; columnsArg: varargs[string]): SqliteQuery 11 +nim table v2/query_builder/models/sqlite/sqlite_query.html#table,SqliteConnections,string proc table(self: SqliteConnections; tableArg: string): SqliteQuery 31 +nim table v2/query_builder/models/sqlite/sqlite_query.html#table,SqliteQuery,string proc table(self: SqliteQuery; tableArg: string): SqliteQuery 47 +nim `distinct` v2/query_builder/models/sqlite/sqlite_query.html#distinct,SqliteQuery proc `distinct`(self: SqliteQuery): SqliteQuery 52 +nim join v2/query_builder/models/sqlite/sqlite_query.html#join,SqliteQuery,string,string,string,string proc join(self: SqliteQuery; table: string; column1: string; symbol: string;\n column2: string): SqliteQuery 58 +nim leftJoin v2/query_builder/models/sqlite/sqlite_query.html#leftJoin,SqliteQuery,string,string,string,string proc leftJoin(self: SqliteQuery; table: string; column1: string; symbol: string;\n column2: string): SqliteQuery 77 +nim where v2/query_builder/models/sqlite/sqlite_query.html#where,SqliteQuery,string,string, proc where(self: SqliteQuery; column: string; symbol: string;\n value: string | int | float): SqliteQuery 99 +nim where v2/query_builder/models/sqlite/sqlite_query.html#where,SqliteQuery,string,string,bool proc where(self: SqliteQuery; column: string; symbol: string; value: bool): SqliteQuery 126 +nim where v2/query_builder/models/sqlite/sqlite_query.html#where,SqliteQuery,string,string,_2 proc where(self: SqliteQuery; column: string; symbol: string; value: nil.type): SqliteQuery 153 +nim orWhere v2/query_builder/models/sqlite/sqlite_query.html#orWhere,SqliteQuery,string,string, proc orWhere(self: SqliteQuery; column: string; symbol: string;\n value: string | int | float | bool): SqliteQuery 177 +nim orWhere v2/query_builder/models/sqlite/sqlite_query.html#orWhere,SqliteQuery,string,string,_2 proc orWhere(self: SqliteQuery; column: string; symbol: string; value: nil.type): SqliteQuery 203 +nim whereBetween v2/query_builder/models/sqlite/sqlite_query.html#whereBetween,SqliteQuery,string,array[,] proc whereBetween(self: SqliteQuery; column: string; width: array[2, int | float]): SqliteQuery 224 +nim whereBetween v2/query_builder/models/sqlite/sqlite_query.html#whereBetween,SqliteQuery,string,array[,string] proc whereBetween(self: SqliteQuery; column: string; width: array[2, string]): SqliteQuery 237 +nim whereNotBetween v2/query_builder/models/sqlite/sqlite_query.html#whereNotBetween,SqliteQuery,string,array[,] proc whereNotBetween(self: SqliteQuery; column: string; width: array[2, int | float]): SqliteQuery 250 +nim whereNotBetween v2/query_builder/models/sqlite/sqlite_query.html#whereNotBetween,SqliteQuery,string,array[,string] proc whereNotBetween(self: SqliteQuery; column: string; width: array[2, string]): SqliteQuery 263 +nim whereIn v2/query_builder/models/sqlite/sqlite_query.html#whereIn,SqliteQuery,string,seq[] proc whereIn(self: SqliteQuery; column: string; width: seq[int | float | string]): SqliteQuery 276 +nim whereNotIn v2/query_builder/models/sqlite/sqlite_query.html#whereNotIn,SqliteQuery,string,seq[] proc whereNotIn(self: SqliteQuery; column: string; width: seq[int | float | string]): SqliteQuery 290 +nim whereNull v2/query_builder/models/sqlite/sqlite_query.html#whereNull,SqliteQuery,string proc whereNull(self: SqliteQuery; column: string): SqliteQuery 304 +nim groupBy v2/query_builder/models/sqlite/sqlite_query.html#groupBy,SqliteQuery,string proc groupBy(self: SqliteQuery; column: string): SqliteQuery 316 +nim having v2/query_builder/models/sqlite/sqlite_query.html#having,SqliteQuery,string,string, proc having(self: SqliteQuery; column: string; symbol: string;\n value: string | int | float | bool): SqliteQuery 324 +nim having v2/query_builder/models/sqlite/sqlite_query.html#having,SqliteQuery,string,string,_2 proc having(self: SqliteQuery; column: string; symbol: string; value: nil.type): SqliteQuery 350 +nim orderBy v2/query_builder/models/sqlite/sqlite_query.html#orderBy,SqliteQuery,string,Order proc orderBy(self: SqliteQuery; column: string; order: Order): SqliteQuery 374 +nim limit v2/query_builder/models/sqlite/sqlite_query.html#limit,SqliteQuery,int proc limit(self: SqliteQuery; num: int): SqliteQuery 388 +nim offset v2/query_builder/models/sqlite/sqlite_query.html#offset,SqliteQuery,int proc offset(self: SqliteQuery; num: int): SqliteQuery 393 +nim raw v2/query_builder/models/sqlite/sqlite_query.html#raw,SqliteConnections,string proc raw(self: SqliteConnections; sql: string; arges = newJArray()): RawSqliteQuery 398 +nimgrp wherenotbetween v2/query_builder/models/sqlite/sqlite_query.html#whereNotBetween-procs-all proc 250 +nimgrp wherebetween v2/query_builder/models/sqlite/sqlite_query.html#whereBetween-procs-all proc 224 +nimgrp having v2/query_builder/models/sqlite/sqlite_query.html#having-procs-all proc 324 +nimgrp orwhere v2/query_builder/models/sqlite/sqlite_query.html#orWhere-procs-all proc 177 +nimgrp table v2/query_builder/models/sqlite/sqlite_query.html#table-procs-all proc 31 +nimgrp where v2/query_builder/models/sqlite/sqlite_query.html#where-procs-all proc 99 diff --git a/docs/v2/v2/query_builder/models/sqlite/sqlite_transaction.html b/docs/v2/v2/query_builder/models/sqlite/sqlite_transaction.html index d931e08c..99f13b0a 100644 --- a/docs/v2/v2/query_builder/models/sqlite/sqlite_transaction.html +++ b/docs/v2/v2/query_builder/models/sqlite/sqlite_transaction.html @@ -101,7 +101,7 @@-- proc table(self: SqliteQuery; tableArg: string): SqliteQuery {....raises: [], ++- - proc table(self: SqliteConnections; tableArg: string): SqliteQuery {....raises: [], tags: [], forbids: [].}- @@ -804,14 +329,9 @@
Procs
---- - -- +
proc update(self: SqliteQuery; items: JsonNode): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ReadDbEffect], - forbids: [].}+ proc table(self: SqliteQuery; tableArg: string): SqliteQuery {....raises: [], + tags: [], forbids: [].}- @@ -832,7 +352,7 @@
Procs
- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc where(self: SqliteQuery; column: string; symbol: string; value: bool): SqliteQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- @@ -841,7 +361,7 @@
Procs
-- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc where(self: SqliteQuery; column: string; symbol: string; value: nil.type): SqliteQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- @@ -926,31 +446,6 @@
Procs
-Templates
--
@@ -962,7 +457,7 @@---- -
template seeder(rdb: SqliteConnections; tableName, column: string; body: untyped): untyped- - - The seeder block allows the code in the block to work only when the table or specified column is empty. - -
---- -
template seeder(rdb: SqliteConnections; tableName: string; body: untyped): untyped- - - The seeder block allows the code in the block to work only when the table is empty. - -
-Templates
Templates
src/allographer/v2/query_builder/models/sqlite/sqlite_types
Types
-
- Connection
+- Connections
+- RawSqliteQuery
- SQLite3
-- SqliteConnection
- SqliteConnections
- src/allographer/v2/query_builder/models/sqlite/sqlite_typesProcs
$ -
@@ -117,11 +117,33 @@- `$`(self: SqliteConnections): string
+- `$`(self: SqliteConnections | SqliteQuery | RawSqliteQuery): string
Imports
Types
-
+diff --git a/docs/v2/v2/query_builder/models/surreal/surreal_connections.html b/docs/v2/v2/query_builder/models/surreal/surreal_connections.html deleted file mode 100644 index 7cfbea9a..00000000 --- a/docs/v2/v2/query_builder/models/surreal/surreal_connections.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - -++- +
Connection = ref object + conn*: PSqlite3 + isBusy*: bool + createdAt*: int64 +- + + + +
+++- +
Connections = ref object + conns*: seq[Connection] + timeout*: int +- + + + +
+- RawSqliteQuery = ref object log*: LogSetting - pools*: seq[SqliteConnection] - timeout*: int + pools*: Connections query*: JsonNode queryString*: string placeHolder*: JsonNode @@ -140,25 +162,12 @@Types
- --- -
SqliteConnection = ref object - conn*: PSqlite3 - isBusy*: bool - createdAt*: int64 -- - - -
- @@ -171,8 +180,7 @@
SqliteConnections = ref object log*: LogSetting - pools*: seq[SqliteConnection] - timeout*: int + pools*: Connections isInTransaction*: bool transactionConn*: intTypes
diff --git a/docs/v2/v2/query_builder/models/surreal/query/surreal_generator.html b/docs/v2/v2/query_builder/models/surreal/query/surreal_generator.html index e4d4dc0e..05e8951b 100644 --- a/docs/v2/v2/query_builder/models/surreal/query/surreal_generator.html +++ b/docs/v2/v2/query_builder/models/surreal/query/surreal_generator.html @@ -597,7 +597,7 @@ SqliteQuery = ref object log*: LogSetting - pools*: seq[SqliteConnection] - timeout*: int + pools*: Connections query*: JsonNode queryString*: string placeHolder*: JsonNode @@ -192,8 +200,8 @@Types
Procs
--diff --git a/docs/v2/v2/query_builder/models/sqlite/sqlite_types.idx b/docs/v2/v2/query_builder/models/sqlite/sqlite_types.idx index 7b89a84a..3d323f56 100644 --- a/docs/v2/v2/query_builder/models/sqlite/sqlite_types.idx +++ b/docs/v2/v2/query_builder/models/sqlite/sqlite_types.idx @@ -1,7 +1,8 @@ nimTitle sqlite_types v2/query_builder/models/sqlite/sqlite_types.html module src/allographer/v2/query_builder/models/sqlite/sqlite_types 0 nim SQLite3 v2/query_builder/models/sqlite/sqlite_types.html#SQLite3 object SQLite3 6 -nim SqliteConnection v2/query_builder/models/sqlite/sqlite_types.html#SqliteConnection type SqliteConnection 9 -nim SqliteConnections v2/query_builder/models/sqlite/sqlite_types.html#SqliteConnections type SqliteConnections 16 -nim `$` v2/query_builder/models/sqlite/sqlite_types.html#$,SqliteConnections proc `$`(self: SqliteConnections): string 24 -nim SqliteQuery v2/query_builder/models/sqlite/sqlite_types.html#SqliteQuery type SqliteQuery 29 +nim Connection v2/query_builder/models/sqlite/sqlite_types.html#Connection type Connection 9 +nim Connections v2/query_builder/models/sqlite/sqlite_types.html#Connections type Connections 15 +nim SqliteConnections v2/query_builder/models/sqlite/sqlite_types.html#SqliteConnections type SqliteConnections 21 +nim SqliteQuery v2/query_builder/models/sqlite/sqlite_types.html#SqliteQuery type SqliteQuery 30 nim RawSqliteQuery v2/query_builder/models/sqlite/sqlite_types.html#RawSqliteQuery type RawSqliteQuery 41 +nim `$` v2/query_builder/models/sqlite/sqlite_types.html#$ proc `$`(self: SqliteConnections | SqliteQuery | RawSqliteQuery): string 52 diff --git a/docs/v2/v2/query_builder/models/surreal/query/surreal_builder.html b/docs/v2/v2/query_builder/models/surreal/query/surreal_builder.html index f62246c2..a3b9f0e8 100644 --- a/docs/v2/v2/query_builder/models/surreal/query/surreal_builder.html +++ b/docs/v2/v2/query_builder/models/surreal/query/surreal_builder.html @@ -278,7 +278,7 @@- +
proc `$`(self: SqliteConnections): string {....raises: [], tags: [], forbids: [].}+ proc `$`(self: SqliteConnections | SqliteQuery | RawSqliteQuery): string- @@ -212,7 +220,7 @@
Procs
Procs
Procs
src/allographer/v2/query_builder/models/surreal/surreal_connections - - - - - - - - - - - - --- - - - - - diff --git a/docs/v2/v2/query_builder/models/surreal/surreal_connections.idx b/docs/v2/v2/query_builder/models/surreal/surreal_connections.idx deleted file mode 100644 index 6930bd94..00000000 --- a/docs/v2/v2/query_builder/models/surreal/surreal_connections.idx +++ /dev/null @@ -1,5 +0,0 @@ -nimTitle surreal_connections v2/query_builder/models/surreal/surreal_connections.html module src/allographer/v2/query_builder/models/surreal/surreal_connections 0 -nim `$` v2/query_builder/models/surreal/surreal_connections.html#$ proc `$`(self: SurrealConnections | SurrealQuery): string 6 -nim select v2/query_builder/models/surreal/surreal_connections.html#select,SurrealConnections,varargs[string] proc select(self: SurrealConnections; columnsArg: varargs[string]): SurrealQuery 10 -nim table v2/query_builder/models/surreal/surreal_connections.html#table,SurrealConnections,string proc table(self: SurrealConnections; tableArg: string): SurrealQuery 27 -nim raw v2/query_builder/models/surreal/surreal_connections.html#raw,SurrealConnections,string proc raw(self: SurrealConnections; sql: string; arges = newJArray()): RawSurrealQuery 40 diff --git a/docs/v2/v2/query_builder/models/surreal/surreal_exec.html b/docs/v2/v2/query_builder/models/surreal/surreal_exec.html new file mode 100644 index 00000000..c77ec6a4 --- /dev/null +++ b/docs/v2/v2/query_builder/models/surreal/surreal_exec.html @@ -0,0 +1,480 @@ + + + + + + + +--src/allographer/v2/query_builder/models/surreal/surreal_connections
--- - ---- - -----
-- Index
-- Search: --- Group by: - -- - -- - - - ----Imports
-- surreal_types -
--- -Procs
--
----- -- -
proc `$`(self: SurrealConnections | SurrealQuery): string- - - - -
----- -- -
proc raw(self: SurrealConnections; sql: string; arges = newJArray()): RawSurrealQuery {. - ...raises: [], tags: [], forbids: [].}- - -
-arges is JArray
-can't use BLOB data.
- - ----- -- -
proc select(self: SurrealConnections; columnsArg: varargs[string]): SurrealQuery {. - ...raises: [], tags: [], forbids: [].}- - - - -
--- --- -- -
proc table(self: SurrealConnections; tableArg: string): SurrealQuery {. - ...raises: [], tags: [], forbids: [].}- - - - -
-src/allographer/v2/query_builder/models/surreal/surreal_exec + + + + + + + + + + + + +++ + + + + + diff --git a/docs/v2/v2/query_builder/models/surreal/surreal_exec.idx b/docs/v2/v2/query_builder/models/surreal/surreal_exec.idx new file mode 100644 index 00000000..64fc7db4 --- /dev/null +++ b/docs/v2/v2/query_builder/models/surreal/surreal_exec.idx @@ -0,0 +1,31 @@ +nimTitle surreal_exec v2/query_builder/models/surreal/surreal_exec.html module src/allographer/v2/query_builder/models/surreal/surreal_exec 0 +nim get v2/query_builder/models/surreal/surreal_exec.html#get,SurrealQuery proc get(self: SurrealQuery): Future[seq[JsonNode]] 306 +nim first v2/query_builder/models/surreal/surreal_exec.html#first,SurrealQuery proc first(self: SurrealQuery): Future[Option[JsonNode]] 318 +nim find v2/query_builder/models/surreal/surreal_exec.html#find,SurrealQuery,SurrealId,string proc find(self: SurrealQuery; id: SurrealId; key = "id"): Future[Option[JsonNode]] 329 +nim insert v2/query_builder/models/surreal/surreal_exec.html#insert,SurrealQuery,JsonNode proc insert(self: SurrealQuery; items: JsonNode): owned(Future[void]) 341 +nim insert v2/query_builder/models/surreal/surreal_exec.html#insert,SurrealQuery,seq[JsonNode] proc insert(self: SurrealQuery; items: seq[JsonNode]): owned(Future[void]) 348 +nim insertId v2/query_builder/models/surreal/surreal_exec.html#insertId,SurrealQuery,JsonNode,string proc insertId(self: SurrealQuery; items: JsonNode; key = "id"): Future[SurrealId] 355 +nim insertId v2/query_builder/models/surreal/surreal_exec.html#insertId,SurrealQuery,seq[JsonNode],string proc insertId(self: SurrealQuery; items: seq[JsonNode]; key = "id"): Future[\n seq[SurrealId]] 366 +nim update v2/query_builder/models/surreal/surreal_exec.html#update,SurrealQuery,JsonNode proc update(self: SurrealQuery; items: JsonNode): owned(Future[void]) 377 +nim update v2/query_builder/models/surreal/surreal_exec.html#update,SurrealConnections,SurrealId,JsonNode proc update(self: SurrealConnections; id: SurrealId; items: JsonNode): owned(\n Future[void]) 384 +nim delete v2/query_builder/models/surreal/surreal_exec.html#delete,SurrealQuery proc delete(self: SurrealQuery): owned(Future[void]) 396 +nim delete v2/query_builder/models/surreal/surreal_exec.html#delete,SurrealQuery,SurrealId proc delete(self: SurrealQuery; id: SurrealId): owned(Future[void]) 403 +nim columns v2/query_builder/models/surreal/surreal_exec.html#columns,SurrealQuery proc columns(self: SurrealQuery): Future[seq[string]] 410 +nim count v2/query_builder/models/surreal/surreal_exec.html#count,SurrealQuery proc count(self: SurrealQuery): Future[int] 426 +nim min v2/query_builder/models/surreal/surreal_exec.html#min,SurrealQuery,string,Collation proc min(self: SurrealQuery; column: string; collaction: Collation = None): Future[\n string] 436 +nim max v2/query_builder/models/surreal/surreal_exec.html#max,SurrealQuery,string,Collation proc max(self: SurrealQuery; column: string; collaction: Collation = None): Future[\n string] 454 +nim avg v2/query_builder/models/surreal/surreal_exec.html#avg,SurrealQuery,string proc avg(self: SurrealQuery; column: string): Future[float] 472 +nim sum v2/query_builder/models/surreal/surreal_exec.html#sum,SurrealQuery,string proc sum(self: SurrealQuery; column: string): Future[float] 482 +nim get v2/query_builder/models/surreal/surreal_exec.html#get,RawSurrealQuery proc get(self: RawSurrealQuery): Future[seq[JsonNode]] 492 +nim exec v2/query_builder/models/surreal/surreal_exec.html#exec,RawSurrealQuery proc exec(self: RawSurrealQuery): owned(Future[void]) 498 +nim info v2/query_builder/models/surreal/surreal_exec.html#info,RawSurrealQuery proc info(self: RawSurrealQuery): Future[JsonNode] 512 +nim first v2/query_builder/models/surreal/surreal_exec.html#first,RawSurrealQuery proc first(self: RawSurrealQuery): Future[Option[JsonNode]] 526 +nim seeder v2/query_builder/models/surreal/surreal_exec.html#seeder.t,SurrealConnections,string,untyped template seeder(rdb: SurrealConnections; tableName: string; body: untyped): untyped 532 +nim seeder v2/query_builder/models/surreal/surreal_exec.html#seeder.t,SurrealConnections,string,string,untyped template seeder(rdb: SurrealConnections; tableName, column: string; body: untyped): untyped 539 +nimgrp first v2/query_builder/models/surreal/surreal_exec.html#first-procs-all proc 318 +nimgrp insertid v2/query_builder/models/surreal/surreal_exec.html#insertId-procs-all proc 355 +nimgrp get v2/query_builder/models/surreal/surreal_exec.html#get-procs-all proc 306 +nimgrp insert v2/query_builder/models/surreal/surreal_exec.html#insert-procs-all proc 341 +nimgrp delete v2/query_builder/models/surreal/surreal_exec.html#delete-procs-all proc 396 +nimgrp update v2/query_builder/models/surreal/surreal_exec.html#update-procs-all proc 377 +nimgrp seeder v2/query_builder/models/surreal/surreal_exec.html#seeder-templates-all template 532 diff --git a/docs/v2/v2/query_builder/models/surreal/surreal_open.html b/docs/v2/v2/query_builder/models/surreal/surreal_open.html index 720f3ad4..76169df3 100644 --- a/docs/v2/v2/query_builder/models/surreal/surreal_open.html +++ b/docs/v2/v2/query_builder/models/surreal/surreal_open.html @@ -55,15 +55,15 @@++src/allographer/v2/query_builder/models/surreal/surreal_exec
+++ + ++++ + +++++
+- Index
++ Search: +++ Group by: + +++
+ +- + Imports +
+- +
+++Procs
++ +
+columns +
+- columns(self: SurrealQuery): Future[seq[string]]
+ +count +
+- count(self: SurrealQuery): Future[int]
+ +delete +
+ + +- delete(self: SurrealQuery): owned(Future[void])
+- delete(self: SurrealQuery; id: SurrealId): owned(Future[void])
+ +first +
+- first(self: RawSurrealQuery): Future[Option[JsonNode]]
+- first(self: SurrealQuery): Future[Option[JsonNode]]
+ +get +
+ +- get(self: RawSurrealQuery): Future[seq[JsonNode]]
+- get(self: SurrealQuery): Future[seq[JsonNode]]
+ +insert +
+ + + + + + +- insert(self: SurrealQuery; items: JsonNode): owned(Future[void])
+- insert(self: SurrealQuery; items: seq[JsonNode]): owned(Future[void])
+ +- + +
+ ++ + + + ++++Imports
+ +++Procs
++
+++++ +- +
proc avg(self: SurrealQuery; column: string): Future[float] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++ +- +
proc columns(self: SurrealQuery): Future[seq[string]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++ +- +
proc count(self: SurrealQuery): Future[int] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++- +
proc delete(self: SurrealQuery): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + https://surrealdb.com/docs/surrealql/statements/delete + +
+++ +- +
proc delete(self: SurrealQuery; id: SurrealId): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + https://surrealdb.com/docs/surrealql/statements/delete + +
+++++ +- +
proc exec(self: RawSurrealQuery): owned(Future[void]) {....stackTrace: false, + raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, + ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + +
+It is only used with raw()
+ + + + +++++ +- +
proc find(self: SurrealQuery; id: SurrealId; key = "id"): Future[ + Option[JsonNode]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, + TimeEffect], forbids: [].}- + + + +
+++++- +
proc first(self: RawSurrealQuery): Future[Option[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + It is only used with raw() + +
+++ +- +
proc first(self: SurrealQuery): Future[Option[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++++- +
proc get(self: RawSurrealQuery): Future[seq[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + It is only used with raw() + +
+++ +- +
proc get(self: SurrealQuery): Future[seq[JsonNode]] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + https://surrealdb.com/docs/surrealql/statements/select + +
+++++ +- +
proc info(self: RawSurrealQuery): Future[JsonNode] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + +
+Get all response.
+ + + + +++++- +
proc insert(self: SurrealQuery; items: JsonNode): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + https://surrealdb.com/docs/surrealql/statements/insert + +
+++ +- +
proc insert(self: SurrealQuery; items: seq[JsonNode]): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + https://surrealdb.com/docs/surrealql/statements/insert + +
+++++- +
proc insertId(self: SurrealQuery; items: JsonNode; key = "id"): Future[SurrealId] {. + ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + https://surrealdb.com/docs/surrealql/statements/insert + +
+++ +- +
proc insertId(self: SurrealQuery; items: seq[JsonNode]; key = "id"): Future[ + seq[SurrealId]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, + TimeEffect], forbids: [].}- + + + +
+++++ +- +
proc max(self: SurrealQuery; column: string; collaction: Collation = None): Future[ + string] {....stackTrace: false, raises: [Exception, ValueError], tags: [ + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, + TimeEffect], forbids: [].}- + + = ORDER BY {column} {collaction} DESC LIMIT 1 + +
+++++ +- +
proc min(self: SurrealQuery; column: string; collaction: Collation = None): Future[ + string] {....stackTrace: false, raises: [Exception, ValueError], tags: [ + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, + TimeEffect], forbids: [].}- + + = ORDER BY {column} {collaction} ASC LIMIT 1 + +
+++++ +- +
proc sum(self: SurrealQuery; column: string): Future[float] {....stackTrace: false, + raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + + +
+++ +++- +
proc update(self: SurrealConnections; id: SurrealId; items: JsonNode): owned( + Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect, + WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], + forbids: [].}- + + https://surrealdb.com/docs/surrealql/statements/update + +
+++ +- +
proc update(self: SurrealQuery; items: JsonNode): owned(Future[void]) {. + ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- + + https://surrealdb.com/docs/surrealql/statements/update + +
+++ +Templates
++
+++ +++- +
template seeder(rdb: SurrealConnections; tableName, column: string; + body: untyped): untyped- + + The seeder block allows the code in the block to work only when the table or specified column is empty. + +
+++ +- +
template seeder(rdb: SurrealConnections; tableName: string; body: untyped): untyped- + + The seeder block allows the code in the block to work only when the table is empty. + +
+src/allographer/v2/query_builder/models/surreal/surreal_open
Procs
dbOpen -
@@ -89,10 +89,10 @@- dbOpen(__2818572307: type SurrealDB; namespace: string = ""; + host: string = ""; port: int = 0; maxConnections: int = 1; timeout = 30; + shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): Future[ + SurrealConnections]">dbOpen(__2835349523: type SurrealDB; namespace: string = ""; database: string = ""; user: string = ""; password: string = ""; - host: string = ""; port: int32 = 0; maxConnections: int = 1; - timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false; - logDir = ""): Future[SurrealConnections]
+ host: string = ""; port: int = 0; maxConnections: int = 1; timeout = 30; + shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): Future[ + SurrealConnections]Imports
Procs
-diff --git a/docs/v2/v2/schema_builder/queries/mysql/create_table.html b/docs/v2/v2/schema_builder/queries/mysql/create_table.html index 01a39220..a2e1b947 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/create_table.html +++ b/docs/v2/v2/schema_builder/queries/mysql/create_table.html @@ -82,10 +82,10 @@-diff --git a/docs/v2/v2/query_builder/models/surreal/surreal_open.idx b/docs/v2/v2/query_builder/models/surreal/surreal_open.idx index b2661f86..ff02df9c 100644 --- a/docs/v2/v2/query_builder/models/surreal/surreal_open.idx +++ b/docs/v2/v2/query_builder/models/surreal/surreal_open.idx @@ -1,2 +1,2 @@ nimTitle surreal_open v2/query_builder/models/surreal/surreal_open.html module src/allographer/v2/query_builder/models/surreal/surreal_open 0 -nim dbOpen v2/query_builder/models/surreal/surreal_open.html#dbOpen,typeSurrealDB,string,string,string,string,string,int32,int,int,string proc dbOpen(__2818572307: type SurrealDB; namespace: string = "";\n database: string = ""; user: string = ""; password: string = "";\n host: string = ""; port: int32 = 0; maxConnections: int = 1;\n timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false;\n logDir = ""): Future[SurrealConnections] 15 +nim dbOpen v2/query_builder/models/surreal/surreal_open.html#dbOpen,typeSurrealDB,string,string,string,string,string,int,int,int,string proc dbOpen(__2835349523: type SurrealDB; namespace: string = "";\n database: string = ""; user: string = ""; password: string = "";\n host: string = ""; port: int = 0; maxConnections: int = 1; timeout = 30;\n shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): Future[\n SurrealConnections] 15 diff --git a/docs/v2/v2/query_builder/models/surreal/surreal_query.html b/docs/v2/v2/query_builder/models/surreal/surreal_query.html index 88495d17..f0bcd998 100644 --- a/docs/v2/v2/query_builder/models/surreal/surreal_query.html +++ b/docs/v2/v2/query_builder/models/surreal/surreal_query.html @@ -54,48 +54,13 @@ proc dbOpen(__2818572307: type SurrealDB; namespace: string = ""; ++ proc dbOpen(__2835349523: type SurrealDB; namespace: string = ""; database: string = ""; user: string = ""; password: string = ""; - host: string = ""; port: int32 = 0; maxConnections: int = 1; + host: string = ""; port: int = 0; maxConnections: int = 1; timeout = 30; shouldDisplayLog = false; shouldOutputLogFile = false; logDir = ""): Future[SurrealConnections] {....stackTrace: false.}- @@ -113,7 +113,7 @@
Procs
src/allographer/v2/query_builder/models/surreal/surreal_query<
- -Procs
- -
columns -
-- columns(self: SurrealQuery): Future[seq[string]]
- -count -
-- count(self: SurrealQuery): Future[int]
- -delete -
-- delete(self: SurrealQuery): owned(Future[void])
-- delete(self: SurrealQuery; id: SurrealId): owned(Future[void])
- -distinct +
distinct
- - -- `distinct`(self: SurrealQuery): SurrealQuery
-first -
-- first(self: RawSurrealQuery): Future[Option[JsonNode]]
-- first(self: SurrealQuery): Future[Option[JsonNode]]
- -get -
- get(self: RawSurrealQuery): Future[seq[JsonNode]]
-- get(self: SurrealQuery): Future[seq[JsonNode]]
-groupBy
- -- groupBy(self: SurrealQuery; column: string): SurrealQuery
@@ -107,38 +72,10 @@src/allographer/v2/query_builder/models/surreal/surreal_query< value: bool | int | float | string): SurrealQuery
- having(self: SurrealQuery; column: string; symbol: string; value: nil.type): SurrealQuery
-insert -
-- insert(self: SurrealQuery; items: JsonNode): owned(Future[void])
-- insert(self: SurrealQuery; items: seq[JsonNode]): owned(Future[void])
- -insertId -
- -- insertId(self: SurrealQuery; items: JsonNode; key = "id"): Future[SurrealId]
-- insertId(self: SurrealQuery; items: seq[JsonNode]; key = "id"): Future[ - seq[SurrealId]]
-orderBy
-- orderBy(self: SurrealQuery; column: string; collation: Collation; order: Order): SurrealQuery
@@ -156,23 +93,21 @@src/allographer/v2/query_builder/models/surreal/surreal_query<
- parallel(self: SurrealQuery): SurrealQuery
start -
- start(self: SurrealQuery; num: int): SurrealQuery
+ -sum -
- sum(self: SurrealQuery; column: string): Future[float]
+ -table -
- table(self: SurrealQuery; tableArg: string): SurrealQuery
+ -update -
- update(self: SurrealConnections; id: SurrealId; items: JsonNode): owned( - Future[void])
-- update(self: SurrealQuery; items: JsonNode): owned(Future[void])
+table +
- table(self: SurrealConnections; tableArg: string): SurrealQuery
+- table(self: SurrealQuery; tableArg: string): SurrealQuery
where @@ -201,19 +136,6 @@
-src/allographer/v2/query_builder/models/surreal/surreal_query< - -
- -
-Templates
--
@@ -231,76 +153,13 @@src/allographer/v2/query_builder/models/surreal/surreal_query<
Procs
-
---- -- -
proc avg(self: SurrealQuery; column: string): Future[float] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
----- -- -
proc columns(self: SurrealQuery): Future[seq[string]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
----- -- -
proc count(self: SurrealQuery): Future[int] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
------ -
proc delete(self: SurrealQuery): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - https://surrealdb.com/docs/surrealql/statements/delete - -
--- -- -
proc delete(self: SurrealQuery; id: SurrealId): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - https://surrealdb.com/docs/surrealql/statements/delete - -
-+--- -- @@ -308,23 +167,6 @@
proc `distinct`(self: SurrealQuery): SurrealQuery {....raises: [], tags: [], forbids: [].}Procs
- ----@@ -340,66 +182,6 @@- -
proc exec(self: RawSurrealQuery): owned(Future[void]) {....stackTrace: false, - raises: [Exception], tags: [RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - -
It is only used with raw()
- - - -Procs
---- -- -
proc find(self: SurrealQuery; id: SurrealId; key = "id"): Future[ - Option[JsonNode]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - TimeEffect], forbids: [].}- - - - -
------ -
proc first(self: RawSurrealQuery): Future[Option[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - It is only used with raw() - -
--- -- -
proc first(self: SurrealQuery): Future[Option[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - - -
----- -
proc get(self: RawSurrealQuery): Future[seq[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - It is only used with raw() - -
---- -
proc get(self: SurrealQuery): Future[seq[JsonNode]] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - https://surrealdb.com/docs/surrealql/statements/select - -
--@@ -425,71 +207,7 @@Procs
- -- -
proc having(self: SurrealQuery; column: string; symbol: string; value: nil.type): SurrealQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- - - - -
----- -- -
proc info(self: RawSurrealQuery): Future[JsonNode] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - -
-Get all response.
- - - - ------ -
proc insert(self: SurrealQuery; items: JsonNode): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - https://surrealdb.com/docs/surrealql/statements/insert - -
--- -- -
proc insert(self: SurrealQuery; items: seq[JsonNode]): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}- - - https://surrealdb.com/docs/surrealql/statements/insert - -
------ -
proc insertId(self: SurrealQuery; items: JsonNode; key = "id"): Future[SurrealId] {. - ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}- - - https://surrealdb.com/docs/surrealql/statements/insert - -
---- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc insertId(self: SurrealQuery; items: seq[JsonNode]; key = "id"): Future[ - seq[SurrealId]] {....stackTrace: false, raises: [Exception, ValueError], tags: [ - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - TimeEffect], forbids: [].}- @@ -509,34 +227,6 @@
Procs
---- -- -
proc max(self: SurrealQuery; column: string; collaction: Collation = None): Future[ - string] {....stackTrace: false, raises: [Exception, ValueError], tags: [ - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - TimeEffect], forbids: [].}- - - = ORDER BY {column} {collaction} DESC LIMIT 1 - -
----- -
proc min(self: SurrealQuery; column: string; collaction: Collation = None): Future[ - string] {....stackTrace: false, raises: [Exception, ValueError], tags: [ - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - TimeEffect], forbids: [].}- - - = ORDER BY {column} {collaction} ASC LIMIT 1 - -
--@@ -572,7 +262,7 @@Procs
- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc orWhere(self: SurrealQuery; column: string; symbol: string; value: nil.type): SurrealQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- @@ -593,23 +283,24 @@
Procs
-diff --git a/docs/v2/v2/schema_builder/queries/mysql/add_column.html b/docs/v2/v2/schema_builder/queries/mysql/add_column.html index d830a3d9..4f5ce7fc 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/add_column.html +++ b/docs/v2/v2/schema_builder/queries/mysql/add_column.html @@ -82,10 +82,10 @@-- +
proc start(self: SurrealQuery; num: int): SurrealQuery {....raises: [], tags: [], - forbids: [].}+-+ proc raw(self: SurrealConnections; sql: string; arges = newJArray()): RawSurrealQuery {. + ...raises: [], tags: [], forbids: [].}- - +
arges is JArray
+can't use BLOB data.
+-diff --git a/docs/v2/v2/schema_builder/queries/mariadb/sub/create_column_query.html b/docs/v2/v2/schema_builder/queries/mariadb/sub/create_column_query.html index 76d13539..b99d3485 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/sub/create_column_query.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/sub/create_column_query.html @@ -150,7 +150,7 @@-- +
proc sum(self: SurrealQuery; column: string): Future[float] {....stackTrace: false, - raises: [Exception, ValueError], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}+-+ proc select(self: SurrealConnections; columnsArg: varargs[string]): SurrealQuery {. + ...raises: [], tags: [], forbids: [].}- @@ -618,10 +309,10 @@
Procs
-diff --git a/docs/v2/v2/schema_builder/queries/mariadb/sub/change_column_query.html b/docs/v2/v2/schema_builder/queries/mariadb/sub/change_column_query.html index 282a5bd6..64d504f9 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/sub/change_column_query.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/sub/change_column_query.html @@ -134,7 +134,7 @@-diff --git a/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_type.html b/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_type.html index 79f6e25f..b660f9a3 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_type.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_type.html @@ -67,9 +67,9 @@- +
proc table(self: SurrealQuery; tableArg: string): SurrealQuery {....raises: [], - tags: [], forbids: [].}+-+ proc start(self: SurrealQuery; num: int): SurrealQuery {....raises: [], tags: [], + forbids: [].}- @@ -630,25 +321,22 @@
Procs
-diff --git a/docs/v2/v2/query_builder/models/surreal/surreal_query.idx b/docs/v2/v2/query_builder/models/surreal/surreal_query.idx index 9046aa6e..8d48722f 100644 --- a/docs/v2/v2/query_builder/models/surreal/surreal_query.idx +++ b/docs/v2/v2/query_builder/models/surreal/surreal_query.idx @@ -1,55 +1,29 @@ nimTitle surreal_query v2/query_builder/models/surreal/surreal_query.html module src/allographer/v2/query_builder/models/surreal/surreal_query 0 -nim table v2/query_builder/models/surreal/surreal_query.html#table,SurrealQuery,string proc table(self: SurrealQuery; tableArg: string): SurrealQuery 17 -nim `distinct` v2/query_builder/models/surreal/surreal_query.html#distinct,SurrealQuery proc `distinct`(self: SurrealQuery): SurrealQuery 22 -nim where v2/query_builder/models/surreal/surreal_query.html#where,SurrealQuery,string,string, proc where(self: SurrealQuery; column: string; symbol: string;\n value: bool | int | float | string | SurrealId): SurrealQuery 70 -nim where v2/query_builder/models/surreal/surreal_query.html#where,SurrealQuery,string,string,_2 proc where(self: SurrealQuery; column: string; symbol: string; value: nil.type): SurrealQuery 95 -nim orWhere v2/query_builder/models/surreal/surreal_query.html#orWhere,SurrealQuery,string,string, proc orWhere(self: SurrealQuery; column: string; symbol: string;\n value: bool | int | float | string | SurrealId): SurrealQuery 119 -nim orWhere v2/query_builder/models/surreal/surreal_query.html#orWhere,SurrealQuery,string,string,_2 proc orWhere(self: SurrealQuery; column: string; symbol: string; value: nil.type): SurrealQuery 144 -nim whereBetween v2/query_builder/models/surreal/surreal_query.html#whereBetween,SurrealQuery,string,array[,] proc whereBetween(self: SurrealQuery; column: string; width: array[2, int | float]): SurrealQuery 166 -nim whereNotBetween v2/query_builder/models/surreal/surreal_query.html#whereNotBetween,SurrealQuery,string,array[,] proc whereNotBetween(self: SurrealQuery; column: string; width: array[2, int | float]): SurrealQuery 204 -nim whereIn v2/query_builder/models/surreal/surreal_query.html#whereIn,SurrealQuery,string,seq[] proc whereIn(self: SurrealQuery; column: string; width: seq[int | float | string]): SurrealQuery 240 -nim whereNotIn v2/query_builder/models/surreal/surreal_query.html#whereNotIn,SurrealQuery,string,seq[] proc whereNotIn(self: SurrealQuery; column: string; width: seq[int | float | string]): SurrealQuery 259 -nim whereNull v2/query_builder/models/surreal/surreal_query.html#whereNull,SurrealQuery,string proc whereNull(self: SurrealQuery; column: string): SurrealQuery 278 -nim groupBy v2/query_builder/models/surreal/surreal_query.html#groupBy,SurrealQuery,string proc groupBy(self: SurrealQuery; column: string): SurrealQuery 293 -nim having v2/query_builder/models/surreal/surreal_query.html#having,SurrealQuery,string,string, proc having(self: SurrealQuery; column: string; symbol: string;\n value: bool | int | float | string): SurrealQuery 301 -nim having v2/query_builder/models/surreal/surreal_query.html#having,SurrealQuery,string,string,_2 proc having(self: SurrealQuery; column: string; symbol: string; value: nil.type): SurrealQuery 326 -nim fetch v2/query_builder/models/surreal/surreal_query.html#fetch,SurrealQuery,varargs[string] proc fetch(self: SurrealQuery; columnsArg: varargs[string]): SurrealQuery 350 -nim orderBy v2/query_builder/models/surreal/surreal_query.html#orderBy,SurrealQuery,string,Order proc orderBy(self: SurrealQuery; column: string; order: Order): SurrealQuery 355 -nim orderBy v2/query_builder/models/surreal/surreal_query.html#orderBy,SurrealQuery,string,Collation,Order proc orderBy(self: SurrealQuery; column: string; collation: Collation; order: Order): SurrealQuery 371 -nim limit v2/query_builder/models/surreal/surreal_query.html#limit,SurrealQuery,int proc limit(self: SurrealQuery; num: int): SurrealQuery 387 -nim start v2/query_builder/models/surreal/surreal_query.html#start,SurrealQuery,int proc start(self: SurrealQuery; num: int): SurrealQuery 392 -nim parallel v2/query_builder/models/surreal/surreal_query.html#parallel,SurrealQuery proc parallel(self: SurrealQuery): SurrealQuery 397 -nim get v2/query_builder/models/surreal/surreal_query.html#get,SurrealQuery proc get(self: SurrealQuery): Future[seq[JsonNode]] 706 -nim first v2/query_builder/models/surreal/surreal_query.html#first,SurrealQuery proc first(self: SurrealQuery): Future[Option[JsonNode]] 718 -nim find v2/query_builder/models/surreal/surreal_query.html#find,SurrealQuery,SurrealId,string proc find(self: SurrealQuery; id: SurrealId; key = "id"): Future[Option[JsonNode]] 729 -nim insert v2/query_builder/models/surreal/surreal_query.html#insert,SurrealQuery,JsonNode proc insert(self: SurrealQuery; items: JsonNode): owned(Future[void]) 741 -nim insert v2/query_builder/models/surreal/surreal_query.html#insert,SurrealQuery,seq[JsonNode] proc insert(self: SurrealQuery; items: seq[JsonNode]): owned(Future[void]) 748 -nim insertId v2/query_builder/models/surreal/surreal_query.html#insertId,SurrealQuery,JsonNode,string proc insertId(self: SurrealQuery; items: JsonNode; key = "id"): Future[SurrealId] 755 -nim insertId v2/query_builder/models/surreal/surreal_query.html#insertId,SurrealQuery,seq[JsonNode],string proc insertId(self: SurrealQuery; items: seq[JsonNode]; key = "id"): Future[\n seq[SurrealId]] 766 -nim update v2/query_builder/models/surreal/surreal_query.html#update,SurrealQuery,JsonNode proc update(self: SurrealQuery; items: JsonNode): owned(Future[void]) 777 -nim update v2/query_builder/models/surreal/surreal_query.html#update,SurrealConnections,SurrealId,JsonNode proc update(self: SurrealConnections; id: SurrealId; items: JsonNode): owned(\n Future[void]) 784 -nim delete v2/query_builder/models/surreal/surreal_query.html#delete,SurrealQuery proc delete(self: SurrealQuery): owned(Future[void]) 797 -nim delete v2/query_builder/models/surreal/surreal_query.html#delete,SurrealQuery,SurrealId proc delete(self: SurrealQuery; id: SurrealId): owned(Future[void]) 804 -nim columns v2/query_builder/models/surreal/surreal_query.html#columns,SurrealQuery proc columns(self: SurrealQuery): Future[seq[string]] 811 -nim count v2/query_builder/models/surreal/surreal_query.html#count,SurrealQuery proc count(self: SurrealQuery): Future[int] 827 -nim min v2/query_builder/models/surreal/surreal_query.html#min,SurrealQuery,string,Collation proc min(self: SurrealQuery; column: string; collaction: Collation = None): Future[\n string] 837 -nim max v2/query_builder/models/surreal/surreal_query.html#max,SurrealQuery,string,Collation proc max(self: SurrealQuery; column: string; collaction: Collation = None): Future[\n string] 855 -nim avg v2/query_builder/models/surreal/surreal_query.html#avg,SurrealQuery,string proc avg(self: SurrealQuery; column: string): Future[float] 873 -nim sum v2/query_builder/models/surreal/surreal_query.html#sum,SurrealQuery,string proc sum(self: SurrealQuery; column: string): Future[float] 883 -nim get v2/query_builder/models/surreal/surreal_query.html#get,RawSurrealQuery proc get(self: RawSurrealQuery): Future[seq[JsonNode]] 893 -nim exec v2/query_builder/models/surreal/surreal_query.html#exec,RawSurrealQuery proc exec(self: RawSurrealQuery): owned(Future[void]) 899 -nim info v2/query_builder/models/surreal/surreal_query.html#info,RawSurrealQuery proc info(self: RawSurrealQuery): Future[JsonNode] 913 -nim first v2/query_builder/models/surreal/surreal_query.html#first,RawSurrealQuery proc first(self: RawSurrealQuery): Future[Option[JsonNode]] 927 -nim seeder v2/query_builder/models/surreal/surreal_query.html#seeder.t,SurrealConnections,string,untyped template seeder(rdb: SurrealConnections; tableName: string; body: untyped): untyped 933 -nim seeder v2/query_builder/models/surreal/surreal_query.html#seeder.t,SurrealConnections,string,string,untyped template seeder(rdb: SurrealConnections; tableName, column: string; body: untyped): untyped 940 -nimgrp orderby v2/query_builder/models/surreal/surreal_query.html#orderBy-procs-all proc 355 -nimgrp having v2/query_builder/models/surreal/surreal_query.html#having-procs-all proc 301 -nimgrp orwhere v2/query_builder/models/surreal/surreal_query.html#orWhere-procs-all proc 119 -nimgrp first v2/query_builder/models/surreal/surreal_query.html#first-procs-all proc 718 -nimgrp get v2/query_builder/models/surreal/surreal_query.html#get-procs-all proc 706 -nimgrp insert v2/query_builder/models/surreal/surreal_query.html#insert-procs-all proc 741 -nimgrp insertid v2/query_builder/models/surreal/surreal_query.html#insertId-procs-all proc 755 -nimgrp where v2/query_builder/models/surreal/surreal_query.html#where-procs-all proc 70 -nimgrp delete v2/query_builder/models/surreal/surreal_query.html#delete-procs-all proc 797 -nimgrp update v2/query_builder/models/surreal/surreal_query.html#update-procs-all proc 777 -nimgrp seeder v2/query_builder/models/surreal/surreal_query.html#seeder-templates-all template 933 +nim select v2/query_builder/models/surreal/surreal_query.html#select,SurrealConnections,varargs[string] proc select(self: SurrealConnections; columnsArg: varargs[string]): SurrealQuery 11 +nim table v2/query_builder/models/surreal/surreal_query.html#table,SurrealConnections,string proc table(self: SurrealConnections; tableArg: string): SurrealQuery 27 +nim table v2/query_builder/models/surreal/surreal_query.html#table,SurrealQuery,string proc table(self: SurrealQuery; tableArg: string): SurrealQuery 39 +nim `distinct` v2/query_builder/models/surreal/surreal_query.html#distinct,SurrealQuery proc `distinct`(self: SurrealQuery): SurrealQuery 44 +nim where v2/query_builder/models/surreal/surreal_query.html#where,SurrealQuery,string,string, proc where(self: SurrealQuery; column: string; symbol: string;\n value: bool | int | float | string | SurrealId): SurrealQuery 92 +nim where v2/query_builder/models/surreal/surreal_query.html#where,SurrealQuery,string,string,_2 proc where(self: SurrealQuery; column: string; symbol: string; value: nil.type): SurrealQuery 117 +nim orWhere v2/query_builder/models/surreal/surreal_query.html#orWhere,SurrealQuery,string,string, proc orWhere(self: SurrealQuery; column: string; symbol: string;\n value: bool | int | float | string | SurrealId): SurrealQuery 141 +nim orWhere v2/query_builder/models/surreal/surreal_query.html#orWhere,SurrealQuery,string,string,_2 proc orWhere(self: SurrealQuery; column: string; symbol: string; value: nil.type): SurrealQuery 166 +nim whereBetween v2/query_builder/models/surreal/surreal_query.html#whereBetween,SurrealQuery,string,array[,] proc whereBetween(self: SurrealQuery; column: string; width: array[2, int | float]): SurrealQuery 188 +nim whereNotBetween v2/query_builder/models/surreal/surreal_query.html#whereNotBetween,SurrealQuery,string,array[,] proc whereNotBetween(self: SurrealQuery; column: string; width: array[2, int | float]): SurrealQuery 226 +nim whereIn v2/query_builder/models/surreal/surreal_query.html#whereIn,SurrealQuery,string,seq[] proc whereIn(self: SurrealQuery; column: string; width: seq[int | float | string]): SurrealQuery 262 +nim whereNotIn v2/query_builder/models/surreal/surreal_query.html#whereNotIn,SurrealQuery,string,seq[] proc whereNotIn(self: SurrealQuery; column: string; width: seq[int | float | string]): SurrealQuery 281 +nim whereNull v2/query_builder/models/surreal/surreal_query.html#whereNull,SurrealQuery,string proc whereNull(self: SurrealQuery; column: string): SurrealQuery 300 +nim groupBy v2/query_builder/models/surreal/surreal_query.html#groupBy,SurrealQuery,string proc groupBy(self: SurrealQuery; column: string): SurrealQuery 315 +nim having v2/query_builder/models/surreal/surreal_query.html#having,SurrealQuery,string,string, proc having(self: SurrealQuery; column: string; symbol: string;\n value: bool | int | float | string): SurrealQuery 323 +nim having v2/query_builder/models/surreal/surreal_query.html#having,SurrealQuery,string,string,_2 proc having(self: SurrealQuery; column: string; symbol: string; value: nil.type): SurrealQuery 348 +nim fetch v2/query_builder/models/surreal/surreal_query.html#fetch,SurrealQuery,varargs[string] proc fetch(self: SurrealQuery; columnsArg: varargs[string]): SurrealQuery 372 +nim orderBy v2/query_builder/models/surreal/surreal_query.html#orderBy,SurrealQuery,string,Order proc orderBy(self: SurrealQuery; column: string; order: Order): SurrealQuery 377 +nim orderBy v2/query_builder/models/surreal/surreal_query.html#orderBy,SurrealQuery,string,Collation,Order proc orderBy(self: SurrealQuery; column: string; collation: Collation; order: Order): SurrealQuery 393 +nim limit v2/query_builder/models/surreal/surreal_query.html#limit,SurrealQuery,int proc limit(self: SurrealQuery; num: int): SurrealQuery 409 +nim start v2/query_builder/models/surreal/surreal_query.html#start,SurrealQuery,int proc start(self: SurrealQuery; num: int): SurrealQuery 414 +nim parallel v2/query_builder/models/surreal/surreal_query.html#parallel,SurrealQuery proc parallel(self: SurrealQuery): SurrealQuery 419 +nim raw v2/query_builder/models/surreal/surreal_query.html#raw,SurrealConnections,string proc raw(self: SurrealConnections; sql: string; arges = newJArray()): RawSurrealQuery 441 +nimgrp orderby v2/query_builder/models/surreal/surreal_query.html#orderBy-procs-all proc 377 +nimgrp having v2/query_builder/models/surreal/surreal_query.html#having-procs-all proc 323 +nimgrp orwhere v2/query_builder/models/surreal/surreal_query.html#orWhere-procs-all proc 141 +nimgrp table v2/query_builder/models/surreal/surreal_query.html#table-procs-all proc 27 +nimgrp where v2/query_builder/models/surreal/surreal_query.html#where-procs-all proc 92 diff --git a/docs/v2/v2/query_builder/models/surreal/surreal_types.html b/docs/v2/v2/query_builder/models/surreal/surreal_types.html index 303a577c..10be3916 100644 --- a/docs/v2/v2/query_builder/models/surreal/surreal_types.html +++ b/docs/v2/v2/query_builder/models/surreal/surreal_types.html @@ -54,28 +54,28 @@--- +
proc update(self: SurrealConnections; id: SurrealId; items: JsonNode): owned( - Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect, - WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], - forbids: [].}+- - -+- proc table(self: SurrealConnections; tableArg: string): SurrealQuery {. + ...raises: [], tags: [], forbids: [].}- - https://surrealdb.com/docs/surrealql/statements/update +
-- +
proc update(self: SurrealQuery; items: JsonNode): owned(Future[void]) {. - ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteDirEffect, - ReadDirEffect, ReadIOEffect, WriteIOEffect, TimeEffect], forbids: [].}+@@ -666,7 +354,7 @@ proc table(self: SurrealQuery; tableArg: string): SurrealQuery {....raises: [], + tags: [], forbids: [].}- - https://surrealdb.com/docs/surrealql/statements/update +
Procs
-- + ...raises: [CatchableError, KeyError], tags: [], forbids: [].}
proc where(self: SurrealQuery; column: string; symbol: string; value: nil.type): SurrealQuery {. - ...raises: [Exception, KeyError], tags: [], forbids: [].}- @@ -746,32 +434,6 @@
Procs
-Templates
--
@@ -783,7 +445,7 @@---- -
template seeder(rdb: SurrealConnections; tableName, column: string; - body: untyped): untyped- - - The seeder block allows the code in the block to work only when the table or specified column is empty. - -
---- -
template seeder(rdb: SurrealConnections; tableName: string; body: untyped): untyped- - - The seeder block allows the code in the block to work only when the table is empty. - -
-Templates
src/allographer/v2/query_builder/models/surreal/surreal_types<
Types
-
- Connection
+- Connections
+- RawSurrealQuery
-- SurrealConnection
- SurrealConnections
+ pools*: Connections">SurrealConnections- SurrealDB
- SurrealId
- SurrealQuery
@@ -88,7 +88,7 @@src/allographer/v2/query_builder/models/surreal/surreal_types<
Procs
$ -
@@ -97,12 +97,12 @@- `$`(self: SurrealConnections): string
+- `$`(self: SurrealConnections | SurrealQuery | RawSurrealQuery): string
- `$`(self: SurrealId): string
src/allographer/v2/query_builder/models/surreal/surreal_types<
new -
- new(__4328521756: type SurrealQuery; log: LogSetting; - pools: seq[SurrealConnection]; timeout: int; query: JsonNode): SurrealQuery
-- new(__4328521775: type SurrealId): SurrealId
-- new(__4328521779: type SurrealId; table, id: string): SurrealId
-- new(__4328521785: type SurrealId; rawId: string): SurrealId
+- new(__4362076187: type SurrealQuery; log: LogSetting; pools: Connections; + query: JsonNode): SurrealQuery
+- new(__4362076208: type SurrealId): SurrealId
+- new(__4362076212: type SurrealId; table, id: string): SurrealId
+- new(__4362076218: type SurrealId; rawId: string): SurrealId
rawId @@ -131,14 +131,22 @@
Imports
Types
-
-diff --git a/docs/v2/v2/schema_builder/queries/mariadb/create_table.html b/docs/v2/v2/schema_builder/queries/mariadb/create_table.html index df2fbe76..5d429b80 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/create_table.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/create_table.html @@ -82,10 +82,10 @@ RawSurrealQuery = ref object - log*: LogSetting - pools*: seq[SurrealConnection] +++- +
Connection = object + conn*: SurrealConn + isBusy*: bool + createdAt*: int64 +- + + + +
++- Connections = ref object + conns*: seq[Connection] timeout*: int - query*: JsonNode - queryString*: string - placeHolder*: JsonNode- @@ -146,11 +154,13 @@
Types
- SurrealConnection = object - conn*: SurrealConn - isBusy*: bool - createdAt*: int64 ++diff --git a/docs/v2/v2/schema_builder/queries/mariadb/add_column.html b/docs/v2/v2/schema_builder/queries/mariadb/add_column.html index 6546ce07..7ee9bf2c 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/add_column.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/add_column.html @@ -82,10 +82,10 @@ RawSurrealQuery = ref object + log*: LogSetting + pools*: Connections + query*: JsonNode + queryString*: string + placeHolder*: JsonNode- @@ -161,8 +171,7 @@
Types
SurrealConnections = ref object log*: LogSetting - pools*: seq[SurrealConnection] - timeout*: int + pools*: Connections- @@ -191,8 +200,7 @@
Types
diff --git a/docs/v2/v2/schema_builder/models/table.html b/docs/v2/v2/schema_builder/models/table.html index 4dc72d2b..e28654bb 100644 --- a/docs/v2/v2/schema_builder/models/table.html +++ b/docs/v2/v2/schema_builder/models/table.html @@ -198,7 +198,7 @@ SurrealQuery = ref object log*: LogSetting - pools*: seq[SurrealConnection] - timeout*: int + pools*: Connections query*: JsonNode queryString*: string placeHolder*: JsonNode @@ -210,8 +218,8 @@Types
Procs
--diff --git a/docs/v2/v2/schema_builder/models/column.html b/docs/v2/v2/schema_builder/models/column.html index e29fba4b..d67635a7 100644 --- a/docs/v2/v2/schema_builder/models/column.html +++ b/docs/v2/v2/schema_builder/models/column.html @@ -812,7 +812,7 @@- +
proc `$`(self: SurrealConnections): string {....raises: [], tags: [], forbids: [].}+ proc `$`(self: SurrealConnections | SurrealQuery | RawSurrealQuery): string- @@ -240,9 +248,9 @@
Procs
--diff --git a/docs/v2/v2/query_builder/models/surreal/surreal_types.idx b/docs/v2/v2/query_builder/models/surreal/surreal_types.idx index 7ba51df3..ea6bed48 100644 --- a/docs/v2/v2/query_builder/models/surreal/surreal_types.idx +++ b/docs/v2/v2/query_builder/models/surreal/surreal_types.idx @@ -1,17 +1,18 @@ nimTitle surreal_types v2/query_builder/models/surreal/surreal_types.html module src/allographer/v2/query_builder/models/surreal/surreal_types 0 nim SurrealDB v2/query_builder/models/surreal/surreal_types.html#SurrealDB object SurrealDB 8 -nim SurrealConnection v2/query_builder/models/surreal/surreal_types.html#SurrealConnection object SurrealConnection 11 -nim SurrealConnections v2/query_builder/models/surreal/surreal_types.html#SurrealConnections type SurrealConnections 17 -nim `$` v2/query_builder/models/surreal/surreal_types.html#$,SurrealConnections proc `$`(self: SurrealConnections): string 22 -nim SurrealQuery v2/query_builder/models/surreal/surreal_types.html#SurrealQuery type SurrealQuery 26 -nim new v2/query_builder/models/surreal/surreal_types.html#new,typeSurrealQuery,LogSetting,seq[SurrealConnection],int,JsonNode proc new(__4328521756: type SurrealQuery; log: LogSetting;\n pools: seq[SurrealConnection]; timeout: int; query: JsonNode): SurrealQuery 37 +nim Connection v2/query_builder/models/surreal/surreal_types.html#Connection object Connection 11 +nim Connections v2/query_builder/models/surreal/surreal_types.html#Connections type Connections 17 +nim SurrealConnections v2/query_builder/models/surreal/surreal_types.html#SurrealConnections type SurrealConnections 23 +nim SurrealQuery v2/query_builder/models/surreal/surreal_types.html#SurrealQuery type SurrealQuery 28 +nim new v2/query_builder/models/surreal/surreal_types.html#new,typeSurrealQuery,LogSetting,Connections,JsonNode proc new(__4362076187: type SurrealQuery; log: LogSetting; pools: Connections;\n query: JsonNode): SurrealQuery 38 nim RawSurrealQuery v2/query_builder/models/surreal/surreal_types.html#RawSurrealQuery type RawSurrealQuery 48 -nim SurrealId v2/query_builder/models/surreal/surreal_types.html#SurrealId object SurrealId 57 -nim new v2/query_builder/models/surreal/surreal_types.html#new,typeSurrealId proc new(__4328521775: type SurrealId): SurrealId 62 -nim new v2/query_builder/models/surreal/surreal_types.html#new,typeSurrealId,string,string proc new(__4328521779: type SurrealId; table, id: string): SurrealId 67 -nim new v2/query_builder/models/surreal/surreal_types.html#new,typeSurrealId,string proc new(__4328521785: type SurrealId; rawId: string): SurrealId 80 -nim rawId v2/query_builder/models/surreal/surreal_types.html#rawId,SurrealId proc rawId(self: SurrealId): string 92 -nim `$` v2/query_builder/models/surreal/surreal_types.html#$,SurrealId proc `$`(self: SurrealId): string 100 -nim `%` v2/query_builder/models/surreal/surreal_types.html#%,SurrealId proc `%`(self: SurrealId): JsonNode 104 -nimgrp $ v2/query_builder/models/surreal/surreal_types.html#$-procs-all proc 22 -nimgrp new v2/query_builder/models/surreal/surreal_types.html#new-procs-all proc 37 +nim `$` v2/query_builder/models/surreal/surreal_types.html#$ proc `$`(self: SurrealConnections | SurrealQuery | RawSurrealQuery): string 56 +nim SurrealId v2/query_builder/models/surreal/surreal_types.html#SurrealId object SurrealId 60 +nim new v2/query_builder/models/surreal/surreal_types.html#new,typeSurrealId proc new(__4362076208: type SurrealId): SurrealId 65 +nim new v2/query_builder/models/surreal/surreal_types.html#new,typeSurrealId,string,string proc new(__4362076212: type SurrealId; table, id: string): SurrealId 70 +nim new v2/query_builder/models/surreal/surreal_types.html#new,typeSurrealId,string proc new(__4362076218: type SurrealId; rawId: string): SurrealId 83 +nim rawId v2/query_builder/models/surreal/surreal_types.html#rawId,SurrealId proc rawId(self: SurrealId): string 95 +nim `$` v2/query_builder/models/surreal/surreal_types.html#$,SurrealId proc `$`(self: SurrealId): string 103 +nim `%` v2/query_builder/models/surreal/surreal_types.html#%,SurrealId proc `%`(self: SurrealId): JsonNode 107 +nimgrp $ v2/query_builder/models/surreal/surreal_types.html#$-procs-all proc 56 +nimgrp new v2/query_builder/models/surreal/surreal_types.html#new-procs-all proc 38 diff --git a/docs/v2/v2/schema_builder/enums.html b/docs/v2/v2/schema_builder/enums.html index 0ce3d990..c3475096 100644 --- a/docs/v2/v2/schema_builder/enums.html +++ b/docs/v2/v2/schema_builder/enums.html @@ -163,7 +163,7 @@- +
proc new(__4328521756: type SurrealQuery; log: LogSetting; - pools: seq[SurrealConnection]; timeout: int; query: JsonNode): SurrealQuery+ proc new(__4362076187: type SurrealQuery; log: LogSetting; pools: Connections; + query: JsonNode): SurrealQuery- @@ -250,7 +258,7 @@
Procs
-- +
proc new(__4328521775: type SurrealId): SurrealId proc new(__4362076208: type SurrealId): SurrealId- create empty surreal id @@ -258,7 +266,7 @@
Procs
Types
Procs
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mariadb/change_column.html b/docs/v2/v2/schema_builder/queries/mariadb/change_column.html index c3fa85fb..055d6a1e 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/change_column.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/change_column.html @@ -82,10 +82,10 @@-- +
proc addColumn(self: MariadbSchema; isReset: bool) {. - ...raises: [ValueError, KeyError, DbError, Exception, OSError], tags: [ - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, - WriteIOEffect], forbids: [].} proc addColumn(self: MariadbSchema; isReset: bool) {....raises: [ValueError, + KeyError, DbError, Exception, OSError, CatchableError], tags: [TimeEffect, + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mariadb/create_migration_table.html b/docs/v2/v2/schema_builder/queries/mariadb/create_migration_table.html index e85a688e..54fa3f9f 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/create_migration_table.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/create_migration_table.html @@ -104,7 +104,7 @@-- +
proc changeColumn(self: MariadbSchema; isReset: bool) {. - ...raises: [ValueError, DbError, KeyError, Exception, OSError], tags: [ - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, - WriteIOEffect], forbids: [].} proc changeColumn(self: MariadbSchema; isReset: bool) {....raises: [ValueError, + DbError, KeyError, Exception, OSError, CatchableError], tags: [TimeEffect, + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mariadb/drop_column.html b/docs/v2/v2/schema_builder/queries/mariadb/drop_column.html index 2194458f..8fc730a2 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/drop_column.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/drop_column.html @@ -83,9 +83,9 @@-- +
proc createTable(self: MariadbSchema; isReset: bool) {. - ...raises: [ValueError, KeyError, DbError, Exception, OSError], tags: [ - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, - WriteIOEffect], forbids: [].} proc createTable(self: MariadbSchema; isReset: bool) {....raises: [ValueError, + KeyError, DbError, Exception, OSError, CatchableError], tags: [TimeEffect, + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mariadb/drop_table.html b/docs/v2/v2/schema_builder/queries/mariadb/drop_table.html index 2c46c18c..08bc3ebb 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/drop_table.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/drop_table.html @@ -83,9 +83,9 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc dropColumn(self: MariadbSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_impl.html b/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_impl.html index e24cc7dc..90206c16 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_impl.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_impl.html @@ -102,7 +102,7 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc dropTable(self: MariadbSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
src/allographer/v2/schema_builder/queries/mariadb/mariadb_quer
Procs
new -
@@ -115,7 +115,7 @@- new(__3573547018: type MariadbSchema; rdb: MariadbConnections; table: Table): MariadbSchema
-- new(__3573547024: type MariadbSchema; rdb: MariadbConnections; table: Table; +
- new(__3590324234: type MariadbSchema; rdb: MariadbConnections; table: Table): MariadbSchema
+- new(__3590324240: type MariadbSchema; rdb: MariadbConnections; table: Table; column: Column): MariadbSchema
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_type.idx b/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_type.idx index 71e88ac8..ccc31a77 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_type.idx +++ b/docs/v2/v2/schema_builder/queries/mariadb/mariadb_query_type.idx @@ -1,5 +1,5 @@ nimTitle mariadb_query_type v2/schema_builder/queries/mariadb/mariadb_query_type.html module src/allographer/v2/schema_builder/queries/mariadb/mariadb_query_type 0 nim MariadbSchema v2/schema_builder/queries/mariadb/mariadb_query_type.html#MariadbSchema type MariadbSchema 6 -nim new v2/schema_builder/queries/mariadb/mariadb_query_type.html#new,typeMariadbSchema,MariadbConnections,Table proc new(__3573547018: type MariadbSchema; rdb: MariadbConnections; table: Table): MariadbSchema 11 -nim new v2/schema_builder/queries/mariadb/mariadb_query_type.html#new,typeMariadbSchema,MariadbConnections,Table,Column proc new(__3573547024: type MariadbSchema; rdb: MariadbConnections; table: Table;\n column: Column): MariadbSchema 14 +nim new v2/schema_builder/queries/mariadb/mariadb_query_type.html#new,typeMariadbSchema,MariadbConnections,Table proc new(__3590324234: type MariadbSchema; rdb: MariadbConnections; table: Table): MariadbSchema 11 +nim new v2/schema_builder/queries/mariadb/mariadb_query_type.html#new,typeMariadbSchema,MariadbConnections,Table,Column proc new(__3590324240: type MariadbSchema; rdb: MariadbConnections; table: Table;\n column: Column): MariadbSchema 14 nimgrp new v2/schema_builder/queries/mariadb/mariadb_query_type.html#new-procs-all proc 11 diff --git a/docs/v2/v2/schema_builder/queries/mariadb/rename_column.html b/docs/v2/v2/schema_builder/queries/mariadb/rename_column.html index 42207758..8f27abb6 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/rename_column.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/rename_column.html @@ -83,9 +83,9 @@-- +
proc new(__3573547018: type MariadbSchema; rdb: MariadbConnections; table: Table): MariadbSchema proc new(__3590324234: type MariadbSchema; rdb: MariadbConnections; table: Table): MariadbSchema- @@ -123,7 +123,7 @@
Procs
- proc new(__3573547024: type MariadbSchema; rdb: MariadbConnections; + proc new(__3590324240: type MariadbSchema; rdb: MariadbConnections; table: Table; column: Column): MariadbSchema- @@ -143,7 +143,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mariadb/rename_table.html b/docs/v2/v2/schema_builder/queries/mariadb/rename_table.html index 4020fadf..667299cf 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/rename_table.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/rename_table.html @@ -83,9 +83,9 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc renameColumn(self: MariadbSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mariadb/reset_table.html b/docs/v2/v2/schema_builder/queries/mariadb/reset_table.html index 638ea318..41c0f6eb 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/reset_table.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/reset_table.html @@ -78,7 +78,7 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc renameTable(self: MariadbSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
src/allographer/v2/schema_builder/queries/mariadb/reset_table<
@@ -87,9 +87,9 @@Procs
diff --git a/docs/v2/v2/schema_builder/queries/mariadb/schema_utils.html b/docs/v2/v2/schema_builder/queries/mariadb/schema_utils.html index d39a9e4e..420979f1 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/schema_utils.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/schema_utils.html @@ -95,7 +95,7 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc resetMigrationTable(self: MariadbSchema) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -121,7 +121,7 @@
Procs
src/allographer/v2/schema_builder/queries/mariadb/schema_utils
Imports
- ../../../query_builder/models/mariadb/mariadb_types, ../../../query_builder/models/mariadb/mariadb_connections, ../../../query_builder/models/mariadb/mariadb_query, ../../../query_builder/error, ../../models/table + ../../../query_builder/models/mariadb/mariadb_types, ../../../query_builder/models/mariadb/mariadb_query, ../../../query_builder/models/mariadb/mariadb_exec, ../../../query_builder/error, ../../models/table
@@ -167,8 +167,9 @@diff --git a/docs/v2/v2/schema_builder/queries/mariadb/sub/add_column_query.html b/docs/v2/v2/schema_builder/queries/mariadb/sub/add_column_query.html index e2a8a0b2..4434bfb0 100644 --- a/docs/v2/v2/schema_builder/queries/mariadb/sub/add_column_query.html +++ b/docs/v2/v2/schema_builder/queries/mariadb/sub/add_column_query.html @@ -102,7 +102,7 @@Procs
- + CatchableError, KeyError], tags: [TimeEffect, RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}
proc shouldRun(rdb: MariadbConnections; table: Table; checksum: string; isReset: bool): bool {....raises: [ValueError, Exception, OSError, - KeyError], tags: [TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect], forbids: [].}- @@ -187,7 +188,7 @@
Procs
Procs
Procs
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mysql/change_column.html b/docs/v2/v2/schema_builder/queries/mysql/change_column.html index 5f62a171..adc0fa77 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/change_column.html +++ b/docs/v2/v2/schema_builder/queries/mysql/change_column.html @@ -82,10 +82,10 @@-- +
proc addColumn(self: MysqlSchema; isReset: bool) {. - ...raises: [ValueError, KeyError, DbError, Exception, OSError], tags: [ - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, - WriteIOEffect], forbids: [].} proc addColumn(self: MysqlSchema; isReset: bool) {....raises: [ValueError, + KeyError, DbError, Exception, OSError, CatchableError], tags: [TimeEffect, + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mysql/create_migration_table.html b/docs/v2/v2/schema_builder/queries/mysql/create_migration_table.html index f5967721..b10877f2 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/create_migration_table.html +++ b/docs/v2/v2/schema_builder/queries/mysql/create_migration_table.html @@ -104,7 +104,7 @@-- +
proc changeColumn(self: MysqlSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, DbError, KeyError], tags: [ - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, - WriteIOEffect], forbids: [].} proc changeColumn(self: MysqlSchema; isReset: bool) {....raises: [ValueError, + Exception, OSError, DbError, KeyError, CatchableError], tags: [TimeEffect, + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mysql/drop_column.html b/docs/v2/v2/schema_builder/queries/mysql/drop_column.html index 9c16eb36..54945587 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/drop_column.html +++ b/docs/v2/v2/schema_builder/queries/mysql/drop_column.html @@ -83,9 +83,9 @@-- +
proc createTable(self: MysqlSchema; isReset: bool) {. - ...raises: [ValueError, KeyError, DbError, Exception, OSError], tags: [ - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, - WriteIOEffect], forbids: [].} proc createTable(self: MysqlSchema; isReset: bool) {....raises: [ValueError, + KeyError, DbError, Exception, OSError, CatchableError], tags: [TimeEffect, + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mysql/drop_table.html b/docs/v2/v2/schema_builder/queries/mysql/drop_table.html index 1ebcd50d..6ff7ecd3 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/drop_table.html +++ b/docs/v2/v2/schema_builder/queries/mysql/drop_table.html @@ -83,9 +83,9 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc dropColumn(self: MysqlSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mysql/mysql_query_impl.html b/docs/v2/v2/schema_builder/queries/mysql/mysql_query_impl.html index ea7d1f3b..5ba9a201 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/mysql_query_impl.html +++ b/docs/v2/v2/schema_builder/queries/mysql/mysql_query_impl.html @@ -101,7 +101,7 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc dropTable(self: MysqlSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
src/allographer/v2/schema_builder/queries/mysql/mysql_query_ty
Procs
new -
@@ -115,7 +115,7 @@- new(__4026531850: type MysqlSchema; rdb: MysqlConnections; table: Table): MysqlSchema
-- new(__4026531856: type MysqlSchema; rdb: MysqlConnections; table: Table; +
- new(__4043309066: type MysqlSchema; rdb: MysqlConnections; table: Table): MysqlSchema
+- new(__4043309072: type MysqlSchema; rdb: MysqlConnections; table: Table; column: Column): MysqlSchema
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mysql/mysql_query_type.idx b/docs/v2/v2/schema_builder/queries/mysql/mysql_query_type.idx index 160e0d62..c24a0242 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/mysql_query_type.idx +++ b/docs/v2/v2/schema_builder/queries/mysql/mysql_query_type.idx @@ -1,5 +1,5 @@ nimTitle mysql_query_type v2/schema_builder/queries/mysql/mysql_query_type.html module src/allographer/v2/schema_builder/queries/mysql/mysql_query_type 0 nim MysqlSchema v2/schema_builder/queries/mysql/mysql_query_type.html#MysqlSchema type MysqlSchema 6 -nim new v2/schema_builder/queries/mysql/mysql_query_type.html#new,typeMysqlSchema,MysqlConnections,Table proc new(__4026531850: type MysqlSchema; rdb: MysqlConnections; table: Table): MysqlSchema 11 -nim new v2/schema_builder/queries/mysql/mysql_query_type.html#new,typeMysqlSchema,MysqlConnections,Table,Column proc new(__4026531856: type MysqlSchema; rdb: MysqlConnections; table: Table;\n column: Column): MysqlSchema 14 +nim new v2/schema_builder/queries/mysql/mysql_query_type.html#new,typeMysqlSchema,MysqlConnections,Table proc new(__4043309066: type MysqlSchema; rdb: MysqlConnections; table: Table): MysqlSchema 11 +nim new v2/schema_builder/queries/mysql/mysql_query_type.html#new,typeMysqlSchema,MysqlConnections,Table,Column proc new(__4043309072: type MysqlSchema; rdb: MysqlConnections; table: Table;\n column: Column): MysqlSchema 14 nimgrp new v2/schema_builder/queries/mysql/mysql_query_type.html#new-procs-all proc 11 diff --git a/docs/v2/v2/schema_builder/queries/mysql/rename_column.html b/docs/v2/v2/schema_builder/queries/mysql/rename_column.html index dccf86b2..e5ffd820 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/rename_column.html +++ b/docs/v2/v2/schema_builder/queries/mysql/rename_column.html @@ -83,9 +83,9 @@-- +
proc new(__4026531850: type MysqlSchema; rdb: MysqlConnections; table: Table): MysqlSchema proc new(__4043309066: type MysqlSchema; rdb: MysqlConnections; table: Table): MysqlSchema- @@ -123,7 +123,7 @@
Procs
- proc new(__4026531856: type MysqlSchema; rdb: MysqlConnections; table: Table; + proc new(__4043309072: type MysqlSchema; rdb: MysqlConnections; table: Table; column: Column): MysqlSchema- @@ -143,7 +143,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mysql/rename_table.html b/docs/v2/v2/schema_builder/queries/mysql/rename_table.html index ad988a52..47a86c1c 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/rename_table.html +++ b/docs/v2/v2/schema_builder/queries/mysql/rename_table.html @@ -83,9 +83,9 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc renameColumn(self: MysqlSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/mysql/reset_table.html b/docs/v2/v2/schema_builder/queries/mysql/reset_table.html index 37700ad0..a3d5035a 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/reset_table.html +++ b/docs/v2/v2/schema_builder/queries/mysql/reset_table.html @@ -78,7 +78,7 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc renameTable(self: MysqlSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
src/allographer/v2/schema_builder/queries/mysql/reset_table
Imports
@@ -87,9 +87,9 @@Procs
diff --git a/docs/v2/v2/schema_builder/queries/mysql/schema_utils.html b/docs/v2/v2/schema_builder/queries/mysql/schema_utils.html index c9f0192d..5e91f14a 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/schema_utils.html +++ b/docs/v2/v2/schema_builder/queries/mysql/schema_utils.html @@ -95,7 +95,7 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc resetMigrationTable(self: MysqlSchema) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -121,7 +121,7 @@
Procs
src/allographer/v2/schema_builder/queries/mysql/schema_utils
Imports
- ../../../query_builder/models/mysql/mysql_types, ../../../query_builder/models/mysql/mysql_connections, ../../../query_builder/models/mysql/mysql_query, ../../../query_builder/error, ../../models/table + ../../../query_builder/models/mysql/mysql_types, ../../../query_builder/models/mysql/mysql_query, ../../../query_builder/models/mysql/mysql_exec, ../../../query_builder/error, ../../models/table
@@ -167,8 +167,9 @@diff --git a/docs/v2/v2/schema_builder/queries/mysql/sub/add_column_query.html b/docs/v2/v2/schema_builder/queries/mysql/sub/add_column_query.html index 01077e18..74cb0830 100644 --- a/docs/v2/v2/schema_builder/queries/mysql/sub/add_column_query.html +++ b/docs/v2/v2/schema_builder/queries/mysql/sub/add_column_query.html @@ -102,7 +102,7 @@Procs
- + CatchableError, KeyError], tags: [TimeEffect, RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}
proc shouldRun(rdb: MysqlConnections; table: Table; checksum: string; isReset: bool): bool {....raises: [ValueError, Exception, OSError, - KeyError], tags: [TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect], forbids: [].}- @@ -187,7 +188,7 @@
Procs
Procs
Procs
Procs
src/allographer/v2/schema_builder/queries/mysql/sub/is_exists<
Imports
- ../../../models/table, ../../../models/column, ../../../../query_builder/models/mysql/mysql_types, ../../../../query_builder/models/mysql/mysql_connections, ../../../../query_builder/models/mysql/mysql_query + ../../../models/table, ../../../models/column, ../../../../query_builder/models/mysql/mysql_types, ../../../../query_builder/models/mysql/mysql_query, ../../../../query_builder/models/mysql/mysql_exec
@@ -122,7 +122,7 @@Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/postgres/change_column.html b/docs/v2/v2/schema_builder/queries/postgres/change_column.html index ef798b1e..31daea97 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/change_column.html +++ b/docs/v2/v2/schema_builder/queries/postgres/change_column.html @@ -82,8 +82,8 @@-- +
proc addColumn(self: PostgresSchema; isReset: bool) {. - ...raises: [ValueError, KeyError, DbError, Exception, OSError], tags: [ - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, - WriteIOEffect], forbids: [].} proc addColumn(self: PostgresSchema; isReset: bool) {....raises: [ValueError, + KeyError, DbError, Exception, OSError, CatchableError], tags: [TimeEffect, + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/postgres/create_migration_table.html b/docs/v2/v2/schema_builder/queries/postgres/create_migration_table.html index 83947b22..dc701918 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/create_migration_table.html +++ b/docs/v2/v2/schema_builder/queries/postgres/create_migration_table.html @@ -104,7 +104,7 @@- proc changeColumn(self: PostgresSchema; isReset: bool) {. - ...raises: [DbError, ValueError, KeyError, Exception, OSError], tags: [ + proc changeColumn(self: PostgresSchema; isReset: bool) {....raises: [DbError, + ValueError, KeyError, Exception, OSError, CatchableError], tags: [ TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/postgres/drop_column.html b/docs/v2/v2/schema_builder/queries/postgres/drop_column.html index 8680e174..5f95ce6f 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/drop_column.html +++ b/docs/v2/v2/schema_builder/queries/postgres/drop_column.html @@ -83,9 +83,9 @@-- +
proc createTable(self: PostgresSchema; isReset: bool) {. - ...raises: [ValueError, DbError, KeyError, Exception, OSError], tags: [ - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, - WriteIOEffect], forbids: [].} proc createTable(self: PostgresSchema; isReset: bool) {....raises: [ValueError, + DbError, KeyError, Exception, OSError, CatchableError], tags: [TimeEffect, + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/postgres/drop_table.html b/docs/v2/v2/schema_builder/queries/postgres/drop_table.html index d6d5a408..cb18ceee 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/drop_table.html +++ b/docs/v2/v2/schema_builder/queries/postgres/drop_table.html @@ -83,9 +83,9 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc dropColumn(self: PostgresSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/postgres/postgres_query_impl.html b/docs/v2/v2/schema_builder/queries/postgres/postgres_query_impl.html index bb1b0b54..e1b901f2 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/postgres_query_impl.html +++ b/docs/v2/v2/schema_builder/queries/postgres/postgres_query_impl.html @@ -102,7 +102,7 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc dropTable(self: PostgresSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/postgres/rename_table.html b/docs/v2/v2/schema_builder/queries/postgres/rename_table.html index 21a3e00a..3a8109d4 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/rename_table.html +++ b/docs/v2/v2/schema_builder/queries/postgres/rename_table.html @@ -83,9 +83,9 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc renameColumn(self: PostgresSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
Procs
diff --git a/docs/v2/v2/schema_builder/queries/postgres/reset_table.html b/docs/v2/v2/schema_builder/queries/postgres/reset_table.html index 89607820..134400da 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/reset_table.html +++ b/docs/v2/v2/schema_builder/queries/postgres/reset_table.html @@ -78,7 +78,7 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc renameTable(self: PostgresSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -104,7 +104,7 @@
Procs
src/allographer/v2/schema_builder/queries/postgres/reset_table
Imports
- ../../../query_builder/models/postgres/postgres_connections, ../../../query_builder/models/postgres/postgres_query, ../../models/table, postgres_query_type + ../../../query_builder/models/postgres/postgres_query, ../../../query_builder/models/postgres/postgres_exec, ../../models/table, postgres_query_type
@@ -87,9 +87,9 @@Procs
diff --git a/docs/v2/v2/schema_builder/queries/postgres/schema_utils.html b/docs/v2/v2/schema_builder/queries/postgres/schema_utils.html index f3c1dae8..4b042a19 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/schema_utils.html +++ b/docs/v2/v2/schema_builder/queries/postgres/schema_utils.html @@ -97,7 +97,7 @@- + ...raises: [ValueError, Exception, OSError, CatchableError, KeyError], tags: [ + TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, + WriteIOEffect], forbids: [].}
proc resetMigrationTable(self: PostgresSchema) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}- @@ -121,7 +121,7 @@
Procs
src/allographer/v2/schema_builder/queries/postgres/schema_util
Imports
- ../../../query_builder/models/postgres/postgres_types, ../../../query_builder/models/postgres/postgres_connections, ../../../query_builder/models/postgres/postgres_query, ../../../query_builder/error, ../../models/table + ../../../query_builder/models/postgres/postgres_types, ../../../query_builder/models/postgres/postgres_query, ../../../query_builder/models/postgres/postgres_exec, ../../../query_builder/error, ../../models/table
@@ -169,8 +169,9 @@diff --git a/docs/v2/v2/schema_builder/queries/postgres/sub/add_column_query.html b/docs/v2/v2/schema_builder/queries/postgres/sub/add_column_query.html index 8012bcb8..4dd6de16 100644 --- a/docs/v2/v2/schema_builder/queries/postgres/sub/add_column_query.html +++ b/docs/v2/v2/schema_builder/queries/postgres/sub/add_column_query.html @@ -102,7 +102,7 @@Procs
- + CatchableError, KeyError], tags: [TimeEffect, RootEffect, WriteDirEffect, + ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}
proc shouldRun(rdb: PostgresConnections; table: Table; checksum: string; isReset: bool): bool {....raises: [ValueError, Exception, OSError, - KeyError], tags: [TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect], forbids: [].}- @@ -189,7 +190,7 @@
Procs
Procs
Procs
proc addColumn(self: SqliteSchema; isReset: bool) {. - ...raises: [ValueError, DbError, KeyError, Exception, OSError, RegexError], tags: [ + proc addColumn(self: SqliteSchema; isReset: bool) {....raises: [ValueError, + DbError, KeyError, Exception, OSError, RegexError, CatchableError], tags: [ TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, ReadDbEffect], forbids: [].}- @@ -104,7 +104,7 @@
Procs
proc changeColumn(self: SqliteSchema; isReset: bool) {. - ...raises: [DbError, ValueError, Exception, OSError, KeyError, RegexError], tags: [ + proc changeColumn(self: SqliteSchema; isReset: bool) {....raises: [DbError, + ValueError, Exception, OSError, KeyError, RegexError, CatchableError], tags: [ TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, ReadDbEffect], forbids: [].}- @@ -109,7 +109,7 @@
Procs
proc createTable(self: SqliteSchema; isReset: bool) {. - ...raises: [ValueError, DbError, KeyError, Exception, OSError], tags: [ - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, - WriteIOEffect, ReadDbEffect], forbids: [].}
proc createTable(self: SqliteSchema; isReset: bool) {....raises: [ValueError, + DbError, KeyError, Exception, OSError, CatchableError], tags: [TimeEffect, + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, + ReadDbEffect], forbids: [].}
proc dropColumn(self: SqliteSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError, RegexError], tags: [ + proc dropColumn(self: SqliteSchema; isReset: bool) {....raises: [ValueError, + Exception, OSError, KeyError, RegexError, CatchableError], tags: [ TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, ReadDbEffect], forbids: [].}- @@ -109,7 +109,7 @@
Procs
proc dropTable(self: SqliteSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - ReadDbEffect], forbids: [].}
proc renameColumn(self: SqliteSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - ReadDbEffect], forbids: [].}
proc renameTable(self: SqliteSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - ReadDbEffect], forbids: [].}
proc resetMigrationTable(self: SqliteSchema) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect, - ReadDbEffect], forbids: [].}
proc shouldRun(rdb: SqliteConnections; table: Table; checksum: string; isReset: bool): bool {....raises: [ValueError, Exception, OSError, - KeyError], tags: [TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect, ReadDbEffect], forbids: [].}
proc addColumn(self: SurrealSchema; isReset: bool) {. - ...raises: [ValueError, DbError, KeyError, Exception, OSError], tags: [ - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, - WriteIOEffect], forbids: [].}
proc addColumn(self: SurrealSchema; isReset: bool) {....raises: [ValueError, + DbError, KeyError, Exception, OSError, CatchableError], tags: [TimeEffect, + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}
proc resetSequence(rdb: SurrealConnections; table: Table) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}
proc createTable(self: SurrealSchema; isReset: bool) {. - ...raises: [ValueError, DbError, KeyError, Exception, OSError], tags: [ - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, - WriteIOEffect], forbids: [].}
proc createTable(self: SurrealSchema; isReset: bool) {....raises: [ValueError, + DbError, KeyError, Exception, OSError, CatchableError], tags: [TimeEffect, + RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], + forbids: [].}
proc dropColumn(self: SurrealSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}
proc dropTable(self: SurrealSchema; isReset: bool) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}
proc resetMigrationTable(self: SurrealSchema) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [TimeEffect, - RootEffect, WriteDirEffect, ReadDirEffect, ReadIOEffect, WriteIOEffect], - forbids: [].}
proc shouldRun(rdb: SurrealConnections; table: Table; checksum: string; isReset: bool): bool {....raises: [ValueError, Exception, OSError, - KeyError], tags: [TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, - ReadIOEffect, WriteIOEffect], forbids: [].}
proc new(__4848615434: type SurrealSchema; rdb: SurrealConnections; table: Table): SurrealSchema
proc new(__4882169866: type SurrealSchema; rdb: SurrealConnections; table: Table): SurrealSchema
proc new(__4848615440: type SurrealSchema; rdb: SurrealConnections; +
proc new(__4882169872: type SurrealSchema; rdb: SurrealConnections; table: Table; column: Column): SurrealSchema
proc create(rdb: SurrealConnections; tables: varargs[Table]) {. - ...raises: [ValueError, Exception, OSError, KeyError], tags: [ReadIOEffect, - TimeEffect, RootEffect, WriteDirEffect, ReadDirEffect, WriteIOEffect], - forbids: [].}