Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"]

[package]
name = "sea-query"
version = "1.0.0-rc.28"
version = "1.0.0-rc.29"
authors = [
"Chris Tsang <chris.2y3@outlook.com>",
"Billy Chan <ccw.billy.123@gmail.com>",
Expand Down Expand Up @@ -56,6 +56,7 @@ audit = []
backend-mysql = []
backend-postgres = []
backend-sqlite = []
backend-cockroach = []
default = ["derive", "audit", "backend-mysql", "backend-postgres", "backend-sqlite", "itoa"]
derive = ["sea-query-derive"]
attr = ["sea-query-derive"]
Expand Down Expand Up @@ -97,6 +98,7 @@ all-features = [
"backend-mysql",
"backend-postgres",
"backend-sqlite",
"backend-cockroach",
"derive",
"hashable-value",
"serde",
Expand Down
10 changes: 10 additions & 0 deletions src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ pub use postgres::*;
#[cfg(feature = "backend-sqlite")]
pub use sqlite::*;

/// CockroachDB query builder.
///
/// CockroachDB is wire-compatible with PostgreSQL, so we use the same query builder.
/// The main difference is that CockroachDB doesn't support the `SERIAL` pseudo-type
/// and requires `GENERATED BY DEFAULT AS IDENTITY` instead, which is the default
/// behavior of [`PostgresQueryBuilder`] when the `option-postgres-use-serial` feature is not enabled.
#[cfg(feature = "backend-cockroach")]
#[cfg_attr(docsrs, doc(cfg(feature = "backend-cockroach")))]
pub use self::postgres::PostgresQueryBuilder as CockroachQueryBuilder;

mod foreign_key_builder;
mod index_builder;
mod query_builder;
Expand Down