diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-13 23:57:18 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-13 23:57:18 +0530 |
commit | 37ead7ea9ca1e0c435c57866c289917e0f488459 (patch) | |
tree | 8213307afb592c574ad80587e0cef55b6d92b9df /server/database | |
parent | d154e1e37b026679fc76c6708f6b16951ed07dd9 (diff) |
seperated the router into another module
Diffstat (limited to 'server/database')
-rw-r--r-- | server/database/database.go (renamed from server/database/main.go) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/database/main.go b/server/database/database.go index 4eb1a91..c2c0dfe 100644 --- a/server/database/main.go +++ b/server/database/database.go @@ -14,7 +14,7 @@ import ( ) var myDatabase *sql.DB -func StartDB() { +func InitDB() { myDatabase, _ = sql.Open("sqlite3", "./openbills.db") init_items, _ := myDatabase.Prepare( |