Skip to content

tmkhanh/todo-ms-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Todo microservice

Database

The service uses sqlx library to asynchronously connect database instance and manipulate data. It also uses sqlx-cli to manage data migrations.

  • Run container with some default values
docker run --name todo-db \
  -p 5432:5432 \
  -e POSTGRES_USER=todo \
  -e POSTGRES_PASSWORD=todo \
  -e POSTGRES_DB=todo \
  -d postgres:latest
  • To migrate use
sqlx migrate run

or following command to revert the change

sqlx migrate revert

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages