Documentation
¶
Index ¶
- func BuildLoadSQL(opts LoadOptions) string
- func ExpandArchiveGlobs(archiveGlobs []string) ([]string, error)
- func ListPresets() []string
- func LoadArchive(ctx context.Context, conn *sql.Conn, opts LoadOptions) error
- func NormalizeQueryForValidation(sqlText string) (string, error)
- func NormalizeValue(value any) any
- func OpenConnection(ctx context.Context, dbPath string) (*sql.DB, *sql.Conn, error)
- func ResolvePresetSQL(name string, tableName string) (string, error)
- func ResolveSQL(presetName string, inlineSQL string, sqlFile string, tableName string) (string, error)
- func RunIntoProcessor(ctx context.Context, conn *sql.Conn, sqlText string, gp middlewares.Processor) error
- func ValidateIdentifier(identifier string) error
- func ValidateReadOnlyQuery(sqlText string) error
- type LoadOptions
- type PresetEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildLoadSQL ¶
func BuildLoadSQL(opts LoadOptions) string
func ExpandArchiveGlobs ¶
func ListPresets ¶
func ListPresets() []string
func LoadArchive ¶
func NormalizeQueryForValidation ¶ added in v0.0.4
func NormalizeValue ¶
func OpenConnection ¶
func ResolveSQL ¶
func RunIntoProcessor ¶
func ValidateIdentifier ¶
func ValidateReadOnlyQuery ¶ added in v0.0.4
Types ¶
type LoadOptions ¶
type PresetEntry ¶ added in v0.0.6
func ListPresetEntries ¶ added in v0.0.6
func ListPresetEntries() []PresetEntry
Click to show internal directories.
Click to hide internal directories.