43 Commits

Author SHA1 Message Date
Billy Chan
9687819a7e
Supports time crate 2022-03-13 18:18:15 +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
ac804a1642
Imports PaginatorTrait by default making it backward compatible 2021-11-10 15:26:29 +08:00
Billy Chan
6018d3f1b9
Merge remote-tracking branch 'origin/master' into active-enum 2021-11-02 12:18:37 +08:00
Charles Chege
db098d1a03 Documetation for the entity module 2021-10-29 10:39:16 +03:00
Billy Chan
8627c8d961
Draft ActiveEnum 2021-10-19 19:08:02 +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
Ari Seyhun
4f64c66813 Add derive DeriveIntoActiveModel 2021-10-11 14:34:02 +07:00
Billy Chan
01fecbc405
Merge remote-tracking branch 'origin/master' into active-model-behavior 2021-10-04 11:47:38 +08:00
Chris Tsang
a6dfb417e2
Merge pull request #207 from SeaQL/naive-date
Support `chrono::NaiveDate` & `chrono::NaiveTime`
2021-09-30 22:52:31 +08:00
Chris Tsang
ca296bc941 Feature guard macros 2021-09-30 22:25:31 +08:00
Billy Chan
02066cef6e
Support chrono::NaiveTime 2021-09-30 10:34:38 +08:00
Billy Chan
f7e96b3d72
Support chrono::NaiveDate 2021-09-30 10:34:38 +08:00
Billy Chan
ef1eb577b7
Update ActiveModelBehavior API 2021-09-30 10:31:58 +08:00
Chris Tsang
2e1371537a Merge FromQueryResultExt into FromQueryResult 2021-09-17 15:04:37 +08:00
Muhannad Alrusayni
e71a74b0c1 Improve working with raw SQL
- Add `find_by_statement` to `T: FromQueryResult`
- Add `SelectorRaw::from_statement` constructor
2021-09-16 18:06:02 +03:00
Chris Tsang
a186338ff5 Try DeriveRelation 2021-09-07 22:54:39 +08:00
Chris Tsang
0fff7fd054 Rename to DeriveEntityModel 2021-09-07 20:37:51 +08:00
Marco Napetti
a4d70dfa55
Merge branch 'entity-format' into entity_model_macro 2021-09-07 10:09:34 +02:00
Marco Napetti
c273cf0a39 Manage schema_name attribute, add prelude export, update example 2021-09-07 10:04:33 +02:00
Billy Chan
8cde6e46e4
Merge branch 'master' into linked-api 2021-09-03 12:14:39 +08:00
Billy Chan
5073c6f4aa
Relation with optional ForeignKeyAction 2021-09-01 10:35:51 +08:00
Billy Chan
31941d3af6
WIP: Linked (#89) 2021-08-23 23:11:08 +08:00
Billy Chan
8b30ef74a2 Customize column names 2021-08-12 22:53:22 +08:00
Chris Tsang
4731f1fd5e DateTimeWithTimeZone 2021-08-09 17:36:36 +08:00
Chris Tsang
2060e30f06 Entity prelude with external types 2021-08-07 21:01:56 +08:00
Billy Chan
2a1173c174
Add & use OrmError (#36)
* Add & use OrmError

* Rename to SeaErr
2021-06-30 21:08:41 +08:00
Chris Tsang
0b3ea685d5 ColumnDef with builder API to replace sea_query::ColumnType in Entity def 2021-06-19 18:42:26 +08:00
Chris Tsang
890464f913 Save custom ActiveModel 2021-06-05 22:17:22 +08:00
Chris Tsang
6a26b8cc17 ActiveModelBehavior 2021-06-03 18:57:26 +08:00
Chris Tsang
f706eb261d Update Statement 2021-06-02 23:59:44 +08:00
Chris Tsang
2169d1284f Refactor ActiveModelTrait 2021-06-02 22:35:17 +08:00
Chris Tsang
c65cb9687b Refactor Trait bounds 2021-06-02 19:09:00 +08:00
Chris Tsang
2fc4520ee8 Refactor Query as traits 2021-06-02 00:36:06 +08:00
Chris Tsang
b1afd5da3e ActiveValue 2021-05-28 13:09:31 +08:00
Billy Chan
7aaeef834c
Move to separate DeriveActiveModel, cargo fmt 2021-05-25 18:27:44 +08:00
Chris Tsang
9c42ab2552 ActiveModel 2021-05-25 01:16:48 +08:00
Chris Tsang
62b3c37e20 cargo fmt 2021-05-17 19:51:26 +08:00
Chris Tsang
106bb20cb5 Derive FromQueryResult 2021-05-17 19:48:53 +08:00
Billy Chan
07b58551af
Add proc_macro 2021-05-17 16:59:34 +08:00
Chris Tsang
00f2e125df Redesign EntityName + entity::prelude 2021-05-09 19:03:54 +08:00