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
Chris Tsang
47cbf50c3c
Merge branch 'master' into pulls/361
2021-12-25 17:41:29 +08:00
Billy Chan
b9fe878542
Handling MySQL & SQLite timestamp columns
2021-12-11 14:25:45 +08:00
Billy Chan
af1ffdad83
Rename sea-strum
lib back to strum
2021-12-07 17:21:03 +08:00
Billy Chan
1229287fd8
Support Up to 6 Values Composite Primary Key ( #353 )
...
* Support up to 6 composite primary key
* Test [issues]
* Test [issues]
2021-12-04 20:57:05 +08:00
Jaebum Lee
bc952b3787
Add TryFromU64 trait for DateTime<FixedOffset>
.
...
The timestamp column (with time zone) generates the field with `chrono::DateTime<chrono::FixedOffset>`.
Sadly, `DeriveEntityModel` macro fails because `TryFromU64` is not implemented for this type.
I added the trivial implementation for `chrono::DateTime<chrono::FixedOffset>`.
2021-11-21 23:36:13 -08:00
Billy Chan
4c147a2d24
Rewrite doctests
2021-11-16 16:27:54 +08:00
Billy Chan
892c0fe57d
Support Vec<u8>
primary key
2021-11-02 15:20:27 +08:00
Charles Chege
817e9bdd23
Documetation for the executor module
2021-10-29 10:38:55 +03:00
Chris Tsang
4fd5d56dbf
cargo +nightly fmt
2021-10-04 13:13:36 +08:00
Chris Tsang
af93ea44ad
Fix clippy warnings
2021-10-04 12:11:19 +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
Chris Tsang
fcd969e57c
Use DeriveIden to replace ToString
2021-09-30 22:05:23 +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
Muhannad Alrusayni
5379a23630
Add find_by_statement
for T: TryGetableMany
...
Add `into_values` for `Select<T>`
2021-09-28 00:10:13 +03:00
Muhannad Alrusayni
7742eb2cec
Impl TryGetableMany for (T)
2021-09-27 12:47:14 +03:00
Muhannad Alrusayni
15db5d2933
clean up some comments
2021-09-17 22:45:05 +03:00
Muhannad Alrusayni
3bf26a758a
impl TryFromU64
for tuples types
2021-09-17 22:41:49 +03:00
Muhannad Alrusayni
56dd19ef75
Impl TryGetableMany for diffrent types of generices
2021-09-17 21:59:38 +03:00
Chris Tsang
182c96e384
Fix clippy warning
2021-09-11 15:53:34 +08:00
Chris Tsang
76378d6c84
#133 Implement TryGetable for Vec<u8>
2021-09-07 18:27:13 +08:00
Sam Samai
71926cfd4b
Merge branch 'master' into ss/rocket-example
...
# Conflicts:
# Cargo.toml
2021-09-03 22:33:16 +10:00
Sam Samai
3f41f92690
Order posts by id
2021-09-03 22:20:46 +10:00
Billy Chan
b32fe669fa
Merge pull request #123 from SeaQL/logging
...
Logging
2021-09-03 14:49:52 +08:00
Chris Tsang
d212b62ce5
Fixup
2021-09-03 14:34:20 +08:00
Billy Chan
7f38621c3c
Set clippy deny
2021-09-03 14:26:57 +08:00
Chris Tsang
c8e2232875
Reduce panic
2021-09-03 14:17:07 +08:00
Billy Chan
e72d8a9e04
Use TryGetableMany
2021-09-02 11:26:40 +08:00
Billy Chan
d664985ea9
WIP
2021-09-01 23:24:43 +08:00
Billy Chan
23f2a3d711
Hotfix - git merge conflict
2021-09-01 22:04:43 +08:00
Billy Chan
ab7e7f3401
Merge branch 'master' into primary-key-type
2021-09-01 20:13:25 +08:00
Billy Chan
d14322ad75
WIP (workflow will fail)
2021-09-01 19:05:59 +08:00
Billy Chan
a49f880f4f
WIP: composite primary keys
2021-09-01 18:23:23 +08:00
Billy Chan
0e0ee0ede6
Add TryFromU64 & test Uuid as primary key
2021-09-01 16:53:54 +08:00
Marco Napetti
8f0f8a193b
Fix clippy lint
2021-08-26 19:54:33 +02:00
Marco Napetti
344659f517
Fix test errors
2021-08-26 16:50:05 +02:00
Marco Napetti
4dadfd3f51
restore debug_print! for Mock variant
2021-08-26 16:05:12 +02:00
Marco Napetti
9b9918efc4
Remove impl TryGetable for Option<T>
2021-08-26 15:50:53 +02:00
Billy Chan
106d38d20b
cargo fmt
2021-08-12 22:53:22 +08:00
Chris Tsang
ff8d921343
DateTimeWithTimeZone Postgres support
2021-08-10 18:16:47 +08:00
Chris Tsang
4731f1fd5e
DateTimeWithTimeZone
2021-08-09 17:36:36 +08:00
Billy Chan
1eb490055e
Hotfix - try_get Option<T> directly
2021-08-06 18:23:37 +08:00
Billy Chan
d5447bca88
Hotfix - Postgres types
2021-08-06 12:26:56 +08:00
Sam Samai
6efb06d28b
Merge branch 'master' into ss/test_suite
...
# Conflicts:
# Cargo.toml
2021-07-25 20:41:42 +10:00
Billy Chan
1cdbcceddb
Testing different db on various async runtime ( #53 )
...
* Testing different db on various async runtime
* Test on various runtime
* No explicit cargo build step
* Cargo build with features
* Hotfix
* With actix_rt
* Only tests "runtime-async-std-native-tls" for now
2021-07-22 19:23:21 +08:00
Sam Samai
1d55df9c7b
Merge branch 'master' into ss/test_suite
...
# Conflicts:
# .github/workflows/rust.yml
# Cargo.toml
2021-07-22 21:04:36 +10:00
Billy Chan
22516b8f68
Add Postgres db driver
2021-07-21 19:07:02 +08:00