-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: unknown selector #9
Comments
Just read your blog and found
running the importer worked like a charm. |
I stand corrected, I must have been using an out-of-date binary. Even with the importer, I still can't get the project to compile |
Ok, well, please attach your "site_model" or a simplified version that has the same problem. |
site_model.sql: CREATE TABLE IF NOT EXISTS feeds (
id INTEGER PRIMARY KEY,
feed_url text NOT NULL
); site_model.nim: # Generated by ormin_importer. DO NOT EDIT.
import ormin
type
Attr = object
name: string
tabIndex: int
typ: DbTypekind
key: int # 0 nothing special,
# +1 -- primary key
# -N -- references attribute N
const tableNames = [
"feeds"
]
const attributes = [
Attr(name: "id", tabIndex: 0, typ: dbInt, key: 1),
Attr(name: "feed_url", tabIndex: 0, typ: dbVarchar, key: 0)
] |
I'm trying to compile a project using ormin, but I keep getting an error about an unknown selector:
Error: unknown selector: feeds
. The full project is here, and relevant code is as follows:The error is on line 10 of db.nim, which is the
insert feeds("google")
line. I can't figure out what the issue is since I can get this working just fine with regular db_sqlite. Am I doing something wrong?The text was updated successfully, but these errors were encountered: