2026-10-07 16:51:44 -06:00
|
|
|
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)
|
2026-10-07 18:57:26 -06:00
|
|
|
if err != nil {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_ = db
|
2026-10-07 16:51:44 -06:00
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|