misc.go 299 Bytes
Newer Older
Vladimir Barsukov's avatar
init  
Vladimir Barsukov committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package zdb

import "github.com/jackc/pgx/v5"

var ErrNoRows = pgx.ErrNoRows

type Opts interface {
	Opts() (sql string, args map[string]any)
}

func remove[T comparable](slice []T, s int) []T {
	return append(slice[:s], slice[s+1:]...)
}

type Logger interface {
	Printf(format string, v ...any)
}