package sugar

import "github.com/ydb-platform/ydb-go-sdk/v3/sugar"

Index

Functions

func MakePath

func MakePath(ctx context.Context, db ydb.Connection, path string) error

MakePath creates path inside database

func RmPath

func RmPath(ctx context.Context, db ydb.Connection, pathToRemove string, names ...string) error

RmPath remove selected directory or table names in database. All database entities in prefix path will remove if names list is empty. Empty prefix means than use root of database. RmPath method equal bash command `rm -rf ./pathToRemove/{name1,name2,name3}`

Source Files

sugar.go

Version
v3.5.1
Published
Dec 21, 2021
Platform
windows/amd64
Imports
8 packages
Last checked
1 minute ago

Tools for package owners.