forked from tildetown/town
repurpose package
parent
fca0ecae4e
commit
84cc13bf07
|
@ -1,11 +1,11 @@
|
||||||
package review
|
package invites
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
)
|
)
|
||||||
|
|
||||||
const dsn = "/town/var/users.db?mode=rw"
|
const dsn = "/town/var/invites/invites.db?mode=rw"
|
||||||
|
|
||||||
func ConnectDB() (*sql.DB, error) {
|
func ConnectDB() (*sql.DB, error) {
|
||||||
db, err := sql.Open("sqlite3", dsn)
|
db, err := sql.Open("sqlite3", dsn)
|
Loading…
Reference in New Issue