Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gelembjuk/oursql
/ functions
Functions
1,260 in github.com/Gelembjuk/oursql
⨍
Functions
1,260
◇
Types & classes
172
↓ 5 callers
Method
ExecuteSQLSelectRow
get single row as a map
node/database/manager.go:418
↓ 5 callers
Method
GetAddresses
GetAddresses returns an array of addresses stored in the wallet file
lib/remoteclient/wallets.go:133
↓ 5 callers
Method
GetCount
()
node/database/interface.go:137
↓ 5 callers
Method
GetInfoForTransactions
Return info about transaction settings
node/consensus/config.go:166
↓ 5 callers
Method
GetTransactionsObject
()
node/database/interface.go:26
↓ 5 callers
Method
HookNeworkOperationResult
Call this when network operation with some node failed. It will analise error and do some actios to remember state of this node
lib/net/nodesnetwork.go:246
↓ 5 callers
Method
LogToStdout
Sets ogging to STDOUT
lib/utils/utils.go:153
↓ 5 callers
Function
NewSqlParser
()
node/dbquery/sqlparser/interface.go:31
↓ 5 callers
Method
NewTransaction
New transaction appeared in a pool. Block maker should try to do new block if no anough transactions it will just send this TX to all known nodes
node/server/blocksmaker.go:91
↓ 5 callers
Method
Stop
()
lib/dbproxy/interface.go:15
↓ 5 callers
Method
String
Convert to string in format host:port
lib/net/network.go:44
↓ 5 callers
Method
Truncate
truncate table
node/database/connection.go:155
↓ 5 callers
Method
cleanSQLValue
deescape value , remove quotes. returns only value that is set for column
node/dbquery/sqlparser/parser.go:573
↓ 5 callers
Method
getBlockMakerManager
()
node/consensus/querymanager.go:43
↓ 5 callers
Method
getDataReferencesTable
()
node/database/datareferences.go:10
↓ 5 callers
Method
getRecordFromChain
Read record from chain table.
node/database/blockchain.go:129
↓ 5 callers
Method
getTransactionsManager
Transaction operations and cache manager
node/consensus/blockmaker.go:41
↓ 5 callers
Method
getTransactionsOutputsTable
()
node/database/transactions.go:19
↓ 5 callers
Method
getTransactionsTable
()
node/database/transactions.go:12
↓ 5 callers
Method
processQueryWithSignature
check if this pubkey can execute this query
node/consensus/querymanager.go:406
↓ 5 callers
Method
readFromConnection
Read given amount of bytes from connection
node/server/server.go:464
↓ 4 callers
Method
AddBlock
Add new block to blockchain. It can be executed when new block was created locally or received from other node
node/nodemanager/node.go:458
↓ 4 callers
Method
AddTransactionToPool
(tx *structures.Transaction, flags int)
node/consensus/interface.go:48
↓ 4 callers
Method
BlockchainExist
Check if blockchain already exists. If no, we will not allow most of operations It is needed to create it first
node/nodemanager/node.go:188
↓ 4 callers
Method
CancelTransaction
(txID []byte, sqlrollbacktoexecute bool)
node/transactions/interface.go:44
↓ 4 callers
Method
ExecuteSQLPrimaryKey
(table string)
node/database/interface.go:38
↓ 4 callers
Method
GetAddressBalance
(address string)
node/transactions/interface.go:14
↓ 4 callers
Method
GetNodesObject
()
node/database/interface.go:29
↓ 4 callers
Method
GetSQLQueryManager
Init SQL transactions manager
node/nodemanager/node.go:128
↓ 4 callers
Method
GetTXForRefID
(RefID []byte)
node/database/interface.go:107
↓ 4 callers
Method
GetTopHash
()
node/database/interface.go:80
↓ 4 callers
Method
GetTransactionFromBlock
GetTransactionFromBlock finds a transaction by its ID in given block If block is known . It worsk much faster then FindTransaction
node/blockchain/manager.go:295
↓ 4 callers
Method
GetUnapprovedCount
()
node/transactions/interface.go:15
↓ 4 callers
Method
Init
()
lib/dbproxy/interface.go:11
↓ 4 callers
Method
IsUpdate
Info about a parsed query. Check if is update (insert, update, delete, create table, drop table)
node/dbquery/parsed.go:47
↓ 4 callers
Method
Len
()
node/structures/manager.go:117
↓ 4 callers
Method
LoadFromSimple
build independed transaction from normal output
node/structures/transaction_output.go:62
↓ 4 callers
Function
NewBlockchainIterator
Creates new Blockchain Iterator . Can be used to do something with blockchain from outside
node/blockchain/iterator.go:17
↓ 4 callers
Function
NewHashEmptyDBError
()
node/database/errors.go:65
↓ 4 callers
Function
NewWallets
(confdir string)
lib/remoteclient/wallets.go:33
↓ 4 callers
Method
PutDataForTransaction
(txID []byte, txData []byte)
node/database/interface.go:131
↓ 4 callers
Method
ReferenceID
()
node/dbquery/parsed.go:26
↓ 4 callers
Method
RemoveFromChain
(hash []byte)
node/database/interface.go:86
↓ 4 callers
Method
SendInv
Send inventory. Blocks hashes or transactions IDs
lib/nodeclient/nodeclient.go:330
↓ 4 callers
Function
SignData
(privKey ecdsa.PrivateKey, dataToSign []byte)
lib/utils/crypt.go:13
↓ 4 callers
Method
UpdateOnBlockAdd
* * New Block added * Input of all tranactions are removed from unspent * OUtput of all transactions are added to unspent * Update the UTXO set with t
node/transactions/unspent.go:467
↓ 4 callers
Method
UpdateOnBlockCancel
This is executed when a block is canceled. All input transactions must be return to "unspent" And all output must be deleted from "unspent"
node/transactions/unspent.go:567
↓ 4 callers
Method
getBlockChainTable
()
node/database/blockchain.go:23
↓ 4 callers
Method
getLocalNetworkClient
Create Network Client object. We do this when a node server is running and we need to send command to it (indtead of accessing database directly)
node/nodecli.go:421
↓ 4 callers
Function
getPacketType
(packet []byte)
lib/dbproxy/decoder.go:20
↓ 4 callers
Method
getQueryParser
make SQL query manager
node/transactions/manager.go:37
↓ 4 callers
Method
load
(jsonStr []byte)
node/consensus/config.go:124
↓ 4 callers
Method
processQuery
======================================================================================== this does all work. It checks query, decides if ll data are p
node/consensus/querymanager.go:274
↓ 4 callers
Function
readLenEncodedInteger
ReadLenEncodedInteger returns parsed length-encoded integer and it's offset. See https://mariadb.com/kb/en/mariadb/protocol-data-types/#length-encoded
lib/dbproxy/decoder.go:507
↓ 4 callers
Method
serializeOutputs
Serialize. We need this to store data in DB in bytes
node/transactions/unspent.go:30
↓ 4 callers
Function
skipPacketHeader
SkipPacketHeader rewinds reader to packet payload
lib/dbproxy/decoder.go:593
↓ 3 callers
Function
Base58Encode
Base58Encode encodes a byte array to Base58
lib/utils/base58.go:8
↓ 3 callers
Method
BuildCommandDataWithAuth
Builds a command data. It prepares a slice of bytes from given data
lib/nodeclient/nodeclient.go:711
↓ 3 callers
Function
CancelTransaction
(datadir,txid)
tests/transactions.py:140
↓ 3 callers
Method
CheckBlockExists
Checks if a block exists in the chain. It will go over blocks list
node/nodemanager/blockchain.go:32
↓ 3 callers
Method
CheckHadInputConnects
Check if there were recent input connects
lib/net/nodesnetwork.go:129
↓ 3 callers
Method
ChooseHashUnderTip
Receive ist of hashes and return a hash that is in the chain defined by top hash This function is used for transactions. to understand if a transactio
node/blockchain/manager.go:815
↓ 3 callers
Method
Clone
Clone node
node/nodemanager/node.go:77
↓ 3 callers
Method
CompleteBlock
returns list of transactions in prepared block
node/consensus/interface.go:46
↓ 3 callers
Method
CreateNode
* * Createes node object. Node does all work related to acces to bockchain and DB */
node/nodecli.go:125
↓ 3 callers
Method
DeleteDataForTransaction
(txID []byte)
node/database/interface.go:130
↓ 3 callers
Method
DeleteFromBlock
* * Remove all transactions from this cache listed in a block. * Is used when new block added and transactions are approved now */
node/transactions/pending.go:654
↓ 3 callers
Method
DeserializeHashes
Deserialize list of hashes
node/transactions/index.go:324
↓ 3 callers
Method
DeserializeOutputs
Deserialize data from bytes loaded fom DB
node/transactions/index.go:298
↓ 3 callers
Method
DoNewBlock
Send command to block builder to start doing new block. It will check if there are eenough transactions if no anough it will just continue to wait
node/server/blocksmaker.go:102
↓ 3 callers
Method
Dump
(file string)
node/database/interface.go:34
↓ 3 callers
Function
Execute
(command, verbose = False)
tests/_lib.py:158
↓ 3 callers
Method
ExecuteParsedQuery
(qp QueryParsed)
node/dbquery/interface.go:12
↓ 3 callers
Method
GetAlternativeRefID
()
node/dbquery/interface.go:21
↓ 3 callers
Method
GetBlockHashForTX
(txID []byte)
node/database/interface.go:94
↓ 3 callers
Function
GetDBCredentials
(testdatadir = "")
tests/_lib.py:86
↓ 3 callers
Method
GetDataReferencesObject
()
node/database/interface.go:30
↓ 3 callers
Method
GetTXSpentOutputs
(txID []byte)
node/database/interface.go:97
↓ 3 callers
Method
GetTime
()
node/structures/transaction.go:348
↓ 3 callers
Method
GetTopBlock
()
node/database/interface.go:73
↓ 3 callers
Method
GetTranactionBlocks
(txID []byte)
node/transactions/index.go:336
↓ 3 callers
Method
GetTransaction
(txID []byte)
node/database/interface.go:118
↓ 3 callers
Method
HasOutAddress
Lock signs the output
node/structures/transaction_output.go:48
↓ 3 callers
Method
Init
Init wallet client object. This will manage execution of tasks related to a wallet
lib/remoteclient/cli.go:43
↓ 3 callers
Method
InitDatabase
()
node/database/interface.go:17
↓ 3 callers
Method
IsCurrencyTransfer
Checks whether the transaction is currency transaction (sends money to somewhere)
node/structures/transaction.go:56
↓ 3 callers
Method
LoadFromFile
LoadFromFile loads wallets from the file
lib/remoteclient/wallets.go:152
↓ 3 callers
Method
LoadFromString
Parse from string
lib/net/network.go:88
↓ 3 callers
Method
MakeWallet
MakeWallet creates Wallet. It generates new keys pair and assign to the object
lib/remoteclient/wallet.go:54
↓ 3 callers
Function
NewHashNotFoundDBError
(err string)
node/database/errors.go:58
↓ 3 callers
Function
NewProofOfWork
NewProofOfWork builds and returns a ProofOfWork object The object can be used to find a hash for the block
node/consensus/proofofwork.go:37
↓ 3 callers
Method
OpenConnection
()
node/database/interface.go:21
↓ 3 callers
Method
OpenConnectionIfNeeded
open connection if it is not yet opened
node/nodemanager/database.go:147
↓ 3 callers
Method
PrepareConnection
(sessid string)
node/nodemanager/database.go:111
↓ 3 callers
Method
PrepareSignData
prepare data to sign a transaction this return []bytes. it is bytes representation of a TX.
node/structures/transaction.go:123
↓ 3 callers
Method
ReceivedNewTransaction
Received new transaction . This must verify and if all ok it adds to the pool
node/nodemanager/node.go:626
↓ 3 callers
Method
RemoveNodeFromKnown
(addr NodeAddr)
lib/net/nodesnetwork.go:15
↓ 3 callers
Method
SendVersionToNodes
Send own version to all known node
node/nodemanager/node.go:272
↓ 3 callers
Method
SetConfig
get QueryManager object
node/database/interface.go:12
↓ 3 callers
Method
SetLogger
(logger *utils.LoggerMan)
node/database/interface.go:13
← previous
next →
101–200 of 1,260, ranked by callers