dc
diesel-citext
cargo install diesel-citext
dc

diesel-citext

Diesel support for citext extension

by Greg Elenbaas

0.3.0 (see all)License:MIT
cargo install diesel-citext
Readme

diesel-citext  

Diesel support for Postgres citext Extension

Example usage:

This very small extension allows you to use the citext type with diesel, without having to make modifications to the schema.rs generated file. It takes much inspiration from diesel-postgis.

Before sending to postgres and after parsing from postgres, the text content is always passed through the Rust String to_lowercase method.

To Ensure citext in the schema.rs file is parsed correctly, add diesel_citext to the import types declaration in your diesel.toml file.

E.g. it will look like this:

[print_schema]
file = "src/schema.rs"

import_types = ["diesel::sql_types::*", "diesel_citext::sql_types::*"]

GitHub Stars

12

LAST COMMIT

3yrs ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

0

OPEN PRs

3
VersionTagPublished
0.3.0
3yrs ago
0.2.0
3yrs ago
0.1.0
3yrs ago
No alternatives found
No tutorials found
Add a tutorial