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
Billy Chan
67bb168e49
Correctly apply filters on enum columns
2021-11-04 11:40:05 +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