use-sql-schema 0.1.0

SQL schema, database, namespace, and search-path primitives for RustUse
Documentation
  • Coverage
  • 94.44%
    17 out of 18 items documented1 out of 17 items with examples
  • Size
  • Source code size: 8.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 675.69 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-schema

SQL schema, database, namespace, and search-path primitives for RustUse.

Experimental

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

Example

use use_sql_schema::{SqlSchemaName, SqlSearchPath};

let public = SqlSchemaName::new("public")?;
let search_path = SqlSearchPath::new(vec![public.clone()]);

assert_eq!(public.as_str(), "public");
assert_eq!(search_path.to_string(), "public");
# Ok::<(), use_sql_schema::SqlSchemaError>(())

Scope

  • Generic schema and database names.
  • Namespace metadata.
  • Search-path lists.

Non-goals

  • PostgreSQL-specific search-path behavior.
  • Migration or introspection behavior.

License

Licensed under either Apache-2.0 or MIT.