Categorygithub.com/robinbraemer/devroach
modulepackage
0.0.0-20240607164754-44eb6d8f1cfc
Repository: https://github.com/robinbraemer/devroach.git
Documentation: pkg.go.dev

# README

devroach

devroach is a simple CLI for starting a local in-memory CockroachDB for development run auto-running migrations in a directory like from prisma.

Installation

To run a CockroachDB instance locally and run migrations, you can install devroach using the following command:

go run github.com/robinbraemer/devroach/cmd/devroach@latest
# or
go install github.com/robinbraemer/devroach/cmd/devroach@latest
devroach -h

# Packages

No description provided by the author

# Functions

Migrate runs all migrations against the given connection.
MigrateT runs all migrations against the given connection.
NewPool creates a new pgxpool.Pool instance for testing.
NewPoolT creates a new pgxpool.Pool instance for testing.
StartTestServer starts a new test server if not already running.