diff --git a/config.go b/config.go index 25db35d..0964bac 100644 --- a/config.go +++ b/config.go @@ -14,9 +14,8 @@ type DBConfig struct { Password string `validate:"required"` URI string `validate:"hostname_port,required"` Name string `validate:"required"` - MaxConn int `validate:"min=1,max=1000"` - AutoMigrate bool - DebugLog bool + MaxConn int `validate:"min=1,max=1000"` + DebugLog bool } // ConnectionString returns a connection string compatible with the given diff --git a/interfaces.go b/interfaces.go index 97d6f0d..b93df97 100644 --- a/interfaces.go +++ b/interfaces.go @@ -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 { diff --git a/jsonb.go b/jsonb.go index 1cf710d..d2bd55c 100644 --- a/jsonb.go +++ b/jsonb.go @@ -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.