Araq / ormin

Ormin -- An ORM for Nim.
MIT License
152 stars 18 forks source link

Implement named tuples #12

Closed PMunch closed 5 years ago

PMunch commented 5 years ago

With this tuples will now include the name of the column the data comes from. This also works if a column is renamed with as. Both examples compile, but I still haven't figured out how to run either of them.

PMunch commented 5 years ago

While fixing the bug where tuples were returned for single elements in createProc and createIter I noticed that createProc actually didn't work for returning non-JSON data, so I fixed that as well.

PMunch commented 5 years ago

There, now all queries with only a single return value should return only a simple type and not a tuple.