Documentation
¶
Overview ¶
Package datasets provides functionality for managing datasets.
Index ¶
- Variables
- func AddTable(table string) error
- func CompressClickhouse(ctx *cli.Context) error
- func CompressPostgres(ctx *cli.Context) error
- func DecompressClickhouse(ctx *cli.Context) error
- func DecompressPostgres(ctx *cli.Context) error
- func Download(ctx *cli.Context) error
- func DownloadSource(ctx *cli.Context) error
- func ExportClickhouse(ctx *cli.Context) error
- func ExportPostgres(ctx *cli.Context) error
- func ExportSource(ctx *cli.Context) error
- func GetAllowedTables() []string
- func ImportClickhouse(ctx *cli.Context) error
- func ImportPostgres(ctx *cli.Context) error
- func ImportSource(ctx *cli.Context) error
- func RemoveTable(table string) error
- func TableExists(table string) bool
- func UploadClickhouse(ctx *cli.Context) error
- func UploadPostgres(ctx *cli.Context) error
- func UploadSource(ctx *cli.Context) error
Constants ¶
This section is empty.
Variables ¶
var ErrTableAlreadyExists = errors.New("table already exists")
ErrTableAlreadyExists indicates that the table already exists in the databaseTables slice.
var ErrTableNotFound = errors.New("table not found")
ErrTableNotFound indicates that the table does not exist in the databaseTables slice.
Functions ¶
func CompressClickhouse ¶
CompressClickhouse compresses exported ClickHouse database files using 7zip.
func CompressPostgres ¶
CompressPostgres compresses exported Postgres database files using 7zip.
func DecompressClickhouse ¶
DecompressClickhouse decompresses exported ClickHouse database files using 7zip.
func DecompressPostgres ¶
DecompressPostgres decompresses exported Postgres database files using 7zip.
func DownloadSource ¶
func ExportClickhouse ¶
ExportClickhouse exports tables from ClickHouse database to native ClickHouse format files.
func ExportPostgres ¶
ExportPostgres exports tables from ClickHouse database to native ClickHouse format files.
func ExportSource ¶
func GetAllowedTables ¶
func GetAllowedTables() []string
GetAllowedTables returns the list of allowed database tables.
func ImportClickhouse ¶
ImportClickhouse imports tables from native ClickHouse format files into ClickHouse database.
func ImportPostgres ¶
ImportPostgres imports tables from native ClickHouse format files into ClickHouse database.
func ImportSource ¶
func RemoveTable ¶
RemoveTable removes a table from the databaseTables slice if it exists.
func TableExists ¶
TableExists checks if a table exists in the databaseTables slice.
func UploadClickhouse ¶
UploadClickhouse uploads exported ClickHouse database files to Cloudflare R2.
func UploadPostgres ¶
UploadPostgres uploads exported Postgres database files to Cloudflare R2.
func UploadSource ¶
Types ¶
This section is empty.