summaryrefslogtreecommitdiff
path: root/sqlite.go
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2018-02-01 03:49:51 +0100
committerNikolaus Gotsche <n@softwarefools.com>2018-02-01 03:49:51 +0100
commit7cf0edaf7fed5da03c691e7b3dd0e9592b55f890 (patch)
tree22dcaf985345135e8cfd3495bca7e0666a2f988b /sqlite.go
parente3f7e1135d4f3f950a0933e0a26d47f34f148cf3 (diff)
new .db file be obend as argument
Diffstat (limited to 'sqlite.go')
-rw-r--r--sqlite.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlite.go b/sqlite.go
index 12cfc93..8874e80 100644
--- a/sqlite.go
+++ b/sqlite.go
@@ -41,7 +41,7 @@ func initDB(filename string) {
if _, err := os.Stat(filename); os.IsNotExist(err) {
db, err = sql.Open("sqlite3", filename)
checkErr(err)
- fmt.Println("Creating new DB")
+ fmt.Println("Creating new DB",filename)
sqlstmt := `
CREATE TABLE projects(
id INTEGER PRIMARY KEY AUTOINCREMENT,
@@ -69,7 +69,7 @@ func initDB(filename string) {
}else{
db, err = sql.Open("sqlite3", filename)
checkErr(err)
- fmt.Println("Opening DB")
+ fmt.Println("Opening DB",filename)
}
}