Skip to content

About

A repo to demonstrate using rust's sqlx lib and performing tests

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

sqlx_test_example

This is an example repo how to perform rust sqlx tests. I was unable to find many example and thought this may be useful to other folks out there.

This example uses fixtures to support testing. See the tests directory for the details.

Running locally (docker-compose)

# Builds the rust code
docker-compose build sqlx_test

# Runs the migrations
docker-compose run sqlx_migrate

# Compiles and runs the tests
docker-compose run sqlx_test

About

A repo to demonstrate using rust's sqlx lib and performing tests

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages