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
65f9c70dd3
cargo fmt
2021-11-18 18:07:24 +08:00
Billy Chan
42404eb525
Fixup
2021-11-16 17:56:22 +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
d66538d7bc
Edit docs
2021-11-14 20:54:15 +08:00
Chris Tsang
aaf6c2555d
Refactor and add stream()
to SelectorRaw
2021-11-14 20:49:04 +08:00
Chris Tsang
5f2fa55253
Edit docs
2021-11-14 16:58:52 +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
23498892b0
Add PaginatorTrait and CountTrait
2021-11-09 21:33:55 +08:00
Chris Tsang
03d90d8630
Docs
2021-11-09 16:21:12 +08:00
Billy Chan
429b920ded
Fixup
2021-11-09 11:05:55 +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
0eafacc2a1
Try returning on MariaDB
2021-11-08 17:36:30 +08:00
Billy Chan
732d080020
Update docs
2021-11-08 15:24:51 +08:00
Billy Chan
2f7cffa74d
Fix test cases
2021-11-08 15:12:56 +08:00
Billy Chan
623873678b
Handle "None of the database rows are affected" for Postgres
2021-11-08 15:12:47 +08:00
Billy Chan
50605c731b
FIXME: breaking behaviors
2021-11-05 22:39:25 +08:00
Billy Chan
a977572762
Update with returning for Postgres
2021-11-05 22:13:52 +08:00
Billy Chan
52ff9430e1
Docs
2021-11-05 18:25:20 +08:00
Billy Chan
c39a3b8cb2
Insert with returning for Postgres
2021-11-05 18:20:25 +08:00
Billy Chan
c5468eb92f
Use "marlon-sousa/sea-query"
2021-11-05 12:41:49 +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
c0761a949b
cargo fmt
2021-10-19 18:50:45 +08:00
Chris Tsang
55dbdb7626
#249 Build with mock only
2021-10-15 23:04:14 +08:00
Billy Chan
80d3ddc030
Use backed-up primary key as last insert id before getting it from db driver
2021-10-15 11:51:05 +08:00
Chris Tsang
069040be8b
Tweak lifetime
2021-10-12 15:07:25 +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
018f7dd19f
Streaming for MockConnection
2021-10-09 21:14:24 +08:00
Billy Chan
2f90207d64
Remove PrimaryKeyValue
trait
2021-10-08 18:10:19 +08:00
Chris Tsang
a2ec6cd351
Rename MockTransaction -> Transaction
2021-10-07 18:00:11 +08:00
Chris Tsang
51b30ee837
Merge branch 'master' into transaction-3
2021-10-07 17:21:59 +08:00
Chris Tsang
30b90076ae
Merge pull request #211 from SeaQL/error-no-record-updated
...
Throw error if none of the db rows are affected
2021-10-07 16:59:42 +08:00
Billy Chan
8caed80fd7
Merge branch 'master' into last-insert-id
2021-10-06 22:38:43 +08:00
Chris Tsang
125ee40161
Merge pull request #211 from SeaQL/error-no-record-updated
...
Throw error if none of the db rows are affected
2021-10-05 22:01:10 +08:00
Chris Tsang
df4df87d09
Rename Transaction -> MockTransaction
2021-10-04 21:37:12 +08: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
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
Chris Tsang
01a5c1c6dd
Fix build errors
2021-10-04 11:43:21 +08:00
Marco Napetti
02ebc9745c
Transaction 3
2021-10-04 11:39:16 +08:00