use-sql-query 0.1.0

SQL query kind, intent, safety, and classification primitives for RustUse
Documentation
  • Coverage
  • 37.14%
    13 out of 35 items documented1 out of 13 items with examples
  • Size
  • Source code size: 9.47 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 599.07 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-sql
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-sql-query

SQL query kind, intent, safety, and classification primitives for RustUse.

Experimental

use-sql-query is experimental while use-sql remains below 0.3.0.

Example

use use_sql_query::SqlQueryKind;

let kind: SqlQueryKind = "delete".parse()?;

assert!(SqlQueryKind::Select.is_read());
assert!(kind.is_write());
assert!(kind.is_destructive());
# Ok::<(), use_sql_query::SqlQueryKindParseError>(())

Scope

  • Query kind labels.
  • Read, write, schema-change, and destructive classification helpers.
  • Conservative first-token classification.

Non-goals

  • SQL parsing.
  • Query execution.
  • Authorization or policy enforcement.

License

Licensed under either Apache-2.0 or MIT.