refactor: remove unused AutoMigrate, SQLOFunc, JSONB.ToMap

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-29 17:47:04 -07:00
parent f9befa1b0a
commit 984b52d198
3 changed files with 2 additions and 11 deletions
-1
View File
@@ -15,7 +15,6 @@ type DBConfig struct {
URI string `validate:"hostname_port,required"`
Name string `validate:"required"`
MaxConn int `validate:"min=1,max=1000"`
AutoMigrate bool
DebugLog bool
}
-3
View File
@@ -7,9 +7,6 @@ import (
"github.com/go-jet/jet/v2/qrm"
)
// SQLOFunc is a function that returns a *sql.DB pointer.
type SQLOFunc = func() *sql.DB
// Queryable interface is an SQL driver object that can execute SQL statements
// for Jet.
type Queryable interface {
-5
View File
@@ -15,11 +15,6 @@ func NewJSONB(data map[string]any) JSONB {
return JSONB(data)
}
// ToMap converts the JSONB value to a map[string]any.
func (j JSONB) ToMap() map[string]any {
return map[string]any(j)
}
// Scan implements the sql.Scanner interface. It supports converting from
// string, []byte, or nil into a JSONB value. Attempting to convert from
// any other type will return an error.