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
Marco Napetti
e80aa07c7c
Add Send to StreamTrait ( #622 )
...
* update ouroboros
* Add Send to StreamTrait
2022-03-22 17:17:07 +08:00
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
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
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
66a005237c
Update sea-orm to depends on sea-query 0.20.0
2021-12-12 23:03:11 +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
1aea3f6c6c
Delete::many
with TableRef
2021-12-08 15:56:37 +08:00
lz1998
273dc0dd1a
add offset and limit ( #351 )
...
* add offset and limit
* move offset&limit to QuerySelect
2021-12-03 01:12:49 +08:00
Chris Tsang
5f2fa55253
Edit docs
2021-11-14 16:58:52 +08:00
Billy Chan
a95d99e186
Refactoring
2021-11-11 12:12:53 +08:00
Billy Chan
9c1646b198
Fixup
2021-11-10 15:53:37 +08:00
Billy Chan
47e2486ead
Refactoring
2021-11-05 16:25:55 +08:00
Billy Chan
6018d3f1b9
Merge remote-tracking branch 'origin/master' into active-enum
2021-11-02 12:18:37 +08:00
Charles Chege
a9b6f8cc83
Documetation for the query module
2021-10-29 10:38:30 +03:00
Billy Chan
fe64d53b45
Merge remote-tracking branch 'origin/master' into active-enum
2021-10-27 13:24:35 +08:00
Billy Chan
e04495b94d
Refactoring
2021-10-27 11:28:33 +08:00
Billy Chan
fac528a369
Refactoring
2021-10-27 10:58:38 +08:00
Billy Chan
ded28be2c0
Refactoring
2021-10-26 18:58:06 +08:00
Billy Chan
db22e70c63
Refactoring
2021-10-26 17:51:36 +08:00
Billy Chan
2ee376ddd1
Try EnumValue
2021-10-26 16:22:24 +08:00
Chris Tsang
5daa9abd38
#267 Added is_null
and is_not_null
2021-10-23 15:41:33 +08:00
Forest Anderson
44da1cab0b
Rearranged files, added fmt
2021-10-22 11:24:41 +08:00
Billy Chan
20c66b2f05
Refactoring
2021-10-21 15:50:18 +08:00
Billy Chan
80c72004d1
Try Postgres enum
2021-10-21 15:43:50 +08:00
Billy Chan
01eff84ce8
Join with table alias
2021-10-15 22:28:39 +08:00
Chris Tsang
3a6e55ced1
cargo fmt
2021-10-12 14:52:11 +08: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
Chris Tsang
edc2e6500d
Merge pull request #223 from SeaQL/active-value-api
...
`ActiveValue::take()` & `ActiveValue::into_value()` without `unwrap()`
2021-10-12 12:57:17 +08:00
Billy Chan
2f90207d64
Remove PrimaryKeyValue
trait
2021-10-08 18:10:19 +08:00
Chris Tsang
51b30ee837
Merge branch 'master' into transaction-3
2021-10-07 17:21:59 +08:00
Billy Chan
8caed80fd7
Merge branch 'master' into last-insert-id
2021-10-06 22:38:43 +08:00
Chris Tsang
632290469b
Fixup
2021-10-04 21:24:37 +08:00
baoyachi. Aka Rust Hairy crabs
b74b1f343f
Add debug_query and debug_query_stmt macro ( #189 )
2021-10-04 13:12:18 +08:00
Billy Chan
35b8eb9a4d
ActiveValue::take()
& ActiveValue::into_value()
without unwrap()
2021-10-04 12:17:31 +08:00
Billy Chan
3955abb14c
Merge remote-tracking branch 'origin/master' into last-insert-id
2021-10-04 11:51:20 +08:00
Chris Tsang
e7b822c65d
cargo fmt
2021-10-04 11:44:02 +08:00
Marco Napetti
02ebc9745c
Transaction 3
2021-10-04 11:39:16 +08:00
Chris Tsang
7c82670d12
Doc
2021-10-02 01:17:32 +08:00
Billy Chan
5497810afb
Remove unnecessary trait bounds
2021-09-30 11:49:27 +08:00
Billy Chan
a241bc9d7b
Merge branch 'master' into last-insert-id
2021-09-30 11:28:29 +08:00
Billy Chan
b716c9ed57
cargo fmt
2021-09-30 11:19:26 +08:00
Chris Tsang
beb3ec62dc
Add example usage of Condition
...
https://github.com/SeaQL/sea-query/issues/144
2021-09-29 13:54:36 +08:00
Billy Chan
ba66de16b6
Merge remote-tracking branch 'origin/master' into last-insert-id
2021-09-28 18:23:30 +08:00
Billy Chan
f79a417150
Remove ValueType: Default
2021-09-27 18:01:38 +08:00
Billy Chan
e558dc8584
Move impl Linked
to entity_linked module
2021-09-27 12:13:57 +08:00
Billy Chan
a4f2e3c2a8
Test cases with more level of joins
2021-09-27 11:45:19 +08:00