ndb.nim icon indicating copy to clipboard operation
ndb.nim copied to clipboard

#20 Add Nim2.0 support

Open PhilippMDoerner opened this issue 2 years ago • 7 comments

Adds nim2.0 support, or at least I'll aim for a branch that's good enough to use in a norm fork for my own project. do with that as you will.

(Also see #22 which was the previous PR for this with a dummy branch, before I decided to make a temporary fork for myself until this is dealt with)

PhilippMDoerner avatar Jan 21 '23 11:01 PhilippMDoerner

So because nim 2.0 introduced strict effects and you made use of the effects system, I had to fix a few tag things. I wasn't aware of it before, but std/times has the TimeEffect. This hadn't been accounted for before, so I fixed that. Now I can compile norm docs with this branch without having RootEffects everywhere.

PhilippMDoerner avatar Jan 21 '23 14:01 PhilippMDoerner

Anyway, I just checked out the tests for norm and made use of my branch here in norm, since I can get those tests to run. Those tests run flawlessly for both sqlite and postgres, so I'll assume that ndb works well in general on this branch. Personally I consider the PR finished with that unless further editing suggestions are made.

PhilippMDoerner avatar Jan 25 '23 20:01 PhilippMDoerner

Any news on this ? With 2.0 around the corner it'd be nice to have it working

Clonkk avatar Apr 03 '23 08:04 Clonkk

Any news on this ? With 2.0 around the corner it'd be nice to have it working

I forked ndb and created lowdb, which is 2.0 ready. https://github.com/PhilippMDoerner/lowdb

PhilippMDoerner avatar Apr 03 '23 08:04 PhilippMDoerner

My dependency of ndb comes from norm so it's not up to me but to @moigagoo. I don't know which is best for the 2.0 migration.

Clonkk avatar Apr 03 '23 15:04 Clonkk

Then you'll be glad to hear that norm jumped over to lowdb as of 2.7.0 via this PR: https://github.com/moigagoo/norm/pull/186

Here the announcement for it: https://forum.nim-lang.org/t/6471#65566

PhilippMDoerner avatar Apr 03 '23 16:04 PhilippMDoerner

Then I guess it's my fault for not upgrading sooner :)

Clonkk avatar Apr 03 '23 17:04 Clonkk