Skip to content
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

Question: Just parse without need to create a QueryParser (aka rql.MustNewParser) #36

Open
mirusky opened this issue Oct 27, 2021 · 0 comments

Comments

@mirusky
Copy link

mirusky commented Oct 27, 2021

As I know, I need to create a parser to be able to parse the query into params. Like:

QueryParser = rql.MustNewParser(rql.Config{
    Model:    User{},
    FieldSep: ".",
})

// and then ...

params, err := QueryParser.Parse(query)

What I want is a way to just parse the raw query without care about the other stuff. Something like:

params, err := rql.RawQuery(query)

So it will produce the same result as QueryParser.Parse but without any aditional steps validating the data, checking struct tags etc.

There is any method to do something like that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant