Documentation
¶
Index ¶
- Variables
- func FirstExistingSchemaOnSearchPath(ctx *sql.Context, root doltdb.RootValue) (string, error)
- func IsDoltgresSystemTable(ctx *sql.Context, tableName doltdb.TableName, root doltdb.RootValue) (bool, error)
- func SearchPath(ctx *sql.Context) ([]string, error)
- func Table(ctx *sql.Context, root doltdb.RootValue, tableName string) (doltdb.TableName, *doltdb.Table, bool, error)
- func TableWithSearchPath(ctx *sql.Context, root doltdb.RootValue, tableName string) (doltdb.TableName, *doltdb.Table, bool, error)
- func TablesOnSearchPath(ctx *sql.Context, root doltdb.RootValue) ([]doltdb.TableName, error)
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 ¶
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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.