Day 9 content, connecting to database
Build and copy to prod / build-and-copy (push) Successful in 1m31s
Build and copy to prod / build-and-copy (push) Successful in 1m31s
This commit is contained in:
1 parent
d3ee10669e
commit
49d33b2366
6 files changed
+73
No files matched your search
@@ -0,0 +1,8 @@
|
||||
package data
|
||||
|
||||
import "database/sql"
|
||||
|
||||
func Connect(file string) *sql.DB {
|
||||
db, _ := sql.Open("sqlite3", file)
|
||||
return db
|
||||
}
|
||||
Reference in new issue
Block a user