Top 4.8% dependent repos on proxy.golang.org
Top 8.8% forks on proxy.golang.org
proxy.golang.org : github.com/hashicorp/mql
Package mql provides a language that end users can use to query your database models, without them having to learn SQL or exposing your application to SQL injection. Gorm: https://github.com/go-gorm/gorm database/sql: https://pkg.go.dev/database/sql go-dbw: https://github.com/hashicorp/go-dbw You define a model you wish to query as a Go struct and provide a mql query. The package then uses the query along with a model to generate a parameterized SQL where clause. Fields in your model can be compared with the following operators: =, !=, >=, <=, <, >, % Strings must be quoted. Double quotes ", single quotes ' or backticks ` can be used as delimiters. Users can choose whichever supported delimiter makes it easier to quote their string. Comparison operators can have optional leading/trailing whitespace. The % operator allows you to do partial string matching using LIKE and this matching is case insensitive. The = equality operator is case insensitive when used with string fields. Comparisons can be combined using: and, or. More complex queries can be created using parentheses. See [GRAMMAR.md]: https://github.com/hashicorp/mql/blob/main/GRAMMAR.md for a more complete documentation of mql's grammar. Example query:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/hashicorp/mql
License: MPL-2.0
Latest release: 19 days ago
First release: over 1 year ago
Namespace: github.com/hashicorp
Dependent repositories: 1
Stars: 25 on GitHub
Forks: 6 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 18 days ago