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

feat(cube): support postgres cube #3188

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
3f3cd1f
feat: add cube
Apr 8, 2024
5a4aa22
docs: cube docs
Apr 8, 2024
609cebc
docs: update readme
Apr 8, 2024
37d1b47
fix: cube is now not feature flagged
Apr 9, 2024
86c88e8
fix: formatting
Apr 9, 2024
fa7f72b
fix: typeo for PgCube vs Cube
Apr 9, 2024
6a0ce18
fix: correct types
Apr 9, 2024
1faec90
fix: postgres only types for cube
Apr 9, 2024
288f3ae
fix: cube readme
Apr 9, 2024
368dbe3
fix: dont unwrap cubes
Apr 9, 2024
0a8ae86
fix: typo on interval
Apr 9, 2024
c039521
fix: zero volume cube array
Apr 9, 2024
19f456b
fix: return type
Apr 9, 2024
4522750
fix: update tests
Apr 9, 2024
97dbf4f
fix: run with one test type
Apr 9, 2024
fc81263
fix: log bytes in error
Apr 9, 2024
adf4604
fix: typo in test
Apr 9, 2024
531fbe3
fix: log bytes for failed length
Apr 9, 2024
45b851e
fix: string deser
Apr 10, 2024
451c770
docs: remove cube from readme
Apr 10, 2024
defde0b
fix: int to float
Apr 10, 2024
a7a47f1
fix: trim floats
Apr 10, 2024
f8003ca
fix: exttra test
Apr 10, 2024
0558cc3
fix: type safe into vectors
Apr 17, 2024
7f0d459
fix: improve error messages
Apr 17, 2024
d2e066d
docs: remove comments
Apr 17, 2024
624a533
fix: front load most important logic and const at start
Apr 17, 2024
a69766f
fix: extract constants
Apr 17, 2024
8385481
fix: flags
Apr 17, 2024
5ad1a9c
fix: avoid redundant buffer creation and use FromStr trait
Apr 24, 2024
f9bec3a
fix: handle serializing
Apr 24, 2024
1e75544
test: cube vec test
Apr 24, 2024
b34646c
fix: no array cube test
Apr 24, 2024
c88a87b
fix: update test with array for cube
Apr 24, 2024
035f83e
fix: dont use try from for u8
Apr 24, 2024
40c5b85
fix: conditionally remove padding
Apr 24, 2024
0a23853
fix: conditional trimming
Apr 24, 2024
c307eaa
fix: idiomatic trimming
Apr 24, 2024
9aeadf7
fix: linting
Apr 24, 2024
71ea60c
fix: remove whitespace
Apr 24, 2024
3461474
fix: lower case array
Apr 24, 2024
ed01426
fix: spacing input
Apr 24, 2024
72ec601
test: one more vec test
Apr 24, 2024
15817c5
fix: trim square brackets in case they are using postgres spec page
Apr 25, 2024
b4aaff6
fix: result types
Jun 6, 2024
1562fbb
fix: format
Jun 6, 2024
480f986
fix: box error
Jun 6, 2024
11670af
fix: the borrow produces a value
Jun 6, 2024
d693f16
fix: self serialise
Jun 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion sqlx-postgres/src/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl<C: DerefMut<Target = PgConnection>> PgCopyIn<C> {
let buf = conn.stream.write_buffer_mut();

// Write the CopyData format code and reserve space for the length.
// This may end up sending an empty `CopyData` packet if, after this point,
// This may end up sending an empty `CopyData` packet if, after this point,
// we get canceled or read 0 bytes, but that should be fine.
buf.put_slice(b"d\0\0\0\x04");

Expand Down
2 changes: 2 additions & 0 deletions sqlx-postgres/src/type_checking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ impl_type_checking!(

sqlx::postgres::types::PgLQuery,

sqlx::postgres::types::PgCube,

#[cfg(feature = "uuid")]
sqlx::types::Uuid,

Expand Down