Adding models package.
This commit is contained in:
parent
4bc89ed5aa
commit
5c4e0cfe54
2 changed files with 14 additions and 0 deletions
0
internal/models/chats.go
Normal file
0
internal/models/chats.go
Normal file
14
internal/models/db.go
Normal file
14
internal/models/db.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package models
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
||||
"code.destrealm.net/zancarius/justusbot/internal/settings"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
func connect(conf *settings.Settings) error {
|
||||
db, err := sql.Open("sqlite3", conf.System.DSN)
|
||||
|
||||
return nil
|
||||
}
|
||||
Loading…
Reference in a new issue