a8m / a8m/rql

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

Aperta
#36 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
367
Fork
43
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

```go
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:

```go
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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.