use-sql-operator 0.1.0

Common SQL comparison, logical, null, and pattern operator primitives for RustUse
Documentation
  • Coverage
  • 37.5%
    12 out of 32 items documented1 out of 12 items with examples
  • Size
  • Source code size: 9.91 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 782.89 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s 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-operator

Common SQL comparison, logical, null, and pattern operator primitives for RustUse.

Experimental

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

Example

use use_sql_operator::{SqlComparisonOperator, SqlOperator};

let operator: SqlOperator = "is not null".parse()?;

assert_eq!(SqlComparisonOperator::LessOrEqual.to_string(), "<=");
assert_eq!(operator.to_string(), "IS NOT NULL");
# Ok::<(), use_sql_operator::SqlOperatorParseError>(())

Scope

  • Comparison operators.
  • Logical operators.
  • Null and pattern operators.

Non-goals

  • Operator precedence handling.
  • Full expression parsing.

License

Licensed under either Apache-2.0 or MIT.