Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserialization API rework #665

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
2f57a6d
treewide: get rid of (most) uses of QueryResult::rows
piodul Feb 1, 2023
1dfaf83
types: make write_bytes_opt more generic
piodul Feb 18, 2023
c9f6d47
treewide: rename QueryResult -> Legacy08QueryResult
piodul Mar 14, 2023
10eceb3
scylla-cql/types: introduce new deserialization traits
piodul Mar 15, 2023
b71eabf
result: introduce RawRows
piodul Mar 15, 2023
0585656
transport: introduce new QueryResult
piodul Mar 13, 2023
c6e0876
scylla-macros: add derive macros for Deserialize{Row,Cql}
piodul Jan 31, 2023
36bf20c
{frame,transport}: propagate frame contents as Bytes
piodul Nov 25, 2022
76cfc29
treewide: propagate RawRows/new QueryResult
piodul Mar 13, 2023
ef6d00d
iterator: rename (Typed)RowIterator to Legacy08(Typed)RowIterator
piodul Mar 13, 2023
7221db6
iterator: introduce poll_next_internal
piodul Feb 28, 2023
8a7233e
iterator: introduce ready_some_ok! macro
piodul Mar 13, 2023
f145a07
iterator: introduce poll_next_page
piodul Mar 13, 2023
8243277
iterator: adjust to the new deserialization framework
piodul Mar 14, 2023
a62c909
treewide: rename Session to Legacy08Session
piodul Mar 15, 2023
ecb041c
session: make generic and introduce "session kind" parameter
piodul Mar 16, 2023
9d0b645
session: move query-related methods to a separate block
piodul Mar 16, 2023
b894ae0
session: re-introduce the Session type as an alias
piodul Mar 16, 2023
6aa9a47
session_builder: rename build->build_legacy and then reintroduce
piodul Mar 16, 2023
26be1cd
session: de-genericise internal query/exec functions
piodul Mar 13, 2023
20f81e1
session: return new QueryResult from internal methods
piodul Mar 13, 2023
fb6be07
session: add interface methods for the new deser API
piodul Mar 13, 2023
1edb236
connection: switch to the new deserialization framework
piodul Mar 14, 2023
bf66b03
caching_session: make generic over session APIs
piodul Mar 14, 2023
0a5ad84
caching_session: modernize tests
piodul Mar 14, 2023
201950d
connection: migrate query_iter to new deserialization framework
piodul Mar 14, 2023
cb18f5d
{session,tracing}: switch to the new deserialization framework for tr…
piodul Mar 17, 2023
8e321af
treewide: switch tests to use the new framework
piodul Mar 14, 2023
fea6c7b
examples: adjust to use the new interface
piodul Mar 14, 2023
46317ea
cluster: un-pub Cluster and make it cloneable
piodul Mar 14, 2023
54fd357
session: add methods for creating compatible session with different API
piodul Mar 14, 2023
1a67b5c
documentation: adjust to the new traits
piodul Mar 30, 2023
46b6e4d
docs: add migration guide
piodul Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scylla-cql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ serde = { version = "1.0", optional = true }

piodul marked this conversation as resolved.
Show resolved Hide resolved
[dev-dependencies]
criterion = "0.3"
uuid = { version = "1.0", features = ["v4"] }

[[bench]]
name = "benchmark"
Expand Down
2 changes: 2 additions & 0 deletions scylla-cql/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ pub mod frame;
#[macro_use]
pub mod macros;

pub mod types;

pub use crate::frame::response::cql_to_rust;
pub use crate::frame::response::cql_to_rust::FromRow;

Expand Down
Loading