parser

package
v0.33.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVisitor

func NewVisitor(db tables) *visitor

func TranslateColumnType

func TranslateColumnType(dbType string) string

TranslateColumnType converts sqlite database types to Go types, for example "varchar" to "string" and "bigint" to "int64". It returns this parsed data as a Column object. https://sqlite.org/datatype3.html

Types

type IndexExtra

type IndexExtra = struct {
	Partial bool `json:"partial"`
}

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func New

func New(t tables) Parser

func (Parser) ParseQueries

func (p Parser) ParseQueries(_ context.Context, s string) ([]drivers.Query, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL