112 Commits

Author SHA1 Message Date
Marco Napetti
0e1c825e9e Stream metrics 2022-05-31 12:38:38 +02: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
f3a7a1398a
Merge branch 'master' into pulls/471 2022-03-07 15:52:12 +08:00
Bastian
47f2f4cec8
Easy joins with MockDatabase #447 (#455)
* Easy joins with MockDatabase #447

* fix MR

* add unit test

* Add test cases

* Cargo fmt

Co-authored-by: Bastian Schubert <bastian.schubert@crosscard.com>
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-02-06 14:45:51 +08:00
Chris Tsang
e305c6669c
Merge pull request #493 from SeaQL/max-lifetime-connection-opt
Add `max_lifetime` connection option
2022-02-05 20:50:39 +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
15dc9576ea
Add max_lifetime connection option 2022-01-28 11:51:44 +08:00
Sebastian Pütz
949e3115f5 Make TransactionStream::build sync 2022-01-19 23:55:26 +01:00
Sebastian Pütz
f012ccaec3 Add Send bound to streams. 2022-01-19 20:46:10 +01:00
Billy Chan
006d35313b
Fix clippy warnings 2021-12-17 11:39:53 +08:00
Billy Chan
4072e74284
cargo fmt 2021-12-17 11:14:54 +08:00
Marco Napetti
9a342546f3 use macro to simplify code, add failure boolean 2021-12-10 10:09:09 +01:00
Marco Napetti
aaf11dd265 Into doesn't works 2021-12-09 19:17:41 +01:00
Marco Napetti
4abe8310a5 Per-connection metric 2021-12-09 19:03:46 +01:00
Marco Napetti
6b94673dd9 First metric and tracing implementation 2021-12-09 15:12:41 +01:00
Billy Chan
fd50ffd5ea
Merge remote-tracking branch 'origin/master' into returning 2021-11-16 14:44:12 +08:00
Billy Chan
f4008f9f7c
Suppress ouroboros missing docs warnings (#288)
* Suppress `ouroboros` missing docs warnings

* Suppress warnings
2021-11-15 11:14:32 +08:00
Chris Tsang
5f2fa55253 Edit docs 2021-11-14 16:58:52 +08:00
Billy Chan
66c23c85db
Revert MySQL & SQLite returning support 2021-11-10 14:42:19 +08:00
Billy Chan
cc035d7aa7
Refactoring 2021-11-09 18:14:13 +08:00
Chris Tsang
03d90d8630 Docs 2021-11-09 16:21:12 +08:00
Billy Chan
ec637b26a0
Returning support for SQLite 2021-11-09 16:10:52 +08:00
Billy Chan
533c3cf175
Try 2021-11-09 15:38:28 +08:00
Billy Chan
24fab66d17
Try 2021-11-09 12:11:00 +08:00
Billy Chan
429b920ded
Fixup 2021-11-09 11:05:55 +08:00
Billy Chan
3e6423aa8a
This will fail loll 2021-11-08 22:55:00 +08:00
Billy Chan
17232063b3
This will fail loll 2021-11-08 22:29:18 +08:00
Billy Chan
afdb1afeb8
This will fail loll 2021-11-08 22:12:09 +08:00
Billy Chan
2f0ac4ca1d
Fixup 2021-11-08 20:11:44 +08:00
Billy Chan
30f43b64c6
Fixup 2021-11-08 19:03:06 +08:00
Billy Chan
80c0d69733
Merge remote-tracking branch 'origin/master' into returning 2021-11-08 17:37:54 +08:00
Billy Chan
0eafacc2a1
Try returning on MariaDB 2021-11-08 17:36:30 +08:00
Chris Tsang
3df0b941c8
Merge pull request #258 from SeaQL/active-enum
Enumeration
2021-11-08 15:53:25 +08:00
Chris Tsang
6a0db92c8b #290 Add option to disable SQLx logging 2021-11-04 23:36:56 +08:00
Billy Chan
0bbb50b7f6
Merge remote-tracking branch 'origin/master' into active-enum 2021-11-03 10:52:29 +08:00
Billy Chan
158893c540
Enable missing_docs lint 2021-11-02 14:31:28 +08:00
Billy Chan
6018d3f1b9
Merge remote-tracking branch 'origin/master' into active-enum 2021-11-02 12:18:37 +08:00
Charles Chege
a1382b1b41 Fix merge conflicts from SeaQL/sea-orm master branch 2021-10-29 10:44:09 +03:00
Charles Chege
91b9e542af Documetation for the database modeule 2021-10-29 10:37:10 +03:00
Chris Tsang
8338c23341 Do not override max_connections for SQLite 2021-10-29 14:24:54 +08:00
Charles Chege
642994a194 Documentation for the stream module 2021-10-28 15:49:28 +03:00
Billy Chan
55de1968bb
Add create_enum_from_entity 2021-10-27 12:37:35 +08:00
Forest Anderson
bcc5b5066a Changed manual url parsing to use Url crate 2021-10-16 23:19:48 -04:00
Chris Tsang
09324db1b0 Stream example 2021-10-16 01:02:25 +08:00
Chris Tsang
75882b34cb Transaction with BEGIN 2021-10-14 18:33:13 +08:00
Chris Tsang
1d6e6066cd Allow disable SQLx logging 2021-10-13 16:41:51 +08:00
Chris Tsang
bf595ca926 Use Figment config from Rocket 2021-10-13 15:54:49 +08:00
Chris Tsang
c673017b97 ConnectOptions 2021-10-13 02:40:33 +08:00
Chris Tsang
ecaa0dca18 Edit 2021-10-11 18:50:05 +08:00
Chris Tsang
1a2bd13158 Nested transaction unit tests 2021-10-11 18:39:46 +08:00