`tryGet<RecordName>` returns Option types rather than raise exceptions. For example: generateProcsForModels(MyDb, [ User ]) will now create both: proc getUser*(db: MyDb, id: string): User proc tryGetUser*(db: MyDb, id: string): Option[User]
15 lines
264 B
Nim
15 lines
264 B
Nim
# Package
|
|
|
|
version = "4.1.0"
|
|
author = "Jonathan Bernard"
|
|
description = "Lightweight Postgres ORM for Nim."
|
|
license = "GPL-3.0"
|
|
srcDir = "src"
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
requires @["nim >= 1.4.0", "uuids"]
|
|
requires "namespaced_logging >= 2.0.2"
|