Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6786058

Browse files
committedSep 28, 2024·
Remove sea-query-attr from main
1 parent f7a5c0a commit 6786058

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed
 

‎Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ path = "src/lib.rs"
2929

3030
[dependencies]
3131
inherent = "1.0"
32-
sea-query-attr = { version = "0.1.1", path = "sea-query-attr", default-features = false, optional = true }
3332
sea-query-derive = { version = "0.4.0", path = "sea-query-derive", default-features = false, optional = true }
3433
serde_json = { version = "1", default-features = false, optional = true, features = ["std"] }
3534
educe = { version = "=0.5.11", default-features = false, optional = true, features = ["Hash", "PartialEq", "Eq"] }
@@ -56,7 +55,7 @@ backend-postgres = []
5655
backend-sqlite = []
5756
default = ["derive", "backend-mysql", "backend-postgres", "backend-sqlite"]
5857
derive = ["sea-query-derive"]
59-
attr = ["sea-query-attr"]
58+
attr = []
6059
hashable-value = ["educe", "ordered-float"]
6160
postgres-array = []
6261
postgres-vector = ["pgvector"]

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ SeaQuery is very lightweight, all dependencies are optional (except `inherent`).
4242

4343
### Feature flags
4444

45-
Macro: `derive` `attr`
45+
Macro: `derive`
4646

4747
Async support: `thread-safe` (use `Arc` inplace of `Rc`)
4848

@@ -247,7 +247,7 @@ assert_eq!(
247247
r#"SELECT "character" FROM "character""#,
248248
r#"WHERE ("size_w" + 1) * 2 = ("size_h" / 2) - 1"#,
249249
r#"AND "size_w" IN (SELECT ln(2.4 ^ 1.2))"#,
250-
r#"AND (("character" LIKE 'D') AND ("character" LIKE 'E'))"#,
250+
r#"AND ("character" LIKE 'D' AND "character" LIKE 'E')"#,
251251
]
252252
.join(" ")
253253
);
@@ -557,7 +557,7 @@ assert_eq!(
557557
r#"CREATE TABLE IF NOT EXISTS "character" ("#,
558558
r#""id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,"#,
559559
r#""font_size" integer NOT NULL,"#,
560-
r#""character" text NOT NULL,"#,
560+
r#""character" varchar NOT NULL,"#,
561561
r#""size_w" integer NOT NULL,"#,
562562
r#""size_h" integer NOT NULL,"#,
563563
r#""font_id" integer DEFAULT NULL,"#,

‎src/lib.rs

+8-9
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
//!
4646
//! ### Feature flags
4747
//!
48-
//! Macro: `derive` `attr`
48+
//! Macro: `derive`
4949
//!
5050
//! Async support: `thread-safe` (use `Arc` inplace of `Rc`)
5151
//!
@@ -180,10 +180,9 @@
180180
//! ```
181181
//!
182182
//! If you're okay with running another procedural macro, you can activate
183-
//! the `derive` or `attr` feature on the crate to save you some boilerplate.
183+
//! the `derive` feature on the crate to save you some boilerplate.
184184
//! For more usage information, look at
185-
//! [the derive examples](https://github.com/SeaQL/sea-query/tree/master/sea-query-derive/tests/pass)
186-
//! or [the attribute examples](https://github.com/SeaQL/sea-query/tree/master/sea-query-attr/tests/pass).
185+
//! [the derive examples](https://github.com/SeaQL/sea-query/tree/master/sea-query-derive/tests/pass).
187186
//!
188187
//! ```rust
189188
//! #[cfg(feature = "derive")]
@@ -203,7 +202,7 @@
203202
//! ```
204203
//!
205204
//! ```rust
206-
//! #[cfg(feature = "attr")]
205+
//! #[cfg(feature = "derive")]
207206
//! # fn test() {
208207
//! use sea_query::{enum_def, Iden};
209208
//!
@@ -223,7 +222,7 @@
223222
//! assert_eq!(CharacterIden::Table.to_string(), "character");
224223
//! assert_eq!(CharacterIden::Foo.to_string(), "foo");
225224
//! # }
226-
//! # #[cfg(feature = "attr")]
225+
//! # #[cfg(feature = "derive")]
227226
//! # test();
228227
//! ```
229228
//!
@@ -846,7 +845,7 @@ pub use types::*;
846845
pub use value::*;
847846

848847
#[cfg(feature = "derive")]
849-
pub use sea_query_derive::{Iden, IdenStatic};
848+
pub use sea_query_derive::{enum_def, Iden, IdenStatic};
850849

851-
#[cfg(feature = "attr")]
852-
pub use sea_query_attr::enum_def;
850+
#[cfg(all(feature = "attr", not(feature = "derive")))]
851+
pub use sea_query_derive::enum_def;

0 commit comments

Comments
 (0)
Please sign in to comment.