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
Chris Tsang
5966100244
ColumnTrait extends FromStr
2021-08-23 01:16:00 +08:00
Chris Tsang
4c3bc32fd8
Refactor test case
2021-08-23 01:12:53 +08:00
Chris Tsang
332ab3ccf5
Remove derive PartialEq
2021-08-22 22:15:40 +08:00
Ari Seyhun
46a4cafaa9
Implement FromStr
for DeriveColumn
2021-08-22 02:00:20 +08:00
Billy Chan
b1d28db5ad
Fix clippy warnings
2021-08-10 11:03:41 +08:00
Chris Tsang
dbbb220180
Support sea-query 0.12.9
2021-08-08 15:44:26 +08:00
Billy Chan
6224bb6d5f
Support subquery
2021-07-27 21:46:01 +08:00
Sam Samai
c9833893c0
Column type can be Uuid
2021-07-20 16:28:38 +10:00
Chris Tsang
9334d4ff5d
DbBackend alias
2021-07-17 22:03:41 +08:00
Chris Tsang
7be1daacd3
Fix clippy
2021-07-17 20:34:07 +08:00