go fmt
This commit is contained in:
parent
cd14452f31
commit
5c8c0eb69c
5 changed files with 10 additions and 8 deletions
|
@ -2,8 +2,8 @@ package gaypoints
|
|||
|
||||
import (
|
||||
"database/sql"
|
||||
_ "modernc.org/sqlite"
|
||||
"github.com/rs/zerolog/log"
|
||||
_ "modernc.org/sqlite"
|
||||
)
|
||||
|
||||
var gpSelectUser *sql.Stmt
|
||||
|
@ -11,8 +11,9 @@ var gpSelectUser *sql.Stmt
|
|||
var gpSelectChat *sql.Stmt
|
||||
|
||||
var gpSet *sql.Stmt
|
||||
//TODO logging
|
||||
//TODO switch to SQL
|
||||
|
||||
// TODO logging
|
||||
// TODO switch to SQL
|
||||
func sqlGetAllGP(chatid int64) (gaypoints []gaypointShortDetails) {
|
||||
rows, err := gpSelectChat.Query(chatid)
|
||||
if err != nil {
|
||||
|
|
|
@ -10,8 +10,9 @@ var notifySetReminder *sql.Stmt
|
|||
var notifyGetReminders *sql.Stmt
|
||||
var notifyGetReminderDetails *sql.Stmt
|
||||
var notifyDeleteReminder *sql.Stmt
|
||||
//TODO logging
|
||||
//TODO switch to SQL
|
||||
|
||||
// TODO logging
|
||||
// TODO switch to SQL
|
||||
func InitDB() {
|
||||
const dbPath string = "data/db/notify.db"
|
||||
log.Info().Str("dbpath", dbPath).Msg("init database")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue