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
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
ab2f784701
(de)serialize custom JSON types - 2 ( #794 )
...
* de(serialize) custom JSON types
* Rename DeriveTryGetableFromJson -> FromJsonQueryResult
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-07-01 01:27:46 +08:00
Billy Chan
fff738a706
cargo fmt
2022-06-21 11:12:28 +08:00
Billy Chan
5cf4d6022b
Vector of string save as serialized format in db ( #783 )
2022-06-12 22:23:30 +08:00
Billy Chan
cdc70f4fd9
Insert Default ( #589 )
...
* Insert default
* Update sea-query
* Fixup
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-05-09 23:46:38 +08:00
Billy Chan
9687819a7e
Supports time
crate
2022-03-13 18:18:15 +08:00
Chris Tsang
b8a7ae7351
Revert "Insert Default - Inserting ActiveModel
with all attributes NotSet
( #432 )"
...
This reverts commit 33a87d79b1a789e8b47ed21bf22384289af7a487.
2022-02-06 21:52:08 +08:00
Chris Tsang
645a420eb1
cargo fmt
2022-02-06 14:47:45 +08:00
Chris Tsang
33a87d79b1
Insert Default - Inserting ActiveModel
with all attributes NotSet
( #432 )
...
* feat: apply alias on `ColumnRef::SchemaTableColumn`
* build: update sea-query dependency
* feat: insert default
* Use sea-query 0.21
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-02-06 14:39:46 +08:00
Chris Tsang
e63d463155
Merge pull request #489 from SeaQL/date-time-utc-local
...
Support `DateTime<Utc>` & `DateTime<Local>`
2022-02-01 15:25:39 +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
Charles Chege
52f38a10ea
Support the use of chrono::DateTime<Utc> in sea-orm
...
Add documentation for this
Temporarily use a fork to include new Sea-query code
Add tests for DateTimeUtc
Solve Github actions error by add the code to create a table
Assertion accuracy tests
Rectify incorrect format
2022-02-01 14:27:33 +08:00
Billy Chan
76c0d7fff5
Name conflict of foreign key constraints when two entities have more than one foreign keys ( #417 )
...
* fix: name conflict of foreign key constraints when two entities have more than one fk
* test: update test case's foreign keys
* feat: override default name of foreign key constraint
2022-01-28 01:03:24 +08:00
Billy Chan
96a776ae9d
test(Schema): add test cases for Schema::create_enum_from_entity
& Schema::create_enum_from_active_enum
2021-12-22 16:14:17 +08:00
Billy Chan
66a005237c
Update sea-orm to depends on sea-query 0.20.0
2021-12-12 23:03:11 +08:00
Billy Chan
0f164b62d5
Fix related & linked with enum columns ( #376 )
...
* Fix related & linked with enum columns
* Add test cases
2021-12-10 23:41:43 +08:00
Billy Chan
0e4221bd72
Refactoring
2021-11-17 21:24:06 +08:00
Chris Tsang
aff988bd94
Merge pull request #324 from SeaQL/hotfix-custom-types
...
Unknown types could be a newtypes instead of `ActiveEnum`
2021-11-17 16:47:28 +08:00
Billy Chan
0f904e02f0
Refactoring
2021-11-17 10:38:02 +08:00
Billy Chan
36886e74cd
Testing & fixup
2021-11-16 12:04:21 +08:00
Billy Chan
bb78a1d709
More ergonomic DeriveActiveEnum
derive macro
2021-11-03 15:38:42 +08:00
Billy Chan
2f7c9ccda7
Refactoring
2021-11-03 10:56:06 +08:00
Billy Chan
0bbb50b7f6
Merge remote-tracking branch 'origin/master' into active-enum
2021-11-03 10:52:29 +08:00
Billy Chan
d22ff0db5e
Fixup
2021-11-02 18:35:36 +08:00
Billy Chan
892c0fe57d
Support Vec<u8>
primary key
2021-11-02 15:20:27 +08:00
Billy Chan
f88c7259fe
Fixup
2021-10-27 12:50:02 +08:00
Billy Chan
55de1968bb
Add create_enum_from_entity
2021-10-27 12:37:35 +08:00
Billy Chan
cf52839c3a
Typo
2021-10-25 17:12:17 +08:00
Billy Chan
4b1cac7f35
Refactoring
2021-10-25 17:05:27 +08:00
Billy Chan
6059cdd9ad
Remove unused EnumIter
2021-10-25 17:03:10 +08:00
Billy Chan
f20c64988d
Tests all DB
2021-10-25 16:52:02 +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
d525c710ce
Merge remote-tracking branch 'origin/master' into active-enum
2021-10-20 18:43:39 +08:00
Billy Chan
868a469de0
Test integer enum
2021-10-20 18:02:23 +08:00
Billy Chan
32f82a0c9b
Test self referencing relation
2021-10-20 16:38:10 +08:00
Billy Chan
b1e10aec86
Refactoring
2021-10-20 12:23:55 +08:00
Billy Chan
18f37150d7
Fixup
2021-10-20 10:49:26 +08:00
Billy Chan
8627c8d961
Draft ActiveEnum
2021-10-19 19:08:02 +08:00
Chris Tsang
668fb64224
Refactor test suite
2021-10-15 15:46:25 +08:00