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
↓ 1 callers
Method
handleTx
* * Handle new transaction. Verify it before doing something (verify is done in the NodeTX object) * This is transaction received from other node. We
node/server/handle.go:801
↓ 1 callers
Method
handleTxCurRequest
Request for new currrency transaction from light client. Builds a transaction without sign. Returns also list of previous transactions selected for in
node/server/handle.go:292
↓ 1 callers
Method
handleTxData
Accepts new transaction data. It is prepared transaction without signatures Signatures are received too. Complete TX must be constructed and verified.
node/server/handle.go:177
↓ 1 callers
Method
handleTxSQLRequest
Prepares SQL transaction for a query
node/server/handle.go:325
↓ 1 callers
Method
handleVersion
* * Process version command. Other node sends own address and index of top block. * This node checks if index is bogger then request for a rest of blo
node/server/handle.go:938
↓ 1 callers
Method
importBlockchainConsensusInfo
Import blockchain consensus info. Config file, plugin etc
node/nodemanager/blockchain_create.go:189
↓ 1 callers
Method
initBlocksMaker
MySQL proxy server. It is in the middle between a DB server and DB client an reads requests
node/server/server.go:367
↓ 1 callers
Method
initWallets
Creates Wallets object and fills it from a file if it exists
lib/remoteclient/cli.go:56
↓ 1 callers
Function
insertTest
(dbconn *database.MySQLDBManager, q dbquery.QueryProcessorInterface)
tests/packagestests/dbquery/main.go:163
↓ 1 callers
Method
isInteractiveMode
Detects if this request is not related to node server management and must return response right now
node/nodecli.go:199
↓ 1 callers
Method
isNodeManageMode
Detects if it is a node management command
node/nodecli.go:205
↓ 1 callers
Method
makeDeleteRollback
Build Delete operation rollback
node/dbquery/parsed.go:181
↓ 1 callers
Method
makeHash
Hash returns the hash of the Transaction
node/structures/transaction.go:84
↓ 1 callers
Method
makeInsertRollback
Build Insert operation rollback
node/dbquery/parsed.go:148
↓ 1 callers
Method
makeNewBlockFromTransactions
this builds a block object from given transactions list adds coinbase transacion (prize for miner)
node/consensus/blockmaker.go:233
↓ 1 callers
Method
makeUpdateRollback
Build Update operation rollback
node/dbquery/parsed.go:153
↓ 1 callers
Method
mergeResults
Merge results from different nodes. This structure is used to return total result
node/nodemanager/communication.go:354
↓ 1 callers
Method
newKeyPair
Generate new key pair to create new wallet
lib/remoteclient/wallet.go:158
↓ 1 callers
Function
newTXPoolCacheNoMemoryError
Generate when pool memory cache can not be used because no memory
node/transactions/error.go:93
↓ 1 callers
Method
newTransactionIndex
Create transaction index object
node/transactions/unspent.go:25
↓ 1 callers
Method
normalizeQuery
normalize a query. remove extra spaces (but not from texts inside) TODO this muts do similar work like "github.com/percona/go-mysql/query" but without
node/dbquery/sqlparser/parser.go:152
↓ 1 callers
Method
parseComments
================== PARSERS ============================= extract comments from the query
node/dbquery/sqlparser/parser.go:127
↓ 1 callers
Method
parseCondition
parse condition
node/dbquery/sqlparser/parser.go:365
↓ 1 callers
Method
parseHandshake
extract protocol info from initial handshake this info will be needed to make custom responses later
lib/dbproxy/mysqlproxy.go:338
↓ 1 callers
Method
parseHandshakeClientResponse
extract client capabilities from a response on handshake from server
lib/dbproxy/mysqlproxy.go:349
↓ 1 callers
Method
parseInfoFromComments
Parse comments
node/dbquery/parsed.go:80
↓ 1 callers
Method
parseKindAndTable
get query kind and table name
node/dbquery/sqlparser/parser.go:159
↓ 1 callers
Method
parseUpdateColumns
parse update columns and values
node/dbquery/sqlparser/parser.go:228
↓ 1 callers
Method
parseValueList
parse names and values from insert lists
node/dbquery/sqlparser/parser.go:325
↓ 1 callers
Method
patchRowInfo
return info for a row that will be affected by a query. If that is update or delete return a row if it is insert, try to get next autoincrement
node/dbquery/queryprocessing.go:76
↓ 1 callers
Method
prepareGenesisBlock
BUilds a genesis block. It is used only to start new blockchain
node/nodemanager/blockchain_create.go:202
↓ 1 callers
Function
printUsage
()
remoteclient/config.go:146
↓ 1 callers
Method
processBlocksFromOtherNode
Process blocks list received from other node. Returns list of added blocks
node/nodemanager/communication.go:232
↓ 1 callers
Method
processNodesFromPoolOnOtherNode
Process nodes addresses list received from other node
node/nodemanager/communication.go:331
↓ 1 callers
Method
processResults
(res nodemanager.ChangesPullResults)
node/server/changeschecker.go:96
↓ 1 callers
Method
processTransactionsFromPoolOnOtherNode
Process blocks list received from other node. Returns list of transactions added to a pool
node/nodemanager/communication.go:293
↓ 1 callers
Method
pullUpdatesFromNode
Load updates from a node
node/nodemanager/communication.go:200
↓ 1 callers
Function
randString
(n int)
lib/dbproxy/utils.go:9
↓ 1 callers
Function
readEOFLengthString
ReadEOFLengthString returns parsed EOF-length string. EOF-length strings are those strings whose length will be calculated by the packet remaining len
lib/dbproxy/decoder.go:573
↓ 1 callers
Function
readLenEncodedString
ReadLenEncodedString returns parsed length-encoded string and it's length. Length-encoded strings are prefixed by a length-encoded integer which descr
lib/dbproxy/decoder.go:559
↓ 1 callers
Method
readRequest
Reads and parses request from network data
node/server/server.go:402
↓ 1 callers
Function
readResponse
ReadResponse ...
lib/dbproxy/packet.go:122
↓ 1 callers
Method
renewCacheIfNeeded
()
node/transactions/pending.go:47
↓ 1 callers
Method
rollbackConflictingFromPool
find which transactions in a pool conflict with this list and remove if any conflicts
node/transactions/manager.go:381
↓ 1 callers
Method
run
* * The routine that tries to make blocks. * The routine reads last added transaction ID * The ID will be real tranaction ID only if this transaction
node/server/blocksmaker.go:51
↓ 1 callers
Method
saveBackToFile
Save a consensus config to same file from where it was loaded
node/consensus/config.go:155
↓ 1 callers
Method
sendTransactionToAllASync
Send tranaction ID to all nodes in async mode. We expect nodes will call us back to get TX
node/nodemanager/communication.go:54
↓ 1 callers
Method
sendTransactionToAllSync
Send tranaction ID to all nodes in sync mode. We just send full TX to all known nodes and they decide what to do
node/nodemanager/communication.go:69
↓ 1 callers
Method
sendVersionToNodes
Send own version to all known nodes
node/nodemanager/communication.go:26
↓ 1 callers
Method
setOriginalRequest
(p []byte)
lib/dbproxy/interface.go:23
↓ 1 callers
Method
setProtocolInfo
(pi protocolInfo)
lib/dbproxy/interface.go:27
↓ 1 callers
Function
signatureFromDER
Get R and S from DER formatted signature
lib/utils/crypt.go:48
↓ 1 callers
Function
signatureToDER
Make DER format signature from r and s slices
lib/utils/crypt.go:29
↓ 1 callers
Method
startChangesChecker
MySQL proxy server. It is in the middle between a DB server and DB client an reads requests
node/server/server.go:359
↓ 1 callers
Method
startDatabaseProxy
MySQL proxy server. It is in the middle between a DB server and DB client an reads requests
node/server/server.go:338
↓ 1 callers
Method
tryToRepeatTransactionResigned
check if this query must be added to transaction. all SELECT queries must be ignored. and some update queries can be ignored too. such queries are jus
node/consensus/querymanager.go:460
↓ 1 callers
Function
updateConfig
(datadir string, c remoteclient.AppInput)
remoteclient/config.go:99
↓ 1 callers
Method
verifyTransactionPaidSQL
Verify SQL paid transaction. This checks if output is locked to correct address and amount is vald for paid SQL
node/consensus/blockmaker.go:493
↓ 1 callers
Method
verifyTransactionSQLPermissions
Verify SQL can be executed. This checks if there are permissions to execute this SQL at this point of blockchain
node/consensus/blockmaker.go:550
↓ 1 callers
Method
waitServerStarted
check while sever started
node/server/daemon.go:360
↓ 1 callers
Function
writePacket
WritePacket ...
lib/dbproxy/packet.go:197
Method
AddBlock
Add block to blockchain Block is not yet verified
node/nodemanager/blockchain.go:97
Method
AddBlock
* * Add new block to the blockchain BCBAddState_error = 0 not added to the chain. Because of error BCBAddState_addedToTop = 1 a
node/blockchain/manager.go:54
Function
AddMinterToConfig
(datadir, minter)
tests/_complex.py:552
Method
AddNodeToKnown
* * Checks if a node exists in list of known nodes and adds it if no * Returns true if was added */
lib/net/nodesnetwork.go:147
Method
AddNodeToKnown
Add node We need this for case when we want to do some more actions after node added
node/nodemanager/node.go:257
Method
AddNodeToKnown
(addr net.NodeAddr)
node/nodemanager/nodeslist.go:33
Method
AddToChain
add block to chain
node/database/blockchain.go:145
Method
AddTransactionToPool
Add transaction to a pool. This will call verification and if all is ok it adds to a poool of transactions
node/consensus/blockmaker.go:438
Function
AddresToPubKeyHash
Converts address string to hash of pubkey
lib/utils/utils.go:191
Method
BlockAdded
to execute when new block added . the block must not be on top
node/transactions/manager.go:292
Method
BlockAddedToPrimaryChain
block is now added to primary chain. it existed in DB before
node/transactions/manager.go:331
Method
BlockInChain
(hash []byte)
node/database/blockchain.go:240
Method
BlockRemoved
Block was removed from the top of primary blockchain branch
node/transactions/manager.go:315
Method
BlockRemovedFromPrimaryChain
block is removed from primary chain. it continued to be in DB on side branch
node/transactions/manager.go:347
Method
BlocksAdded
(blocks []*structures.Block)
node/transactions/index.go:33
Method
BlocksRemoved
(blocks []*structures.Block)
node/transactions/index.go:128
Function
BytesToCommand
Convert bytes back to command
lib/net/network.go:117
Method
CheckAllowsMultipleSubtransactions
(sqlUpdPrev *structures.SQLUpdate)
node/dbquery/interface.go:20
Method
CheckAllowsMultipleSubtransactions
Detects if this SQL TX allows to have multiple following TXs this is possible if the query is table create or table create is based on empty transacti
node/dbquery/sqlupdatemanager.go:102
Method
CheckBlockExists
Check if block exists by hash
node/database/blockchain.go:53
Method
CheckBlockExists
Check block exists
node/blockchain/manager.go:390
Method
CheckConnection
()
node/database/mocks.go:25
Method
CheckConnection
try to set up a connection to DB. and close it then
node/database/manager.go:50
Method
CheckConnection
check if connection to DB can be set
node/nodemanager/database.go:67
Method
CheckDBExists
()
node/database/mocks.go:40
Method
CheckDBExists
Check if database was already inited
node/database/manager.go:181
Function
CheckPIDNotRunning
Check For the existence of a unix pid.
tests/_lib.py:273
Function
CheckTXOutputValueToAddress
(tx *Transaction, PubKeyHash []byte, amount float64)
node/structures/verify.go:37
Function
CheckTXOutputsAreOnlyToGivenAddresses
Check if all TXt currency outputs are only to given addresses
node/structures/verify.go:12
Method
CheckUpdateCanFollow
(sqlUpdPrev *structures.SQLUpdate)
node/dbquery/interface.go:19
Method
CheckUpdateCanFollow
Check if one SQL update can follow other update we allow: insert only after table create update only after insert or update delete only after insert o
node/dbquery/sqlupdatemanager.go:32
Function
CleanTestFolders
()
tests/_lib.py:22
Method
CleanUnapprovedCache
Remove all unapproced transactions from the pool
node/transactions/pending.go:815
Method
CleanUnapprovedCache
Remove all transactions from unapproved cache (transactions pool)
node/transactions/manager.go:287
Method
Clone
Clone database object. all is clonned except locker object. locker object is shared between all objects
node/nodemanager/database.go:45
Method
Close
close DB connection
node/database/connection.go:20
Method
CloseConnection
()
node/database/mocks.go:31
Method
CloseConnection
()
node/nodemanager/database.go:123
Function
CommandToBytes
Converts a command to bytes in fixed length
lib/net/network.go:106
← previous
next →
701–800 of 1,260, ranked by callers