Whoops left in a little debugging thing. The Command doesn't seem to get the errors from the stream maybe? But the setup file works fine from normal terminal exec.
This commit is contained in:
parent
a3fa5d6645
commit
ee343f17e9
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -59,7 +59,7 @@ func prep_query(db *sql.DB, q string) (*sql.Stmt){
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// exec setup.sql to init
|
// exec setup.sql to init
|
||||||
cmd := exec.Command("sqlite3", "rpgqui.db < sedfsftup.sql")
|
cmd := exec.Command("sqlite3", "rpgqui.db < setup.sql")
|
||||||
out, err := cmd.Output()
|
out, err := cmd.Output()
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue