Skip to content

Error: unknown selector #9

@ghost

Description

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:

import ormin


importModel(DbBackend.sqlite, "site_model")
var db {.global.} = open("stuff.db", "", "", "")

proc addFeed*(feedName: string): void =
    #db.exec(sql"INSERT INTO feeds (feed_url) VALUES (?)", feedName)
    query:
        insert feeds("google")

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions