From 279d9aa7fddb61500bb1034771cbb3f6de75b95c Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Mon, 2 Aug 2021 05:54:56 -0500 Subject: [PATCH] Expose a number of useful utility methods and macros. --- fiber_orm.nimble | 2 +- src/fiber_orm.nim | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/fiber_orm.nimble b/fiber_orm.nimble index 3a44d17..27d299f 100644 --- a/fiber_orm.nimble +++ b/fiber_orm.nimble @@ -1,6 +1,6 @@ # Package -version = "0.3.3" +version = "0.3.4" author = "Jonathan Bernard" description = "Lightweight Postgres ORM for Nim." license = "GPL-3.0" diff --git a/src/fiber_orm.nim b/src/fiber_orm.nim index 66601e5..da09adf 100644 --- a/src/fiber_orm.nim +++ b/src/fiber_orm.nim @@ -3,6 +3,14 @@ import db_postgres, macros, options, sequtils, strutils, uuids from unicode import capitalize import ./fiber_orm/util +export + util.columnNamesForModel, + util.dbFormat, + util.dbNameToIdent, + util.identNameToDb, + util.modelName, + util.rowToModel, + util.tableName type NotFoundError* = object of CatchableError