samehada

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvTupleListToValues

func ConvTupleListToValues(schema_ *schema.Schema, result []*tuple.Tuple) [][]*types.Value

func ConvValueListToIFs added in v0.0.2

func ConvValueListToIFs(vals [][]*types.Value) [][]interface{}

func PrintExecuteResults

func PrintExecuteResults(results [][]*types.Value)

func ReconstructAllIndexData added in v0.0.2

func ReconstructAllIndexData(c *catalog.Catalog, dman disk.DiskManager, txn *access.Transaction)

Types

type SamehadaDB

type SamehadaDB struct {
	// contains filtered or unexported fields
}

func NewSamehadaDB

func NewSamehadaDB(dbName string, memKBytes int) *SamehadaDB

func (*SamehadaDB) ExecuteSQL

func (sdb *SamehadaDB) ExecuteSQL(sqlStr string) (error, [][]interface{})

func (*SamehadaDB) ExecuteSQLRetValues added in v0.0.2

func (sdb *SamehadaDB) ExecuteSQLRetValues(sqlStr string) (error, [][]*types.Value)

func (*SamehadaDB) ForceCheckpointingForTestcase added in v0.0.5

func (sdb *SamehadaDB) ForceCheckpointingForTestcase()

func (*SamehadaDB) Shutdown added in v0.0.2

func (sdb *SamehadaDB) Shutdown()

func (*SamehadaDB) ShutdownForTescase added in v0.0.5

func (sdb *SamehadaDB) ShutdownForTescase()

type SamehadaInstance

type SamehadaInstance struct {
	// contains filtered or unexported fields
}

func NewSamehadaInstance

func NewSamehadaInstance(dbName string, bpoolSize int) *SamehadaInstance

reset program state except for variables on testcase function and db/log file bpoolSize: usable buffer size in frame(=page) num

func NewSamehadaInstanceForTesting

func NewSamehadaInstanceForTesting() *SamehadaInstance

func (*SamehadaInstance) CloseFilesForTesting added in v0.0.2

func (si *SamehadaInstance) CloseFilesForTesting()

for testing. this method does file closing only in contrast to Shutdown method

func (*SamehadaInstance) GetBufferPoolManager

func (si *SamehadaInstance) GetBufferPoolManager() *buffer.BufferPoolManager

func (*SamehadaInstance) GetCheckpointManager

func (si *SamehadaInstance) GetCheckpointManager() *concurrency.CheckpointManager

func (*SamehadaInstance) GetDiskManager

func (si *SamehadaInstance) GetDiskManager() disk.DiskManager

func (*SamehadaInstance) GetLockManager

func (si *SamehadaInstance) GetLockManager() *access.LockManager

func (*SamehadaInstance) GetLogManager

func (si *SamehadaInstance) GetLogManager() *recovery.LogManager

func (*SamehadaInstance) GetTransactionManager

func (si *SamehadaInstance) GetTransactionManager() *access.TransactionManager

func (*SamehadaInstance) Shutdown added in v0.0.2

func (si *SamehadaInstance) Shutdown(IsRemoveFiles bool)

functionality is Flushing dirty pages, shutdown of DiskManager and action around DB/Log files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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