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
Method
CompleteBlock
finalise a block. in this place we do MIMING Block was prepared. Now do final work for this block. In our case it is PoW process
node/consensus/blockmaker.go:193
Function
Copy6Nodes
()
tests/_complex.py:567
Function
Copy6NodesSQL
()
tests/_complex.py:589
Function
CopyBytes
(source []byte)
lib/utils/utils.go:268
Function
CopyTestConsensusConfig
(todir,consconfname, walletaddr)
tests/_lib.py:237
Function
CopyTestData
(todir,testset)
tests/_lib.py:255
Method
CountTransactions
Returns total number of unspent transactions in a cache.
node/transactions/unspent.go:278
Method
CreateBlockchain
Create new blockchain, add genesis block witha given text
node/nodemanager/blockchain_create.go:50
Method
CreateCurrencyTransaction
Send amount of money if a node is not running. This function only adds a transaction to queue Attempt to send the transaction to other nodes will be d
node/transactions/manager.go:478
Function
CreateLoggerStdout
()
lib/utils/utils.go:63
Function
CreateTestFolder
(suffix = "")
tests/_lib.py:63
Function
CreateWallet
(datadir)
tests/_wallet.py:84
Function
DBExecute
(datadir, sql, proxy = False)
tests/_lib.py:129
Function
DBGetRow
(datadir, sql, proxy = False)
tests/_lib.py:115
Function
DBGetRows
(datadir, sql, proxy = False)
tests/_lib.py:122
Function
DBQuote
Enquotes a string to build safe SQL This should be equivalent to PHP mysql_real_escape_string function
lib/utils/utils.go:291
Method
DeleteBlock
Delete block record
node/database/blockchain.go:89
Method
DeleteBlock
* * DeleteBlock deletes the top block (last added) * The function extracts the last block, deletes it and sets the tip to point to * previous block. *
node/blockchain/manager.go:253
Method
DeleteDataForTransaction
(txID []byte)
node/database/unspentoutputs.go:41
Method
DeleteFromBlocks
* * Remove given blocks transavtions from unapproved . For case when list of blocks are added to primary blockchain branch */
node/transactions/pending.go:637
Method
DeleteNode
(nodeID []byte)
node/database/nodes.go:44
Method
DeleteRefID
Delete link between TX and a block hash
node/database/datareferences.go:38
Method
DeleteTXSpentData
Delete info about spent outputs for TX
node/database/transactions.go:72
Method
DeleteTXToBlockLink
Delete link between TX and a block hash
node/database/transactions.go:57
Method
DeleteTransaction
delete transation from DB
node/database/unapprovedtransactions.go:52
Function
DeserializeOutputs
DeserializeOutputs deserializes TXOutputs
node/structures/transaction_output.go:99
Method
DropBlock
Drop block from a top of blockchain
node/nodemanager/blockchain.go:91
Method
Dump
(file string)
node/database/mocks.go:68
Method
Dump
(file string)
node/database/manager.go:316
Method
Dump
dump DB to file
node/nodemanager/database.go:170
Function
EndTestGroupSuccess
()
tests/_lib.py:220
Function
EndTestSuccess
()
tests/_lib.py:217
Method
Error
()
lib/dbproxy/encoder.go:58
Method
Error
()
node/transactions/error.go:36
Method
Error
()
node/transactions/error.go:40
Method
Error
()
node/transactions/error.go:44
Function
ExecuteHangNode
(args, folder, verbose=False)
tests/_lib.py:195
Method
ExecuteQuery
execute query against a DB, returns SQLUpdate. Detects RefID and builds rollback
node/dbquery/queryprocessing.go:194
Method
ExecuteQueryFromTX
Execute query from TX
node/dbquery/queryprocessing.go:221
Method
ExecuteRollbackQueryFromTX
Execute rollback query from TX
node/dbquery/queryprocessing.go:226
Function
ExecuteSQL
(datadir,fromaddr,sqlcommand)
tests/_sql.py:7
Method
ExecuteSQL
(sql string)
node/database/mocks.go:74
Method
ExecuteSQL
execute query.
node/database/manager.go:368
Method
ExecuteSQLCountInTable
(table string)
node/database/mocks.go:109
Method
ExecuteSQLCountInTable
Get count of rows in table
node/database/manager.go:621
Method
ExecuteSQLExplain
(sql string)
node/database/mocks.go:82
Method
ExecuteSQLExplain
execute EXPLAIN query to check if sql query is correct and what is type and which table it affects
node/database/manager.go:379
Function
ExecuteSQLFailure
(datadir,fromaddr,sqlcommand)
tests/_sql.py:24
Method
ExecuteSQLNextKeyValue
(table string)
node/database/mocks.go:101
Method
ExecuteSQLNextKeyValue
Return next auto_increment before query executed
node/database/manager.go:525
Function
ExecuteSQLOnProxy
(datadir,sqlcommand)
tests/_sql.py:41
Function
ExecuteSQLOnProxyFail
(datadir,sqlcommand)
tests/_sql.py:50
Function
ExecuteSQLOnProxySignFail
(datadir,sqlcommand, pub_key, pri_key)
tests/_sql.py:90
Method
ExecuteSQLPrimaryKey
(table string)
node/database/mocks.go:88
Method
ExecuteSQLPrimaryKey
get primary key column name for a table
node/database/manager.go:402
Method
ExecuteSQLRowByKey
get row by table name and primary key value
node/database/manager.go:413
Method
ExecuteSQLSelectRow
(sqlcommand string)
node/database/mocks.go:93
Method
ExecuteSQLSelectRows
(sqlcommand string)
node/database/mocks.go:97
Method
ExecuteSQLSelectRows
get all rows as array of maps
node/database/manager.go:471
Method
ExecuteSQLTableDump
(table string, limit int, offset int)
node/database/mocks.go:105
Method
ExecuteSQLTableDump
Return list of SQL queries as part of dump If offset is 0 we retrn table create SQL comand too
node/database/manager.go:536
Function
ExecuteWallet
(args,verbose=False)
tests/_lib.py:191
Method
ExtendInsert
updates already parsed query if it is insert adds one more column to a query
node/dbquery/sqlparser/parser.go:75
Function
ExtractCommand
Get command part from request string
lib/net/network.go:130
Function
Fatal
(comment)
tests/_lib.py:291
Function
FatalAssert
(cond,comment)
tests/_lib.py:329
Function
FatalAssertFloat
(f1,f2,comment)
tests/_lib.py:317
Function
FatalAssertPIDNotRunning
Check For the existence of a unix pid.
tests/_lib.py:341
Function
FatalAssertPIDRunning
Check For the existence of a unix pid.
tests/_lib.py:333
Function
FatalAssertStr
(s1,s2,comment)
tests/_lib.py:302
Function
FatalRegex
(expr,text,comment)
tests/_lib.py:351
Method
ForEach
execute functon for each key/value in the bucket
node/database/unspentoutputs.go:24
Method
ForEach
retrns nodes list iterator
node/database/nodes.go:24
Method
ForEach
(callback ForEachKeyIteratorInterface)
node/database/interface.go:114
Method
ForEach
(callback ForEachKeyIteratorInterface)
node/database/interface.go:126
Method
ForEach
execute functon for each key/value in the bucket
node/database/unapprovedtransactions.go:28
Method
ForEachUnapprovedTransaction
Iterate over unapproved transactions, for example to display them . Accepts callback as argument
node/transactions/manager.go:277
Method
ForEachUnspentOutput
Iterate over unspent transactions outputs, for example to display them . Accepts callback as argument
node/transactions/manager.go:282
Method
GetAddressBalance
* * Calculates address balance using the cache of unspent transactions outputs */
node/transactions/unspent.go:60
Method
GetAddressBalance
Calculates balance of address. Uses DB of unspent trasaction outputs and cache of pending transactions
node/transactions/manager.go:93
Method
GetAll
Get all records as single request
node/database/unapprovedtransactions.go:23
Method
GetAll
Get all records from DB. There is max limit maxPossibleRowsToReturn returns list of 2 dimensional slices with key and pair
node/database/connection.go:104
Method
GetAlternativeRefID
()
node/dbquery/sqlupdatemanager.go:125
Function
GetAppInput
Parses input and config file. Command line arguments ovverride config file options
node/config/config.go:104
Function
GetAppInputFromDir
(dirpath string)
node/config/config.go:108
Function
GetBalance
(datadir, address)
tests/_transfers.py:5
Function
GetBalanceWallet
(datadir, address, host, port)
tests/_wallet.py:40
Function
GetBalanceWalletNoNode
(datadir, address)
tests/_wallet.py:47
Method
GetBlock
Get block objet by hash
node/nodemanager/blockchain.go:37
Method
GetBlockAtHeight
Returns a block with specified height in current blockchain TODO can be optimized using blocks index
node/blockchain/manager.go:314
Method
GetBlockHashForTX
Get block hash for TX
node/database/transactions.go:52
Method
GetBlockchainObject
()
node/database/mocks.go:43
Function
GetBlocksExt
(datadir)
tests/_blocks.py:16
Method
GetBranchesReplacement
* * Returns a chain of blocks starting from a hash and till * end of blockchain or block from main chain found * if already in main chain then returns
node/blockchain/manager.go:767
Method
GetCanonicalQuery
================== END PARSERS =============================
node/dbquery/sqlparser/parser.go:607
Method
GetComments
()
node/dbquery/sqlparser/parser.go:663
Method
GetConnecttionVerifiedNodeAddr
Checks nodes rendomly and returns first found node that is accesible It check if a node was ever connected from this place
lib/net/nodesnetwork.go:192
Method
GetCount
get count of records in the table
node/database/unspentoutputs.go:29
Method
GetCount
get count of records in the table
node/database/nodes.go:29
Method
GetCount
()
node/database/interface.go:115
← previous
next →
801–900 of 1,260, ranked by callers