go

module
v0.0.0-...-2300135 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0

README

Set up Local Postgres

  • Install Postgres on Mac
    • brew install postgresql@14
  • Start & Stop
    • brew services start postgresql
    • brew services stop postgresql
  • create testing db
    • terminal: psql postgres
    • postgres=# create role chroma with login password 'chroma';
    • postgres=# alter role chroma with superuser;
    • postgres=# create database chroma;
  • Set postgres ENV Vars Several tests (such as record_log_service_test.go) require the following environment variables to be set:
    • export POSTGRES_HOST=localhost
    • export POSTGRES_PORT=5432
  • Atlas schema migration
    • [~/chroma/go]: atlas migrate diff --env dev
    • [~/chroma/go]: atlas --env dev migrate apply --url "postgres://chroma:chroma@localhost:5432/chroma?sslmode=disable"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL