db

package
v0.0.0-...-ea3adbb Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB - The DB Module

func NewDB

func NewDB(provider providers.ProviderInterface) *DB

NewDB - DB Module constructor to set the default provider

func (*DB) PutString

func (db *DB) PutString(databaseName string, keyName string, stringToStore string) (bool, error)

PutString - Stores a string in the local database. Note this function is deprecated and will be removed in the future. Reference: https://github.com/ethereum/wiki/wiki/JSON-RPC#db_putstring Parameters:

  • String - Database name.
  • String - Key name.
  • String - String to store.

Returns:

  • Boolean - returns true if the value was stored, otherwise false.

Jump to

Keyboard shortcuts

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