use-sql-keyword 0.1.0

Common SQL keyword vocabulary primitives for RustUse
Documentation
  • Coverage
  • 18.6%
    8 out of 43 items documented1 out of 8 items with examples
  • Size
  • Source code size: 9.61 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 536.76 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-keyword

Common SQL keyword vocabulary primitives for RustUse.

Experimental

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

Example

use use_sql_keyword::{SqlKeyword, SqlKeywordKind, is_common_keyword};

let keyword: SqlKeyword = "select".parse()?;

assert_eq!(keyword.kind(), SqlKeywordKind::DataQuery);
assert!(is_common_keyword("where"));
# Ok::<(), use_sql_keyword::SqlKeywordParseError>(())

Scope

  • Common SQL keywords.
  • Reserved-like checks for conservative identifier helpers.
  • Broad keyword categories.

Non-goals

  • Exhaustive SQL standard keyword coverage.
  • Dialect-specific reserved-word tables.

License

Licensed under either Apache-2.0 or MIT.