Documentation ¶
Index ¶
- Variables
- func Init()
- func MustQuery(sql DBSqlT, params DBParamsT, rcvr Receiver)
- func TReset()
- func TakeConnectionFromPool_sync() refDBConnT
- type AddFromIteratorFunctorT
- type AddFromIteratorT
- type AddUnitIteratorFunctorT
- type AddUnitIteratorT
- type AddressDelayRow
- type AddressDelaysReceiver
- type AddressDenominationAssetRow
- type AddressDenominationAssetsReceiver
- type AddressRow
- type AddressesReceiver
- type BallRow
- type BallsReceiver
- type BestParentUnitCountRow
- type BestParentUnitCountsReceiver
- type BestParentUnitRow
- type BestParentUnitsReceiver
- type CountOnStableMCRow
- type CountOnStableMCsReceiver
- type CountRow
- type CountsReceiver
- type DBConnPoolT
- type DBConnT
- func (conn *DBConnT) AddQuery(sql DBSqlT, params DBParamsT)
- func (conn *DBConnT) AddQueryCb(sql DBSqlT, params DBParamsT, cb DBQueryCbT)
- func (conn *DBConnT) BeginTransaction()
- func (conn *DBConnT) Commit()
- func (conn *DBConnT) DropTemporaryTable(table string) string
- func (conn *DBConnT) Exec(prep refDBPreparedT, params []interface{}) (error, *DBQueryResultT)
- func (conn *DBConnT) ExecPrepared(prep refDBPreparedT, params []interface{}) (sql.Result, error)
- func (conn *DBConnT) ExecuteAddedQuerys() error
- func (conn *DBConnT) ForceIndex(index string) string
- func (conn *DBConnT) GetFromUnixTime(ts string) string
- func (conn *DBConnT) GetIgnore() string
- func (conn *DBConnT) MustExec(sql DBSqlT, params DBParamsT) *DBQueryResultT
- func (conn *DBConnT) MustQuery(sql DBSqlT, params DBParamsT, rcvr Receiver)
- func (conn *DBConnT) Query(prep refDBPreparedT, params []interface{}, rcvr Receiver) error
- func (conn *DBConnT) QueryPrepared(prep refDBPreparedT, params []interface{}) (*sql.Rows, error)
- func (conn *DBConnT) Release()
- func (conn *DBConnT) ResetAddedQueries()
- func (conn *DBConnT) Rollback()
- func (conn *DBConnT) ShowPrepared()
- type DBParamT
- type DBParamsT
- func (params *DBParamsT) AddAddresses(addresses types.AddressesT) DBSqlT
- func (params *DBParamsT) AddContributions(cbns types.ContributionsT) DBSqlT
- func (params *DBParamsT) AddFromIterator(iter AddFromIteratorT) DBSqlT
- func (params *DBParamsT) AddMCIndexes(mcindexes types.MCIndexesT) DBSqlT
- func (params *DBParamsT) AddPaidWitnessEvents(pwes types.PaidWitnessEventsT) DBSqlT
- func (params *DBParamsT) AddUnits(units types.UnitsT) DBSqlT
- func (params *DBParamsT) AddUnitsFromIterator(iter AddUnitIteratorT) DBSqlT
- type DBPreparedByTagT
- type DBPreparedT
- type DBPreparedTagT
- type DBQueryCbT
- type DBQueryResultT
- type DBQueryT
- type DBQuerysT
- type DBRowT
- type DBRowsReceiver
- type DBRowsT
- type DBSqlT
- type Database
- type LevelRow
- type LevelsReceiver
- type MCIOnMCRow
- type MCIOnMCsReceiver
- type MaxAltLevelRow
- type MaxAltLevelsReceiver
- type MaxLevelRow
- type MaxLevelsReceiver
- type MaxSpendableMCIRow
- type MaxSpendableMCIsReceiver
- type MinMCIndexRow
- type MinMCIndexsReceiver
- type MinMCWLRow
- type MinMCWLsReceiver
- type MinRetrievableMCIRow
- type MinRetrievableMCIsReceiver
- type ParentChildUnitRow
- type ParentChildUnitsReceiver
- type PaymentInfoRow
- type PaymentInfosReceiver
- type PropsReceiver
- type RUPUnitPropsReceiver
- type Receiver
- type UnitAddressRow
- type UnitAddressesReceiver
- type UnitAuthorShareRow
- type UnitAuthorSharesReceiver
- type UnitBallRow
- type UnitBallsReceiver
- type UnitContentBallRow
- type UnitContentBallsReceiver
- type UnitContentHashRow
- type UnitContentHashsReceiver
- type UnitContentRow
- type UnitContentsReceiver
- type UnitIsFreesReceiver
- type UnitLIMCIRow
- type UnitLIMCIsReceiver
- type UnitMCIRow
- type UnitMCISequenceAddressRow
- type UnitMCISequenceAddressesReceiver
- type UnitMCIsReceiver
- type UnitMCPropsReceiver
- type UnitMCPropsRow
- type UnitPropsReceiver
- type UnitPropsRow
- type UnitRow
- type UnitsReceiver
- type WitnessListUnitAndUnitRow
- type WitnessListUnitAndUnitsReceiver
- type WitnessListUnitRow
- type WitnessListUnitsReceiver
- type WitnessedLevelRow
- type WitnessedLevelsReceiver
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TExec int64 TQuery int64 TCommit int64 TRollback int64 )
Functions ¶
func TakeConnectionFromPool_sync ¶
func TakeConnectionFromPool_sync() refDBConnT
Types ¶
type AddFromIteratorFunctorT ¶
type AddFromIteratorFunctorT func(params_ ...interface{})
type AddFromIteratorT ¶
type AddFromIteratorT func(iterFn AddFromIteratorFunctorT) (int, string)
type AddUnitIteratorFunctorT ¶
type AddUnitIteratorT ¶
type AddUnitIteratorT func(iterFn AddUnitIteratorFunctorT) int
type AddressDelaysReceiver ¶
type AddressDelaysReceiver struct {
Rows []AddressDelayRow
}
type AddressDenominationAssetsReceiver ¶
type AddressDenominationAssetsReceiver struct {
Rows []AddressDenominationAssetRow
}
type AddressRow ¶
type AddressesReceiver ¶
type AddressesReceiver struct {
Rows []AddressRow
}
type BallsReceiver ¶
type BallsReceiver struct {
Rows []BallRow
}
type BestParentUnitCountRow ¶
type BestParentUnitCountsReceiver ¶
type BestParentUnitCountsReceiver struct {
Rows []BestParentUnitCountRow
}
type BestParentUnitRow ¶
type BestParentUnitsReceiver ¶
type BestParentUnitsReceiver struct {
Rows []BestParentUnitRow
}
type CountOnStableMCRow ¶
type CountOnStableMCsReceiver ¶
type CountOnStableMCsReceiver struct {
Rows []CountOnStableMCRow
}
type CountsReceiver ¶
type CountsReceiver struct {
Rows []CountRow
}
type DBConnPoolT ¶
type DBConnPoolT struct {
// contains filtered or unexported fields
}
func (*DBConnPoolT) Get ¶
func (pool *DBConnPoolT) Get() refDBConnT
func (*DBConnPoolT) Put ¶
func (pool *DBConnPoolT) Put(item refDBConnT)
type DBConnT ¶
type DBConnT struct {
// contains filtered or unexported fields
}
func (*DBConnT) AddQueryCb ¶
func (conn *DBConnT) AddQueryCb(sql DBSqlT, params DBParamsT, cb DBQueryCbT)
func (*DBConnT) BeginTransaction ¶
func (conn *DBConnT) BeginTransaction()
func (*DBConnT) DropTemporaryTable ¶
func (*DBConnT) Exec ¶
func (conn *DBConnT) Exec(prep refDBPreparedT, params []interface{}) (error, *DBQueryResultT)
func (*DBConnT) ExecPrepared ¶
func (*DBConnT) ExecuteAddedQuerys ¶
func (*DBConnT) ForceIndex ¶
func (*DBConnT) GetFromUnixTime ¶
func (*DBConnT) MustExec ¶
func (conn *DBConnT) MustExec(sql DBSqlT, params DBParamsT) *DBQueryResultT
func (*DBConnT) QueryPrepared ¶
func (*DBConnT) ResetAddedQueries ¶
func (conn *DBConnT) ResetAddedQueries()
func (*DBConnT) ShowPrepared ¶
func (conn *DBConnT) ShowPrepared()
type DBParamsT ¶
type DBParamsT []DBParamT
DBParamsT = []DBParamT
func (*DBParamsT) AddAddresses ¶
func (params *DBParamsT) AddAddresses(addresses types.AddressesT) DBSqlT
func (*DBParamsT) AddContributions ¶
func (params *DBParamsT) AddContributions(cbns types.ContributionsT) DBSqlT
func (*DBParamsT) AddFromIterator ¶
func (params *DBParamsT) AddFromIterator(iter AddFromIteratorT) DBSqlT
func (*DBParamsT) AddMCIndexes ¶
func (params *DBParamsT) AddMCIndexes(mcindexes types.MCIndexesT) DBSqlT
func (*DBParamsT) AddPaidWitnessEvents ¶
func (params *DBParamsT) AddPaidWitnessEvents(pwes types.PaidWitnessEventsT) DBSqlT
func (*DBParamsT) AddUnitsFromIterator ¶
func (params *DBParamsT) AddUnitsFromIterator(iter AddUnitIteratorT) DBSqlT
type DBPreparedByTagT ¶
type DBPreparedByTagT = map[DBPreparedTagT]refDBPreparedT
type DBPreparedT ¶
type DBPreparedT struct { Sql string Tag string Hash uint16 LengthTag int LengthSql int LengthParams int Count int TotalTime int64 CoStmtCount int CoStmtTime int64 CoStmtExecCount int // contains filtered or unexported fields }
func (*DBPreparedT) Sample ¶
func (prep *DBPreparedT) Sample(t int64)
type DBPreparedTagT ¶
type DBPreparedTagT uint16
type DBQueryCbT ¶
type DBQueryCbT func(*DBQueryResultT)
type DBQueryResultT ¶
type DBQueryResultT struct {
AffectedRows int64
}
func MustExec ¶
func MustExec(sql DBSqlT, params DBParamsT) *DBQueryResultT
type DBQueryT ¶
type DBQueryT struct { Sql DBSqlT Params DBParamsT Cb DBQueryCbT }
type DBRowsReceiver ¶
type DBRowsReceiver struct {
// contains filtered or unexported fields
}
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
type LevelsReceiver ¶
type LevelsReceiver struct {
Rows []LevelRow
}
type MCIOnMCRow ¶
type MCIOnMCsReceiver ¶
type MCIOnMCsReceiver struct {
Rows []MCIOnMCRow
}
type MaxAltLevelRow ¶
type MaxAltLevelsReceiver ¶
type MaxAltLevelsReceiver struct {
Rows []MaxAltLevelRow
}
type MaxLevelRow ¶
type MaxLevelsReceiver ¶
type MaxLevelsReceiver struct {
Rows []MaxLevelRow
}
type MaxSpendableMCIRow ¶
type MaxSpendableMCIsReceiver ¶
type MaxSpendableMCIsReceiver struct {
Rows []MaxSpendableMCIRow
}
type MinMCIndexRow ¶
type MinMCIndexsReceiver ¶
type MinMCIndexsReceiver struct {
Rows []MinMCIndexRow
}
type MinMCWLRow ¶
type MinMCWLsReceiver ¶
type MinMCWLsReceiver struct {
Rows []MinMCWLRow
}
type MinRetrievableMCIRow ¶
type MinRetrievableMCIsReceiver ¶
type MinRetrievableMCIsReceiver struct {
Rows []MinRetrievableMCIRow
}
type ParentChildUnitRow ¶
type ParentChildUnitsReceiver ¶
type ParentChildUnitsReceiver struct {
Rows []ParentChildUnitRow
}
type PaymentInfoRow ¶
type PaymentInfosReceiver ¶
type PaymentInfosReceiver struct {
Rows []PaymentInfoRow
}
type PropsReceiver ¶
type RUPUnitPropsReceiver ¶
type RUPUnitPropsReceiver struct {
Rows []UnitContentRow
}
type UnitAddressesReceiver ¶
type UnitAddressesReceiver struct {
Rows []UnitAddressRow
}
type UnitAuthorShareRow ¶
type UnitAuthorShareRow struct {}
type UnitAuthorSharesReceiver ¶
type UnitAuthorSharesReceiver struct {
}type UnitBallsReceiver ¶
type UnitBallsReceiver struct {
Rows []UnitBallRow
}
type UnitContentBallRow ¶
type UnitContentBallRow = types.UnitPropsBallT
*
type UnitContentBallRow struct{ UnitContentRow Ball types.BallT }
*
type UnitContentBallsReceiver ¶
type UnitContentBallsReceiver struct {
Rows []UnitContentBallRow
}
type UnitContentHashRow ¶
type UnitContentHashRow struct { Unit types.UnitT Content_hash types.ContentHashT }
type UnitContentHashsReceiver ¶
type UnitContentHashsReceiver struct {
Rows []UnitContentHashRow
}
type UnitContentRow ¶
type UnitContentRow = types.UnitPropsT
*
type UnitContentRow struct{ Unit types.UnitT types.PropsT }
*
type UnitContentsReceiver ¶
type UnitContentsReceiver struct {
Rows []UnitContentRow
}
type UnitIsFreesReceiver ¶
type UnitIsFreesReceiver struct {
Rows []UnitPropsRow
}
type UnitLIMCIRow ¶
type UnitLIMCIsReceiver ¶
type UnitLIMCIsReceiver struct {
Rows []UnitLIMCIRow
}
type UnitMCISequenceAddressesReceiver ¶
type UnitMCISequenceAddressesReceiver struct {
Rows []UnitMCISequenceAddressRow
}
type UnitMCIsReceiver ¶
type UnitMCIsReceiver struct {
Rows []UnitMCIRow
}
type UnitMCPropsReceiver ¶
type UnitMCPropsReceiver struct {
Rows []UnitMCPropsRow
}
type UnitMCPropsRow ¶
type UnitPropsReceiver ¶
type UnitPropsReceiver struct {
Rows []UnitPropsRow
}
type UnitPropsRow ¶
type UnitsReceiver ¶
type UnitsReceiver struct {
Rows []UnitRow
}
type WitnessListUnitAndUnitsReceiver ¶
type WitnessListUnitAndUnitsReceiver struct {
Rows []WitnessListUnitAndUnitRow
}
type WitnessListUnitRow ¶
type WitnessListUnitsReceiver ¶
type WitnessListUnitsReceiver struct {
Rows []WitnessListUnitRow
}
type WitnessedLevelRow ¶
type WitnessedLevelsReceiver ¶
type WitnessedLevelsReceiver struct {
Rows []WitnessedLevelRow
}
Click to show internal directories.
Click to hide internal directories.