| Crates.io | ciboulette2pg |
| lib.rs | ciboulette2pg |
| version | 0.1.3 |
| created_at | 2021-05-02 20:57:56.4502+00 |
| updated_at | 2021-05-13 16:47:15.139131+00 |
| description | Library to execute Ciboulette query to Postgres and build responses back |
| homepage | |
| repository | https://github.com/basiliqio/ciboulette2pg |
| max_upload_size | |
| id | 392319 |
| size | 514,104 |
See the documentation
To test this crate, you need to start a Postgres database and export the DATABASE_URL environment variable.
You can use the provided docker-compose plan
# To start the test database
docker-compose -f docker-compose.testing.yml up -d
# Don't forget to set the environment variable
export DATABASE_URL="postgres://postgres:postgres@localhost/postgres"
# Run the tests
cargo test
# To stop the test database
docker-compose -f docker-compose.testing.yml down -v