nim-orm
nim-orm copied to clipboard
error when "import orm_mysql"
I wrote "import orm_mysql" in the beginning of my *.nim and got this error
lib/pure/asyncdispatch.nim(1410, 7) Hint: Processing statusContent as an async proc. [User] lib/pure/asyncdispatch.nim(1410, 7) Hint: Processing sendHeaders as an async proc. [User] lib/pure/asyncdispatch.nim(1410, 7) Hint: Processing send as an async proc. [User] lib/pure/asyncdispatch.nim(1410, 7) Hint: Processing sendStaticIfExists as an async proc. [User] lib/pure/asyncdispatch.nim(1410, 7) Hint: Processing handleRequest as an async proc. [User] /home/user/.nimble/pkgs/jester-0.1.0/jester.nim(230, 10) Hint: 'setMatches' is declared but not used [XDeclaredButNotUsed] /home/user/.nimble/pkgs/jester-0.1.0/jester.nim(77, 3) Hint: 'Callback' is declared but not used [XDeclaredButNotUsed] Hint: db_mysql [Processing] Hint: mysql [Processing] Hint: orm_mysql [Processing] /home/user/.nimble/pkgs/orm-0.0.1/orm.nim(155, 21) Error: expression expected, but found '{.'
shell returned 1
Before this I've installed it using "nimble build && nimble install" command
You are using too old Nim. Required changes probably has not been yet released as Nim stable release and exists only in devel. However recent devel broke this fragile module. So fixes are coming.
Thank you, I'll try it as soon as possible
Hi, I've tried devel Nim version and got this: ".nimble/pkgs/orm-0.0.1/orm.nim(60, 21) Error: attempting to call undeclared routine: 'sameType'" But may be you already know about this. There is my code, but it doesn't execute: import orm_mysql Model.open("222.222.222.222", "username", "mypassword", "mydb")