Procs to convert Model instances to ndb.sqlite.Row instances and back.
Procs
proc fromRow[T: Model](obj: var T; row: Row)
-
Populate Model instance from ndb.sqlite.Row instance.
Nested Model fields are populated from the same ndb.sqlite.Row instance.
proc toRow[T: Model](obj: T; force = false): Row
-
Convert Model instance into ndb.sqlite.Row instance.
If force is true, fields with ro pragma are not skipped.