Documentation ¶
Index ¶
- func DSN(endpoint, database string, secure bool) (s string)
- func GenerateDeclareSection(params *table.QueryParameters) string
- func LoadCertificatesFromFile(caFile string) ([]*x509.Certificate, error)
- func LoadCertificatesFromPem(bytes []byte) (certs []*x509.Certificate)
- func MakeRecursive(ctx context.Context, db ydb.Connection, pathToCreate string) error
- func RemoveRecursive(ctx context.Context, db ydb.Connection, pathToRemove string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DSN ¶ added in v3.21.0
DSN makes connection string (data source name) by endpoint, database and secure
func GenerateDeclareSection ¶ added in v3.28.0
func GenerateDeclareSection(params *table.QueryParameters) string
GenerateDeclareSection generates DECLARE section text in YQL query by params
Warning: This is an experimental feature and could change at any time
func LoadCertificatesFromFile ¶ added in v3.23.0
func LoadCertificatesFromFile(caFile string) ([]*x509.Certificate, error)
LoadCertificatesFromFile read and parse caFile and returns certificates
func LoadCertificatesFromPem ¶ added in v3.23.0
func LoadCertificatesFromPem(bytes []byte) (certs []*x509.Certificate)
LoadCertificatesFromPem parse bytes and returns certificates
func MakeRecursive ¶ added in v3.5.2
MakeRecursive creates path inside database pathToCreate is a database root relative path MakeRecursive method equal bash command `mkdir -p ~/path/to/create` where `~` - is a root of database
func RemoveRecursive ¶ added in v3.5.2
RemoveRecursive remove selected directory or table names in database. pathToRemove is a database root relative path All database entities in prefix path will remove if names list is empty. Empty prefix means than use root of database. RemoveRecursive method equal bash command `rm -rf ~/path/to/remove` where `~` - is a root of database
Types ¶
This section is empty.