Skip to content
/ dbenv Public
forked from jsbronder/dbenv

Per-project database server instance for testing/development

Notifications You must be signed in to change notification settings

iillyyaa/dbenv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For supported databases, which are currently postgres and redis, create a server local to the current directory. For example, for postgres:

dbenv-pg [ARGUMENTS] [ACTION] [[EXTRA ARGUMENTS]]

ARGUMENTS:
    -h, --help               This screen
    -b, --base-dir [PATH]    Path to base directory.  If unspecified, the directory
                             tree will be searched upward to either the user's home
                             directory or / looking for the directory '.local-pg/'.
                             If not found, the default ~/.local/dbenv/local-pg/ is used.
    -I, --initialize         Shortcut for "--base-dir ./.local-pg"


ACTION:
    start         Start the pg server and create the default database
    stop          Stop the resid server
    shell         Connect to server with psql
    clean         Stop the server and wipe any remaining files
    url           Print url to pg server
    base-dir      Print the resolved base-dir

EXTRA ARGUMENTS are passed when using the 'shell' action and are otherwise ignored.

About

Per-project database server instance for testing/development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 94.1%
  • Makefile 5.9%