Categorygithub.com/jasontconnell/sqlrun
repository
1.0.1
Repository: https://github.com/jasontconnell/sqlrun.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

Usage

sqlrun -dir "" -p comma,separated,prefixes

Description

Recursively search "dir" for sql files and run them against the database pointed to by the connection string in config.json

config.json

{ "connectionString": "connection string" }

Notes

For instance, if you wanted to make sure all table definition files run first, specify -p tbl Multiple priorities can be set, otherwise it will order them by how it finds them in the directory structure.

Enjoy!