impl

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayStore

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

GatewayStore is the storage layer of the gateway.

func NewGatewayStore

func NewGatewayStore(db *database.SQLiteDB, resolver sqlparser.ReadStatementResolver) *GatewayStore

NewGatewayStore creates a new GatewayStore.

func (*GatewayStore) GetReceipt

func (s *GatewayStore) GetReceipt(
	ctx context.Context, chainID tableland.ChainID, txnHash string,
) (gateway.Receipt, bool, error)

GetReceipt gets the receipt of a given transaction hash.

func (*GatewayStore) GetSchemaByTableName

func (s *GatewayStore) GetSchemaByTableName(ctx context.Context, tblName string) (gateway.TableSchema, error)

GetSchemaByTableName returns the table schema given its name.

func (*GatewayStore) GetTable

func (s *GatewayStore) GetTable(
	ctx context.Context, chainID tableland.ChainID, tableID tables.TableID,
) (gateway.Table, error)

GetTable returns a table information.

func (*GatewayStore) Read

Read executes a parsed read statement.

Jump to

Keyboard shortcuts

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