Skip to content

Commit 6f9dbd2

Browse files
authored
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
1 parent 987c6b5 commit 6f9dbd2

File tree

7 files changed

+650
-8
lines changed

7 files changed

+650
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ futures-util = { version = "^0.3" }
3131
tracing = { version = "0.1", features = ["log"] }
3232
rust_decimal = { version = "^1", optional = true }
3333
sea-orm-macros = { version = "^0.8.0", path = "sea-orm-macros", optional = true }
34-
sea-query = { version = "^0.24.5", features = ["thread-safe"] }
34+
sea-query = { version = "^0.24.0", git = "https://github.com/SeaQL/sea-query", branch = "clear-order-by", features = ["thread-safe"] }
3535
sea-strum = { version = "^0.23", features = ["derive", "sea-orm"] }
3636
serde = { version = "^1.0", features = ["derive"] }
3737
serde_json = { version = "^1", optional = true }

sea-orm-migration/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ clap = { version = "^2.33" }
2323
dotenv = { version = "^0.15" }
2424
sea-orm = { version = "^0.8.0", path = "../", default-features = false, features = ["macros"] }
2525
sea-orm-cli = { version = "^0.8.1", path = "../sea-orm-cli", default-features = false }
26-
sea-schema = { version = "^0.8.1" }
26+
sea-schema = { version = "^0.8.1", git = "https://github.com/SeaQL/sea-schema", branch = "bump-for-sea-orm-cursor-pagination" }
2727
tracing = { version = "0.1", features = ["log"] }
2828
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
2929

@@ -39,4 +39,4 @@ runtime-async-std-native-tls = [ "sea-orm/runtime-async-std-native-tls" ]
3939
runtime-tokio-native-tls = [ "sea-orm/runtime-tokio-native-tls" ]
4040
runtime-actix-rustls = [ "sea-orm/runtime-actix-rustls" ]
4141
runtime-async-std-rustls = [ "sea-orm/runtime-async-std-rustls" ]
42-
runtime-tokio-rustls = [ "sea-orm/runtime-tokio-rustls" ]
42+
runtime-tokio-rustls = [ "sea-orm/runtime-tokio-rustls" ]

src/entity/prelude.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
pub use crate::{
22
error::*, ActiveEnum, ActiveModelBehavior, ActiveModelTrait, ColumnDef, ColumnTrait,
3-
ColumnType, DatabaseConnection, DbConn, EntityName, EntityTrait, EnumIter, ForeignKeyAction,
4-
Iden, IdenStatic, Linked, ModelTrait, PaginatorTrait, PrimaryKeyToColumn, PrimaryKeyTrait,
5-
QueryFilter, QueryResult, Related, RelationDef, RelationTrait, Select, Value,
3+
ColumnType, CursorTrait, DatabaseConnection, DbConn, EntityName, EntityTrait, EnumIter,
4+
ForeignKeyAction, Iden, IdenStatic, Linked, ModelTrait, PaginatorTrait, PrimaryKeyToColumn,
5+
PrimaryKeyTrait, QueryFilter, QueryResult, Related, RelationDef, RelationTrait, Select, Value,
66
};
77

88
#[cfg(feature = "macros")]

0 commit comments

Comments
 (0)