Skip to content

Commit 46b45cd

Browse files
PhilippMDoernerPhilippMDoerner
PhilippMDoerner
authored andcommitted
Update norm
1 parent dc7927a commit 46b45cd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

nimstoryfont.nimble

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bin = @["nimstoryfont"]
1010

1111
# Dependencies
1212
requires "nim >= 1.9.1"
13-
requires "norm >= 2.8.3" # requires "norm >= 2.6.0" # A norm fork for use until norm is nim 2.0 ready, see https://github.com/moigagoo/norm/issues/182
13+
requires "norm >= 2.8.5" # requires "norm >= 2.6.0" # A norm fork for use until norm is nim 2.0 ready, see https://github.com/moigagoo/norm/issues/182
1414
requires "prologue >= 0.6.4"
1515
requires "lowdb >= 0.2.0"
1616
requires "jsony >= 1.1.3"

src/applications/genericArticleRepository.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ proc getEntryByField*[M: Model, T](connection: DbConn, fieldName: static string,
104104
proc getEntryByField*[M: Model, T](fieldName: static string, fieldValue: T, modelType: typedesc[M]): M =
105105
##[ Helper proc for getEntryByField when you don't want to provide the connection yourself]##
106106
withDbConn(connection):
107-
result = getEntryByField[M](connection, fieldName, fieldValue, modelType)
107+
result = getEntryByField[M, T](connection, fieldName, fieldValue, modelType)
108108

109109

110110
proc getEntryById*[M: Model](connection: DbConn, entryId: int64, modelType: typedesc[M]): M =

src/database.nim

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const ENABLE_FK_PRAGMA_CHECK = "PRAGMA foreign_keys=on"
88
proc initConnectionPool*(databasePath: string, size: int) =
99
{.cast(gcsafe).}:
1010
SQLITE_POOL = newPool[DbConn](
11-
size,
12-
() => open(databasePath, "", "", ""),
11+
size,
12+
proc(): DbConn {.closure.} = open(databasePath, "", "", ""),
1313
pepExtend
1414
)
1515

0 commit comments

Comments
 (0)