32 Commits

Author SHA1 Message Date
Chris Tsang
19b1da175d Move file 2022-11-24 00:03:29 +08:00
Chris Tsang
bfe6eb39d5
Cursor pagination (#822)
* Cursor pagination

* Apply filter / range filter on cursor; Allow non-primary key filter

* Fixup

* Update cursor API

* Cursor pagination with composite keys

* Docs

* Rename cursor() to cursor_by()

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-07-10 15:08:38 +08:00
Chris Tsang
12ec00272c Revert "Cursor Pagination (#754)"
This reverts commit 6f9dbd260e6e004c369abe0019b4374253db7d3b.
2022-06-26 18:23:47 +08:00
Billy Chan
6f9dbd260e
Cursor Pagination (#754)
* Cursor pagination

* Apply filter / range filter on cursor; Allow non-primary key filter

* Fixup

* Update cursor API

* Cursor pagination with composite keys

* Docs
2022-06-26 17:48:00 +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
a95d99e186
Refactoring 2021-11-11 12:12:53 +08:00
Billy Chan
9c1646b198
Fixup 2021-11-10 15:53:37 +08:00
Chris Tsang
51b30ee837
Merge branch 'master' into transaction-3 2021-10-07 17:21:59 +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
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
Billy Chan
541b94f15d
Update query helper column_as 2021-09-03 11:23:29 +08:00
Chris Tsang
303a0f32d6 cargo fmt 2021-07-19 11:15:31 +08:00
Chris Tsang
1dceb07c70 pub use Value and Values 2021-07-19 11:15:31 +08:00
Chris Tsang
25432e68d0 from_raw_sql example 2021-07-18 00:02:29 +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
688891f706 Use MockDatabase in doc test 2021-06-27 16:15:56 +08:00
Chris Tsang
c7057ab964 Organize code 2021-06-12 17:12:18 +08:00
Chris Tsang
981a5f731d Move code 2021-06-12 16:51:52 +08:00
Chris Tsang
ff9e351ef1 Delete Statement 2021-06-11 20:09:57 +08:00
Chris Tsang
890464f913 Save custom ActiveModel 2021-06-05 22:17:22 +08:00
Chris Tsang
cf0127d89f Save ActiveModel 2021-06-05 20:30:32 +08:00
Chris Tsang
f706eb261d Update Statement 2021-06-02 23:59:44 +08:00
Chris Tsang
a746f8b863 Refactor ModelTrait 2021-06-02 22:23:10 +08:00
Chris Tsang
89c743d5a7 QueryTrait 2021-06-01 18:08:18 +08:00
Chris Tsang
ba1eef1671 Move files 2021-06-01 17:32:23 +08:00
Chris Tsang
d3ee74cbe5 Insert POC 2021-05-28 00:38:34 +08:00
Chris Tsang
97e6bb3433 Refactor JSON 2021-05-27 03:45:47 +08:00
Chris Tsang
abc11753a8 Select Both 2021-05-15 15:02:54 +08:00
Chris Tsang
9dc7c818d7 Move code 2021-05-15 13:23:52 +08:00
Chris Tsang
6ffed93b46 DatabaseConnection 2021-05-07 15:09:07 +08:00
Chris Tsang
7d99d33aa2 Select 2021-05-07 05:57:51 +08:00