8000 Question: Just parse without need to create a QueryParser (aka rql.MustNewParser) · Issue #36 · a8m/rql · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Question: Just parse without need to create a QueryParser (aka rql.MustNewParser) #36
Open
@mirusky

Description

@mirusky

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?

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

      0