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.0-alpha
Published
Dec 19, 2021
Platform
js/wasm
Imports
8 packages
Last checked
4 seconds ago

Tools for package owners.