Skip to content

Commit 0db12a9

Browse files
authored
feat(cube): support postgres cube (#3188)
* feat: add cube * docs: cube docs * docs: update readme * fix: cube is now not feature flagged * fix: formatting * fix: typeo for PgCube vs Cube * fix: correct types * fix: postgres only types for cube * fix: cube readme * fix: dont unwrap cubes * fix: typo on interval * fix: zero volume cube array * fix: return type * fix: update tests * fix: run with one test type * fix: log bytes in error * fix: typo in test * fix: log bytes for failed length * fix: string deser * docs: remove cube from readme * fix: int to float * fix: trim floats * fix: exttra test * fix: type safe into vectors * fix: improve error messages * docs: remove comments * fix: front load most important logic and const at start * fix: extract constants * fix: flags * fix: avoid redundant buffer creation and use FromStr trait * fix: handle serializing * test: cube vec test * fix: no array cube test * fix: update test with array for cube * fix: dont use try from for u8 * fix: conditionally remove padding * fix: conditional trimming * fix: idiomatic trimming * fix: linting * fix: remove whitespace * fix: lower case array * fix: spacing input * test: one more vec test * fix: trim square brackets in case they are using postgres spec page * fix: result types * fix: format * fix: box error * fix: the borrow produces a value * fix: self serialise * chore: merge main * fix: borrow * fix: clippy --------- Co-authored-by: James Holman <[email protected]>
1 parent 93f3d79 commit 0db12a9

File tree

5 files changed

+453
-0
lines changed

5 files changed

+453
-0
lines changed

sqlx-postgres/src/type_checking.rs

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ impl_type_checking!(
3030

3131
sqlx::postgres::types::PgLQuery,
3232

33+
sqlx::postgres::types::PgCube,
34+
3335
#[cfg(feature = "uuid")]
3436
sqlx::types::Uuid,
3537

0 commit comments

Comments
 (0)