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
Chris Tsang
1a37212940
Comment
2022-05-11 21:53:02 +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
Allen
bdd9133aa6
fix lints and warnings
...
also clean up impl_into_active_value macro
2022-04-09 16:52:47 -07:00
Billy Chan
c504f42cb3
Fixing and testing into_json
of various field types ( #539 )
...
* Fixing and testing `into_json` of various types
* Support `into_json` for UUID
* Testing `into_json` for UUID
* Fixup
2022-03-24 22:38:45 +08:00
Shouvik Ghosh
12f66618f9
Added delete_by_id ( #590 )
...
* Added delete_by_id
* Added an integration test
* Added composite key example
* Remove extra find_by_id in delete_by_id test
* Added unit test with composite primary key
2022-03-21 14:41:05 +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
Chris Tsang
d5c9c65079
Revert save
to return Self
2021-12-26 00:13:56 +08:00
Chris Tsang
65fe5910ec
Merge pull request #396 from SeaQL/active-value-continue
...
Add wrapper method `ModelTrait::delete`
2021-12-24 23:51:08 +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
17631512bb
feat(Model): add wrapper method delete
2021-12-21 18:24:05 +08:00
Billy Chan
adfb9ead54
Rework ActiveValue
( #340 )
...
* WIP
* Fixup
* Fixup
* Update docs & rename `unset`
* Deprecate `Unset()` and reexport `ActiveValue::NotSet`
* Docs
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2021-12-19 02:22:30 +08:00
Billy Chan
5104cd3573
Insert & Update Return Model
( #339 )
...
* Update insert & update API
* Update test cases
* Update README
* Fix clippy warnings
* Fixup
* Fixup
2021-12-18 14:30:10 +08:00
Billy Chan
006d35313b
Fix clippy warnings
2021-12-17 11:39:53 +08:00
Billy Chan
f5f6a6774f
Codegen ActiveEnum & Create Enum From ActiveEnum ( #348 )
2021-12-15 00:52:50 +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
a9f6275a9e
Run timestamp_tests for all databases
2021-12-11 14:25:45 +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
0deedddf28
Merge pull request #292 from SeaQL/returning
...
Returning
2021-11-17 17:41:28 +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
fd50ffd5ea
Merge remote-tracking branch 'origin/master' into returning
2021-11-16 14:44:12 +08:00
Billy Chan
3d5f4424a8
Fixup
2021-11-16 13:09:07 +08:00
Billy Chan
36886e74cd
Testing & fixup
2021-11-16 12:04:21 +08:00
Billy Chan
f504ad1eef
Refactor Schema
2021-11-11 15:11:52 +08:00
Billy Chan
f975223d9e
Fixup
2021-11-10 16:08:06 +08:00
Billy Chan
ac804a1642
Imports PaginatorTrait
by default making it backward compatible
2021-11-10 15:26:29 +08:00
Billy Chan
1905f62430
cargo fmt
2021-11-10 14:58:06 +08:00
Billy Chan
66c23c85db
Revert MySQL & SQLite returning support
2021-11-10 14:42:19 +08:00
jasper
05181994d3
Move count to PaginatorTrait
2021-11-10 08:57:05 +08:00
jasper
4b11a10680
Update examples and test
2021-11-09 22:29:48 +08:00
jasper
23498892b0
Add PaginatorTrait and CountTrait
2021-11-09 21:33:55 +08:00
Billy Chan
cc035d7aa7
Refactoring
2021-11-09 18:14:13 +08:00
Billy Chan
ec637b26a0
Returning support for SQLite
2021-11-09 16:10:52 +08:00
Billy Chan
8020ae1209
Fixup
2021-11-09 12:23:49 +08:00
Billy Chan
24fab66d17
Try
2021-11-09 12:11:00 +08:00
Billy Chan
429b920ded
Fixup
2021-11-09 11:05:55 +08:00
Billy Chan
30a50ca75d
Try
2021-11-09 10:22:31 +08:00
Billy Chan
17232063b3
This will fail loll
2021-11-08 22:29:18 +08:00
Billy Chan
afdb1afeb8
This will fail loll
2021-11-08 22:12:09 +08:00
Billy Chan
30f43b64c6
Fixup
2021-11-08 19:03:06 +08:00