An open API service indexing awesome lists of open source software.

https://github.com/hjosugi/irodori-sql

Shared SQL dialect, parameter, metamodel, and schema helpers for Irodori.
https://github.com/hjosugi/irodori-sql

database irodori metamodel query-builder rust schema sql sql-dialect

Last synced: 7 days ago
JSON representation

Shared SQL dialect, parameter, metamodel, and schema helpers for Irodori.

Awesome Lists containing this project

README

          

# irodori-sql

SQL helpers used by Irodori Table and other Rust hosts.

## Provides

- dialect metadata
- identifier quoting
- placeholder and paging helpers
- query parameter detection
- schema/metamodel query builders
- schema diff helpers
- migration SQL and validation SQL builders

This crate does not connect to databases.

## Use

```toml
[dependencies]
irodori-sql = { git = "https://github.com/hjosugi/irodori-sql", tag = "v0.3.0" }
```

```rust
use irodori_sql::dialect::{quote_identifier, DbEngine};

let name = quote_identifier(DbEngine::Postgres, "order");
assert_eq!(name, "\"order\"");
```

## Develop

```sh
cargo test
```

License: `MIT OR 0BSD`.

## License

0BSD. You can use, copy, modify, and distribute this project for almost any purpose.