database

package
v0.0.0-...-2236603 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLevelDBDatabase

func CreateLevelDBDatabase(params ...string) (*leveldb.DB, error)

Create a LevelDB database connection to a file path

func CreateSQLiteDatabase

func CreateSQLiteDatabase(params ...string) (*sql.DB, error)

Create a database connection to a file path

func Fragmentation_Add

func Fragmentation_Add(shard int64, KEY ...string)

Add adds a fragment to the fragmentation.

func Fragmentation_Get

func Fragmentation_Get(rowID string) (int64, error)

Get returns the shard for a given rowID.

func Fragmentation_Remove

func Fragmentation_Remove(key string)

Remove removes a fragment from the fragmentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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