Billy Chan
8eb095385d
Migration ( #335 )
...
* Refactor `ConnectionTrait`
* Refactoring
* Build index & foreign key statements
* Fix imports
* Fixup
* Rocket example with migration
* async-std compatible with the tokio 1.0 runtime
* Use reexported dependency
* Compile without selecting any db backend
* Updating sea-orm-cli dep
* sea-orm-cli migrate commands
* cargo fmt
* Test [cli]
* Refactoring
* Clap app name should be "sea-orm-cli"
* Correctly capture MIGRATION_DIR
* Rename README
* Add `sea-orm-cli migrate init` command
* Update README
* Try restructured sea-query dependency (SeaQL/sea-schema#41 )
* Set `DATABASE_URL` environment variable
2022-02-05 20:34:54 +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
0f5516b6bf
fix: support up to 6-ary composite primary key ( #423 )
2022-01-14 01:16:39 +08:00
Chris Tsang
d5c9c65079
Revert save
to return Self
2021-12-26 00:13:56 +08:00
Chris Tsang
09fd9ba725
Docs
2021-12-19 02:23:23 +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
7298fdeda9
Rewrite doctests
2021-11-16 17:35:49 +08:00
Billy Chan
4c147a2d24
Rewrite doctests
2021-11-16 16:27:54 +08:00
Billy Chan
fd50ffd5ea
Merge remote-tracking branch 'origin/master' into returning
2021-11-16 14:44:12 +08:00
Chris Tsang
5f2fa55253
Edit docs
2021-11-14 16:58:52 +08:00
Billy Chan
a977572762
Update with returning for Postgres
2021-11-05 22:13:52 +08:00
Billy Chan
c39a3b8cb2
Insert with returning for Postgres
2021-11-05 18:20:25 +08:00
Billy Chan
fcf3ea9407
Try fixing some doctest errors
2021-10-31 14:40:36 +08:00
Charles Chege
30814f0053
Provide further exaplanation for
...
p[200pub struct ActiveValue<V>
Add a code snippet for a simple example
2021-10-31 09:03:02 +03:00
Charles Chege
a22350914c
Solutions for doc tests
2021-10-30 18:55:53 +03:00
Charles Chege
870ca3ffb0
Run fmt --all
2021-10-30 12:00:07 +03:00
Charles Chege
e0023611a2
Improve documentation for the drivers and the entity
...
Provide module level code example on how to create an Entity, Model, ActiveModel, Column and PrimaryKey
2021-10-30 11:15:43 +03:00
Charles Chege
db098d1a03
Documetation for the entity module
2021-10-29 10:39:16 +03:00
Chris Tsang
c0761a949b
cargo fmt
2021-10-19 18:50:45 +08:00
Chris Tsang
10b101b142
Test case for DeriveIntoActiveModel
2021-10-16 17:46:08 +08:00
Billy Chan
aa5ccb9216
Hotfix - ActiveModel::insert()
trigger ActiveModelBehavior::after_save()
2021-10-15 17:43:39 +08:00
Chris Tsang
760c439c83
Unit test DeriveIntoActiveModel
2021-10-13 18:58:00 +08:00
Chris Tsang
d5e95b0f8f
Merge pull request #240 from Acidic9/feat/into-active-model-derive
...
Add derive `DeriveIntoActiveModel` and `IntoActiveValue` trait
2021-10-13 18:30:09 +08:00
Billy Chan
6ecc3138c3
Use new ActiveValue::into_value()
2021-10-12 21:14:40 +08:00
Billy Chan
75e625fee9
ActiveModelBehavior without db connection
2021-10-12 20:42:42 +08:00
Billy Chan
5339696da2
Merge branch 'master' into active-model-behavior
2021-10-12 20:37:00 +08:00
Ari Seyhun
b582d3aac9
Merge branch 'master' of github.com:SeaQL/sea-orm into feat/into-active-model-derive
2021-10-12 18:31:34 +07:00
Ari Seyhun
1a9704eaad
Add support for Option<Option<T>>
into active model
2021-10-12 18:27:45 +07:00
Chris Tsang
7bc6477091
Merge branch 'master' into transaction-3
2021-10-12 14:24:35 +08:00
Chris Tsang
3fd33ab53c
Merge branch 'master' into last-insert-id
2021-10-12 13:59:41 +08:00
Ari Seyhun
8667b2ddfc
Add trait IntoActiveValue
2021-10-11 14:33:47 +07:00
Billy Chan
23215c8dd5
fix clippy warnings
2021-10-08 18:22:25 +08:00
Billy Chan
2f90207d64
Remove PrimaryKeyValue
trait
2021-10-08 18:10:19 +08:00
Billy Chan
35b8eb9a4d
ActiveValue::take()
& ActiveValue::into_value()
without unwrap()
2021-10-04 12:17:31 +08:00
Marco Napetti
02ebc9745c
Transaction 3
2021-10-04 11:39:16 +08:00
Billy Chan
5497810afb
Remove unnecessary trait bounds
2021-09-30 11:49:27 +08:00
Billy Chan
ef1eb577b7
Update ActiveModelBehavior
API
2021-09-30 10:31:58 +08:00
Billy Chan
f79a417150
Remove ValueType: Default
2021-09-27 18:01:38 +08:00
Chris Tsang
c0ee423f0a
Refactor ActiveModel insert logic
2021-09-10 17:32:19 +08:00
Chris Tsang
19ec35f1b5
Revert breaking changes
2021-09-10 12:58:28 +08:00
Billy Chan
11208d627b
Move ActiveModel CRUD actions into ActiveModelTrait
2021-09-10 12:58:27 +08:00
Billy Chan
f4d1a52791
Change update behavior, add ActiveModel insert & update
2021-09-10 12:56:41 +08:00
Billy Chan
d14322ad75
WIP (workflow will fail)
2021-09-01 19:05:59 +08:00
Billy Chan
ccfda51a5e
WIP
2021-08-28 23:48:13 +08:00
Billy Chan
e65db62e13
Merge branch 'master' into improve-doc-test
2021-07-12 18:47:25 +08:00
Billy Chan
b09aed3ff1
Add more doc
2021-07-12 11:45:20 +08:00
Chris Tsang
6ff5a32b7a
cargo fmt
2021-07-11 22:08:37 +08:00