Documentation
¶
Overview ¶
Package sqlite provides SQLite type provider for CEL type system integration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidSchema indicates a problem with the provided schema or database introspection. ErrInvalidSchema = errors.New("invalid schema") )
Sentinel errors for the sqlite package.
View Source
var NewSchema = schema.NewSchema
NewSchema creates a new Schema. This is an alias for schema.NewSchema.
Functions ¶
This section is empty.
Types ¶
type FieldSchema ¶
type FieldSchema = schema.FieldSchema
FieldSchema is an alias for schema.FieldSchema.
type TypeProvider ¶
type TypeProvider interface {
types.Provider
LoadTableSchema(ctx context.Context, tableName string) error
GetSchemas() map[string]Schema
Close()
}
TypeProvider interface for SQLite type providers.
func NewTypeProvider ¶
func NewTypeProvider(schemas map[string]Schema) TypeProvider
NewTypeProvider creates a new SQLite type provider with pre-defined schemas.
func NewTypeProviderWithConnection ¶
NewTypeProviderWithConnection creates a new SQLite type provider that can introspect database schemas. The caller owns the *sql.DB and is responsible for closing it.
Click to show internal directories.
Click to hide internal directories.