diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-14 23:38:53 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-14 23:38:53 +0100 |
commit | b3485c78114e505b7bc9c6969afa108ea3f4755c (patch) | |
tree | 440b6ac6d2f29074945294a66929d8a12fe30505 /model/db_mysql.go | |
parent | 90acc67af9a7d372be5fa9cab7a34412ce4ad824 (diff) | |
download | gosten-b3485c78114e505b7bc9c6969afa108ea3f4755c.tar.gz gosten-b3485c78114e505b7bc9c6969afa108ea3f4755c.tar.bz2 gosten-b3485c78114e505b7bc9c6969afa108ea3f4755c.zip |
Remove sqlite support: the differences with sqlc just get too cumbersome
Diffstat (limited to 'model/db_mysql.go')
-rw-r--r-- | model/db_mysql.go | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/model/db_mysql.go b/model/db_mysql.go deleted file mode 100644 index b236214..0000000 --- a/model/db_mysql.go +++ /dev/null @@ -1,33 +0,0 @@ -//go:build !sqlite - -// Code generated by sqlc. DO NOT EDIT. -// versions: -// sqlc v1.25.0 - -package model - -import ( - "context" - "database/sql" -) - -type DBTX interface { - ExecContext(context.Context, string, ...interface{}) (sql.Result, error) - PrepareContext(context.Context, string) (*sql.Stmt, error) - QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error) - QueryRowContext(context.Context, string, ...interface{}) *sql.Row -} - -func New(db DBTX) *Queries { - return &Queries{db: db} -} - -type Queries struct { - db DBTX -} - -func (q *Queries) WithTx(tx *sql.Tx) *Queries { - return &Queries{ - db: tx, - } -} |