use-sql-dialect 0.1.0

Lightweight SQL dialect and dialect-family labels for RustUse
Documentation
  • Coverage
  • 26.92%
    7 out of 26 items documented1 out of 7 items with examples
  • Size
  • Source code size: 8.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 523.1 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-dialect

Lightweight SQL dialect and dialect-family labels for RustUse.

Experimental

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

Example

use use_sql_dialect::{SqlDialect, SqlDialectFamily};

let dialect: SqlDialect = "postgres".parse()?;

assert_eq!(dialect, SqlDialect::PostgreSql);
assert_eq!(dialect.family(), SqlDialectFamily::PostgreSql);
# Ok::<(), use_sql_dialect::SqlDialectParseError>(())

Scope

  • Dialect labels for common SQL systems.
  • Lightweight dialect families.
  • Display and case-insensitive parsing helpers.

Non-goals

  • Deep dialect behavior.
  • Feature matrices or compatibility checks.

License

Licensed under either Apache-2.0 or MIT.