Skip to content

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

License

Notifications You must be signed in to change notification settings

zdannar/sqlx_test_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages