hackathon/cmd/tmp/main.go

18 lines
306 B
Go

package main
import (
"context"
"log"
"github.com/hhhapz/codequest/db"
"github.com/hhhapz/codequest/models"
"github.com/k0kubun/pp/v3"
)
func main() {
d, _ := db.NewDB("db.sqlite")
models.SetLogger(log.Printf)
pp.Println(models.QuestionSubmissions(context.Background(), d.DB, "2", "idk", 2))
}