Versions in this module Expand all Collapse all v0 v0.2.0 Mar 16, 2026 v0.1.1 Mar 11, 2026 Changes in this version + func SetMetadataFilename(filename string) v0.1.0 Mar 10, 2026 Changes in this version + type ByRevLen []string + func (a ByRevLen) Len() int + func (a ByRevLen) Less(i, j int) bool + func (a ByRevLen) Swap(i, j int) + type DB struct + func Connect(driverName, dataSourceName string) (*DB, error) + func ConnectContext(ctx context.Context, driverName, dataSourceName string) (*DB, error) + func MustConnect(driverName, dataSourceName string) *DB + func MustOpen(driverName, dataSourceName string) *DB + func NewDb(db *sql.DB, driverName string) *DB + func Open(driverName, dataSourceName string) (*DB, error) + func (db *DB) PathQuery(query string, arg interface{}) (interface{}, error) + type JoinColumn struct + LeftAlias string + LeftColumn string + RightAlias string + RightColumn string + type JoinInfo struct + Condition string + JoinType string + LeftAlias string + LeftTable string + OnColumns []JoinColumn + RightAlias string + RightTable string + type NamedStmt = sqlx.NamedStmt + type PathHint struct + Alias string + Path string + type PathInferenceEngine struct + func NewPathInferenceEngine(metadata metadata.MetadataReader) *PathInferenceEngine + func (e *PathInferenceEngine) InferPaths(analysis *QueryAnalysis, columns []string) (map[string]string, error) + func (e *PathInferenceEngine) InferPathsWithFallback(analysis *QueryAnalysis, columns []string) map[string]string + func (e *PathInferenceEngine) ValidatePaths(paths map[string]string) error + type QueryAnalysis struct + Joins []JoinInfo + PathHints map[string]string + Tables map[string]string + func AnalyzeQuery(sql string) (*QueryAnalysis, error) + func (a *QueryAnalysis) GetJoinForTable(alias string) *JoinInfo + func (a *QueryAnalysis) GetTableForAlias(alias string) (string, bool) + type Result = sql.Result + type Row = sqlx.Row + type Rows = sqlx.Rows + type Stmt = sqlx.Stmt + type Tx = sqlx.Tx