Implementation

Basic Flow

  1. Spin up the docker compose.
  2. Make changes to the service-core/storage/schema.sql file.
  3. Run AtlasGo migration:
sh scripts/atlas.sh
  1. Modify service-core/storage/queries.sql file.
  2. Run sqlc to generate the SQL code:
sh scripts/sqlc.sh

Troubleshooting

  • When running Docker on WSL2, the SQLite file may not work. In that case, you probably need to exclude it from volumes:
    volumes:
      - ./service-code:/serivce
      - /serivce/storage/
    environment:
      DB_PROVIDER: sqlite
      SQLITE_FILE: /service/storage/data.db

Need help?

Visit our discord server to ask any questions, make suggestions and give feedback :).

https://discord.gg/EdSZbQbRyJ