Chris Tsang
ae899d6744
Remove sea-query's Iden macro
2023-07-13 10:36:56 +01:00
darkmmon
866025a733
implement DeriveIden in sea-orm only ( #1740 )
...
* WIP, implementing Iden
* completed implementation for DeriveIden and added basic test cases
* added feature flag to prevent sea-orm::sea-query::DeriveIden from crashing when sea-query is not used
* fixed doc test and adjusted test case
* enable `sea-query-derive`'s `sea-orm` feature
* Bump `sea-query-derive` to v0.4
* Update Cargo.toml
* Update Cargo.toml
* adjusted test cases and updated so that iden attribute will not be snake cased
* Update Cargo.toml
* Update main.rs
---------
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-07-13 16:28:35 +08:00
Billy Chan
33f3f9282d
feat: implement ColumnTypeTrait
for ColumnDef
( #1576 )
2023-05-29 20:35:02 +08:00
Billy Chan
6833529441
feat: String
parameters accept any Into<String>
( #1439 )
2023-04-11 12:51:51 +08:00
Billy Chan
737a894e27
Upgrade sea-query
to 0.29 ( #1562 )
...
* Upgrade `sea-query` to 0.29
* clippy
* More upgrades
* fixup
2023-03-22 17:24:42 +08:00
Billy Chan
8680c46177
Refactor select_as
& save_as
implementation generated by derive macros ( #1442 )
2023-02-04 15:53:10 +08:00
Billy Chan
08a5e87e22
Replace SeaORM's ColumnType
( #1395 )
...
* Replace SeaORM's `ColumnType`
* Bump SeaQuery's version
* Fix merge conflict
* refactor
2023-01-29 11:06:01 +08:00
Billy Chan
71dbffc725
Fix clippy ( #1426 )
...
* Fix clippy
* Fix clippy
2023-01-27 18:50:20 +08:00
Chris Tsang
395203bd06
Docs
2023-01-12 14:09:26 +08:00
Billy Chan
e9df3aa01d
Casting columns as a different data type on select, insert and update ( #1304 )
...
* Cast select and value
* Refactoring
* Test casting Postgres citext
* Fixup
* Revert
* Add test cases
* Fixup
* Rename methods
2023-01-12 14:56:11 +08:00
Chris Tsang
bb5dead0c8
Docs
2023-01-12 13:55:39 +08:00
Panagiotis Karatakis
c83c674612
Add is_null getter for ColumnDef struct ( #1381 )
...
* Add is_null getter for ColumnDef struct
* Update src/entity/column.rs
* Update src/entity/column.rs
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-01-10 16:36:02 +08:00
Billy Chan
e246d3faaf
Cont. Upgrade to SeaQuery 0.28.0 ( #1366 )
...
* Upgrade to SeaQuery 0.28.0
* Remove unnecessary heap allocation
* Upgrade sea-query-binder
* Upgrade sea-schema
* Fix
* Upgrade sea-schema
* refactoring
Co-authored-by: Ivan Krivosheev <py.krivosheev@gmail.com>
2023-01-05 20:41:28 +08:00
Billy Chan
4d8645ae8b
Support Vector of enum for Postgres ( #1210 )
...
* Support Vector of enum for Postgres
* Fix clippy
* Add tests for integer array
* Fix dependency
* Bump sea-query to 0.27.2
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-11-15 13:50:05 +08:00
Billy Chan
b5b9790252
Support array datatype in PostgreSQL ( #1132 )
...
* PostgreSQL array (draft)
* Fixup
* Fixup
* Fixup
* Fixup
* Fixup
* Refactoring
* generate entity for Postgres array fields
* Add tests
* Update Cargo.toml
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-10-23 18:26:57 +08:00
Billy Chan
77bddd85a5
Fixup
2022-09-22 15:07:37 +08:00
Billy Chan
a80c33ef4c
Rewrite enum and text casting ( #973 )
...
* Rewrite enum and text casting
* Add doc tests
* Refactoring
2022-09-05 00:38:12 +08:00
Billy Chan
43495de0aa
Fix clippy warnings - 1 ( #967 )
...
* Fix clippy warnings
* cargo fmt
* Fix clippy warnings
* cargo fmt
2022-08-12 20:02:53 +08:00
Billy Chan
65017bdc08
Add various blob column types with size ( #850 )
2022-07-10 22:52:50 +08:00
Billy Chan
d6831e5295
Bump version of sqlx, sea-query, sea-schema, time and uuid ( #834 )
...
* Bump version of sqlx, sea-query, sea-schema, time and uuid
* PostgreSQL `u32` was wrapped in `Oid` (launchbadge/sqlx#1602 )
* Update test cases
* Fix clippy warnings
* cargo fmt
* Fix clippy warnings
* Bump sea-schema to ^0.9.2
* Update test cases
* Pin on sea-query minor version
2022-07-05 01:05:11 +08:00
Billy Chan
73701fef9a
Codegen Unsigned Integer - 2 ( #397 )
...
* feat: codegen unsigned integer
* feat: apply alias on `ColumnRef::SchemaTableColumn`
* Update SQLite test cases, quote identifier with double quotes
* Bump sea-query version to 0.22
* Add dummy line
* Tests [cli] and [issues]
* update sea-schema
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-03-14 12:40:02 +08:00
Billy Chan
8145088814
Refactoring
...
`ColumnDef` with default value
Cargo fmt
Update docs
Fixup
Support `DateTimeLocal`
Update docs
Codegen write db timestamp column as `DateTimeUtc` type
Update dependency
Merge branch 'sea-query/add-new-column-ref' into pr/429
feat: apply alias on `ColumnRef::SchemaTableColumn`
2022-02-01 14:29:03 +08:00
Billy Chan
0f904e02f0
Refactoring
2021-11-17 10:38:02 +08:00
Billy Chan
cef51ddd3f
Use SeaQL/sea-query#188
2021-11-16 18:45:21 +08:00
Billy Chan
47e2486ead
Refactoring
2021-11-05 16:25:55 +08:00
Billy Chan
10f3de0f9d
Only eq
& ne
operators with enum casting
2021-11-05 11:13:31 +08:00
Billy Chan
67bb168e49
Correctly apply filters on enum columns
2021-11-04 11:40:05 +08:00
Billy Chan
65542301da
Add docs
2021-11-02 14:25:18 +08:00
Billy Chan
6018d3f1b9
Merge remote-tracking branch 'origin/master' into active-enum
2021-11-02 12:18:37 +08:00
Charles Chege
db098d1a03
Documetation for the entity module
2021-10-29 10:39:16 +03:00
Billy Chan
fe64d53b45
Merge remote-tracking branch 'origin/master' into active-enum
2021-10-27 13:24:35 +08:00
Billy Chan
ded28be2c0
Refactoring
2021-10-26 18:58:06 +08:00
Billy Chan
2ee376ddd1
Try EnumValue
2021-10-26 16:22:24 +08:00
Billy Chan
f20c64988d
Tests all DB
2021-10-25 16:52:02 +08:00
Chris Tsang
5daa9abd38
#267 Added is_null
and is_not_null
2021-10-23 15:41:33 +08:00
Billy Chan
b65d441dea
Fix clippy warnings
2021-10-21 16:26:42 +08:00
Billy Chan
80c72004d1
Try Postgres enum
2021-10-21 15:43:50 +08:00
Billy Chan
734608471c
WIP
2021-10-20 18:54:08 +08:00
Billy Chan
8627c8d961
Draft ActiveEnum
2021-10-19 19:08:02 +08:00
Chris Tsang
7c82670d12
Doc
2021-10-02 01:17:32 +08:00
Billy Chan
088bfd01e7
Add unit tests
2021-09-30 11:19:17 +08:00
baoyachi
2ccc8c527a
cargo fmt
2021-09-27 11:49:20 +08:00
Chris Tsang
f22d93ce21
Unit test for DeriveEntityModel
2021-09-26 16:33:04 +08:00
Billy Chan
c9047d49e7
Update README & lib.rs
2021-09-20 18:30:31 +08:00
Billy Chan
37d390e500
WIP
2021-09-17 19:04:18 +08:00
Chris Tsang
8d8415817d
Add nullable
to ColumnDef
2021-09-06 17:11:19 +08:00
Billy Chan
5060890888
cargo +nightly fmt
2021-09-03 14:56:58 +08:00
Billy Chan
ba4b938b69
Revert ColumnType::Binary changes
2021-09-01 13:02:57 +08:00
Billy Chan
5fbc7b146a
Refactoring & Testing
2021-08-31 18:31:01 +08:00
Billy Chan
d1d37fab07
cargo fmt
2021-08-31 12:49:33 +08:00