Constantine Molchanov

Results 114 comments of Constantine Molchanov

This is because in general, there is no universal way to instantiate a type in Nim. That means, you have just the type, you can't in general create its instance....

We've discussed this topic outside of GitHub. It seems that with the introduction of default field values for objects, we can finally reliably use types instead of instances. Also, DateTime...

@LichtBuch thanks for the contribution! Could you please add a changelog.md update to your PR? Just add a line about your change.

Since in Norm you basically pass raw SQL conditions to select, you can just pass BETWEEN like any other condition.

@gzigurella Hi! So you propose there's a special reserved field name "table" or "tableName" for each Model, similar to how every Model has "id"? What is the advantage of this...

I mean if you're generating the code for your models anyway, you can generate the pragma too.

@gzigurella I think I'm misunderstanding something. Sorry, I'll have to ask more questions :-) AFAIK if you're generating types, it must be done at compile time anyway. You can't generate...

Norm doesn't have a concurrency story of its own. Connecting to a DB is blocking because it's io. You can alleviate this by writing async code which let's you do...

Async doesn't mean not blocking though :-) Async just means you can tell the program to switch to a different task while the current one is blocked because it's waiting...

Sorry, you are right, I'm wrong. Norm relies on ndb package for the actual DB interaction. So Norm's DbConn type is actually ndb's. Since ndb is a blocking package, so...