settings

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package settings provides utility functions for working with settings, such as the search_path setting.

This package is intended to be a leaf in the package dependency graph, and should not add dependencies to other Doltgres packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentSchemas

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

GetCurrentSchemas returns all the schemas in the search_path setting, with elements like "$user" excluded

func GetCurrentSchemasAsMap

func GetCurrentSchemasAsMap(ctx *sql.Context) (map[string]struct{}, error)

GetCurrentSchemasAsMap returns the schemas from the search_path setting as a map for easy lookup. Any elements like "$user" are excluded.

Types

This section is empty.

Jump to

Keyboard shortcuts

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