mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
* 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 <james.holman@betashares.com.au>
Running Tests
SQLx uses docker to run many compatible database systems for integration testing. You'll need to install docker to run the full suite. You can validate your docker installation with:
$ docker run hello-world
Start the databases with docker-compose before running tests:
$ docker-compose up
Run all tests against all supported databases using:
$ ./x.py
If you see test failures, or want to run a more specific set of tests against a specific database, you can specify both the features to be tests and the DATABASE_URL. e.g.
$ DATABASE_URL=mysql://root:password@127.0.0.1:49183/sqlx cargo test --no-default-features --features macros,offline,any,all-types,mysql,runtime-async-std-native-tls