resolve

package
v0.40.5-0...-78215f2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UseSearchPath = false

UseSearchPath is a global variable that determines whether or not to use the search path when resolving table names. Currently used by Doltgres

Functions

func FirstExistingSchemaOnSearchPath

func FirstExistingSchemaOnSearchPath(ctx *sql.Context, root doltdb.RootValue) (string, error)

FirstExistingSchemaOnSearchPath returns the first schema in the search path that exists in the database.

func IsDoltgresSystemTable

func IsDoltgresSystemTable(ctx *sql.Context, tableName doltdb.TableName, root doltdb.RootValue) (bool, error)

IsDoltgresSystemTable returns whether a table is a doltgres system table or not

func SearchPath

func SearchPath(ctx *sql.Context) ([]string, error)

SearchPath returns all the schemas in the search_path setting, with elements like "$user" expanded

func Table

func Table(
	ctx *sql.Context,
	root doltdb.RootValue,
	tableName string,
) (doltdb.TableName, *doltdb.Table, bool, error)

Table returns the schema-qualified name of the table given in the root provided, along with the table itself and whether it exists.

func TableWithSearchPath

func TableWithSearchPath(
	ctx *sql.Context,
	root doltdb.RootValue,
	tableName string,
) (doltdb.TableName, *doltdb.Table, bool, error)

TableWithSearchPath resolves a table name to a table in the root value, searching through the schemas in the

func TablesOnSearchPath

func TablesOnSearchPath(ctx *sql.Context, root doltdb.RootValue) ([]doltdb.TableName, error)

TablesOnSearchPath returns all the tables in the root value given that are in a schema in the search path

Types

This section is empty.

Jump to

Keyboard shortcuts

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