Billy Chan
a6bd91a78b
Use ActiveEnum
field as composite primary key ( #1414 )
...
* Use ActiveEnum field as part of composite primary key
* Try unique constraint failed
2023-01-30 21:47:49 +08:00
Billy Chan
e2b796b093
Cont. feat: expose database connection to ActiveModelBehaviour
's methods ( #1328 )
...
* feat: expose database connection to `ActiveModelBehaviour`'s methods (#1145 )
* Make ActiveModelTrait async
* Add tests
* refactoring
Co-authored-by: teenjuna <53595243+teenjuna@users.noreply.github.com>
2023-01-12 17:22:46 +08:00
Billy Chan
4f5a15a99f
Support various UUID formats that are available in uuid::fmt
module ( #1325 )
...
* Support various UUID formats that are available in `uuid::fmt` module
* clippy
* fixup
2023-01-11 14:13:15 +08:00
Billy Chan
d205338f3f
Try custom vector field ( #1273 )
2022-12-19 17:08:32 +08:00
Billy Chan
08cb44028e
Support bigdecimal::BigDecimal ( #1258 )
...
* Fix: fields with type `Option<T>` are always nullable
* Support BigDecimal
2022-12-01 12:53:19 +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
wdcocq
880147c596
Blanket IntoActiveValue implementations so custom db types are supported ( #833 )
...
* Add blanket implementations of IntoActiveValue for optional values
* Add a compile test for DeriveIntoActiveModel
2022-10-11 23:47:17 +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
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
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
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
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
0bbb50b7f6
Merge remote-tracking branch 'origin/master' into active-enum
2021-11-03 10:52:29 +08:00
Billy Chan
892c0fe57d
Support Vec<u8>
primary key
2021-11-02 15:20:27 +08:00
Billy Chan
d525c710ce
Merge remote-tracking branch 'origin/master' into active-enum
2021-10-20 18:43:39 +08:00
Billy Chan
32f82a0c9b
Test self referencing relation
2021-10-20 16:38:10 +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