ormin icon indicating copy to clipboard operation
ormin copied to clipboard

Ormin -- An ORM for Nim.

Results 12 ormin issues
Sort by recently updated
recently updated
newest added

Basically this code errors at compile-time, and I don't know why: ```nim let categoryName = "Cars" let s = query: select product(name, img, price) join prod_cat(prod, cat) on product.id ==...

There's a difference in how Ormin treats special UTF-8 character codes in comparison to db_sqlite: ```nim # db_sqlite inserts "ó" db.exec sql"insert into product(name) values (?)", "ó" # Ormin inserts...

Even if table name is orginally camelCased, you have to lowercase it, so something like this doesn't work: ```nim let x = query: select prodCat(id, name) ```

Null dates produces the following error: > ormin/ormin/ormin_postgre.nim(143) test_db > Nim/lib/system/fatal.nim(49) sysFatal > Error: unhandled exception: index out of bounds, the container is empty [IndexError]

Given a schema like this: ```sql create table user( id integer primary key, username text unique ) ``` I'd expect that ```nim let (id, username) = query: select user(id, username)...

Given an empty table created with this schema: ```sql create table user( id integer primary key, username text unique ) ``` This query ```nim let (id, username) = query: select...

This is the code used for `tryQuery`: ```nim if stepQuery(db, prepStmt, returnsData): action stopQuery(db, prepStmt) ``` Which appears to be designed to not throw any errors on failure, but: ```nim...

>/home/dk/.nimble/pkgs/ormin-0.1.0/ormin/ormin_sqlite.nim(24) prepareStmt >/home/dk/.nimble/pkgs/ormin-0.1.0/ormin/ormin_sqlite.nim(20) dbError >Error: unhandled exception: no such column:  a1.answer [DbError] I have no clue how to interpret this message.

``` import ormin / [serverws] import ormin import json importModel(DbBackend.sqlite, "chat_model") #var db {.global.} = open("chat_ormin.db", "", "", "") protocol "pingclient.nim": server "ping": echo "got ping" send(%1) client "ping": proc...

I'm planning on writing a webapp in Nim, and Ormin definitely seems to be the best Nim ORM available. However, it's really hard to figure out how to use based...