-
Notifications
You must be signed in to change notification settings - Fork 4
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
Document queries syntax #44
Comments
Yes, there many things to improve in populse_db documentation. The query language has nothing to do with Lark. This is just the library to parse the grammar. I defined this grammar. What you try to do is an IN operator between a field and a list literal. I think this is not implemented. You can use I do not understand what cannot be done on collection primary key. A primary key is a field as any other and therefore can be used on queries. There is no join operation right now if this is what you are looking for. We must never use directly the SQlite engine because this would make code incompatible with another engine (Postgres will be back one day). If ther is a need, we must enhance pobulse_db API. |
For primary key I may have understand. Are you looking for |
That's probably what I was looking for, thanks ! ;)
I know and that was precisely why I was asking... So the |
Well, the I am not sur it is very efficient to perform large queries. We may also think to improve the query system to put data out of the query string. |
OK I totally misunderstood the meaning of the |
What's the query syntax in
DatabaseSession.filter_documents()
?It's not SQL, it's an unknown language...
The docs only say:
I don't understand why there are 2 parentheses around "lines", and I can't make a working query on my own.
I just want to perform a simple query like "select documents in a list of IDs".
I tried thinks like:
or:
but always end up with a syntax error that I cannot interpret, like this one:
Sure, I know nothing about Lark, not even if it's a language, a parser library, or anything else, but I guess a standard user doesn't want to know...
We really need a documentation for the query language...
Moreover it's not easy in the Populse_db API to get a collection primary key to perform queries on: currently we need to get to the underlying SQLite engine to get it (or maybe I missed something ?)
For now I could only make my request by totally bypassing the DatabaseSession layer and getting directly to the SQLite engine, but of course this is not what it's meant for...
The text was updated successfully, but these errors were encountered: