Documentation ¶
Index ¶
- Constants
- type IdempotencyError
- type SQLCommon
- func (s *SQLCommon) Capabilities() *database.Capabilities
- func (s *SQLCommon) DeleteBlob(ctx context.Context, sequence int64) (err error)
- func (s *SQLCommon) DeleteContractAPI(ctx context.Context, namespace string, id *fftypes.UUID) error
- func (s *SQLCommon) DeleteContractListenerByID(ctx context.Context, namespace string, id *fftypes.UUID) (err error)
- func (s *SQLCommon) DeleteData(ctx context.Context, namespace string, id *fftypes.UUID) (err error)
- func (s *SQLCommon) DeleteFFI(ctx context.Context, namespace string, id *fftypes.UUID) error
- func (s *SQLCommon) DeleteNonce(ctx context.Context, hash *fftypes.Bytes32) (err error)
- func (s *SQLCommon) DeleteOffset(ctx context.Context, t core.OffsetType, name string) (err error)
- func (s *SQLCommon) DeleteSubscriptionByID(ctx context.Context, namespace string, id *fftypes.UUID) (err error)
- func (s *SQLCommon) DeleteTokenApprovals(ctx context.Context, namespace string, poolID *fftypes.UUID) error
- func (s *SQLCommon) DeleteTokenBalances(ctx context.Context, namespace string, poolID *fftypes.UUID) error
- func (s *SQLCommon) DeleteTokenPool(ctx context.Context, namespace string, id *fftypes.UUID) error
- func (s *SQLCommon) DeleteTokenTransfers(ctx context.Context, namespace string, poolID *fftypes.UUID) error
- func (s *SQLCommon) GetBatchByID(ctx context.Context, namespace string, id *fftypes.UUID) (message *core.BatchPersisted, err error)
- func (s *SQLCommon) GetBatchIDsForDataAttachments(ctx context.Context, namespace string, dataIDs []*fftypes.UUID) (batchIDs []*fftypes.UUID, err error)
- func (s *SQLCommon) GetBatchIDsForMessages(ctx context.Context, namespace string, msgIDs []*fftypes.UUID) (batchIDs []*fftypes.UUID, err error)
- func (s *SQLCommon) GetBatches(ctx context.Context, namespace string, filter ffapi.Filter) (message []*core.BatchPersisted, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetBlobs(ctx context.Context, namespace string, filter ffapi.Filter) (message []*core.Blob, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetBlockchainEventByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.BlockchainEvent, error)
- func (s *SQLCommon) GetBlockchainEventByProtocolID(ctx context.Context, ns string, listener *fftypes.UUID, protocolID string) (*core.BlockchainEvent, error)
- func (s *SQLCommon) GetBlockchainEvents(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.BlockchainEvent, *ffapi.FilterResult, error)
- func (s *SQLCommon) GetChartHistogram(ctx context.Context, ns string, intervals []core.ChartHistogramInterval, ...) (histogramList []*core.ChartHistogram, err error)
- func (s *SQLCommon) GetContractAPIByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.ContractAPI, error)
- func (s *SQLCommon) GetContractAPIByName(ctx context.Context, namespace, name string) (*core.ContractAPI, error)
- func (s *SQLCommon) GetContractAPIByNetworkName(ctx context.Context, namespace, networkName string) (*core.ContractAPI, error)
- func (s *SQLCommon) GetContractAPIs(ctx context.Context, namespace string, filter ffapi.AndFilter) (contractAPIs []*core.ContractAPI, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetContractListener(ctx context.Context, namespace, name string) (sub *core.ContractListener, err error)
- func (s *SQLCommon) GetContractListenerByBackendID(ctx context.Context, namespace, id string) (sub *core.ContractListener, err error)
- func (s *SQLCommon) GetContractListenerByID(ctx context.Context, namespace string, id *fftypes.UUID) (sub *core.ContractListener, err error)
- func (s *SQLCommon) GetContractListeners(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.ContractListener, *ffapi.FilterResult, error)
- func (s *SQLCommon) GetData(ctx context.Context, namespace string, filter ffapi.Filter) (message core.DataArray, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetDataByID(ctx context.Context, namespace string, id *fftypes.UUID, withValue bool) (message *core.Data, err error)
- func (s *SQLCommon) GetDataRefs(ctx context.Context, namespace string, filter ffapi.Filter) (message core.DataRefs, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetDataSubPaths(ctx context.Context, namespace, path string) (subPaths []string, err error)
- func (s *SQLCommon) GetDatatypeByID(ctx context.Context, namespace string, id *fftypes.UUID) (message *core.Datatype, err error)
- func (s *SQLCommon) GetDatatypeByName(ctx context.Context, ns, name, version string) (message *core.Datatype, err error)
- func (s *SQLCommon) GetDatatypes(ctx context.Context, namespace string, filter ffapi.Filter) (message []*core.Datatype, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetEventByID(ctx context.Context, namespace string, id *fftypes.UUID) (message *core.Event, err error)
- func (s *SQLCommon) GetEvents(ctx context.Context, namespace string, filter ffapi.Filter) (message []*core.Event, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetEventsInSequenceRange(ctx context.Context, namespace string, filter ffapi.Filter, startSequence int, ...) (message []*core.Event, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetFFI(ctx context.Context, namespace, name, version string) (*fftypes.FFI, error)
- func (s *SQLCommon) GetFFIByID(ctx context.Context, namespace string, id *fftypes.UUID) (*fftypes.FFI, error)
- func (s *SQLCommon) GetFFIByNetworkName(ctx context.Context, namespace, networkName, version string) (*fftypes.FFI, error)
- func (s *SQLCommon) GetFFIErrors(ctx context.Context, namespace string, filter ffapi.Filter) (errors []*fftypes.FFIError, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetFFIEvent(ctx context.Context, namespace string, interfaceID *fftypes.UUID, ...) (*fftypes.FFIEvent, error)
- func (s *SQLCommon) GetFFIEvents(ctx context.Context, namespace string, filter ffapi.Filter) (events []*fftypes.FFIEvent, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetFFIMethod(ctx context.Context, ns string, interfaceID *fftypes.UUID, pathName string) (*fftypes.FFIMethod, error)
- func (s *SQLCommon) GetFFIMethods(ctx context.Context, namespace string, filter ffapi.Filter) (methods []*fftypes.FFIMethod, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetFFIs(ctx context.Context, namespace string, filter ffapi.Filter) (ffis []*fftypes.FFI, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetGroupByHash(ctx context.Context, namespace string, hash *fftypes.Bytes32) (group *core.Group, err error)
- func (s *SQLCommon) GetGroups(ctx context.Context, namespace string, filter ffapi.Filter) (group []*core.Group, res *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetIdentities(ctx context.Context, namespace string, filter ffapi.Filter) (identities []*core.Identity, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetIdentityByDID(ctx context.Context, namespace, did string) (identity *core.Identity, err error)
- func (s *SQLCommon) GetIdentityByID(ctx context.Context, namespace string, id *fftypes.UUID) (identity *core.Identity, err error)
- func (s *SQLCommon) GetIdentityByName(ctx context.Context, iType core.IdentityType, namespace, name string) (identity *core.Identity, err error)
- func (s *SQLCommon) GetMessageByID(ctx context.Context, namespace string, id *fftypes.UUID) (message *core.Message, err error)
- func (s *SQLCommon) GetMessageIDs(ctx context.Context, namespace string, filter ffapi.Filter) (ids []*core.IDAndSequence, err error)
- func (s *SQLCommon) GetMessages(ctx context.Context, namespace string, filter ffapi.Filter) (message []*core.Message, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetMessagesForData(ctx context.Context, namespace string, dataID *fftypes.UUID, ...) (message []*core.Message, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetNamespace(ctx context.Context, name string) (message *core.Namespace, err error)
- func (s *SQLCommon) GetNextPins(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.NextPin, *ffapi.FilterResult, error)
- func (s *SQLCommon) GetNextPinsForContext(ctx context.Context, namespace string, context *fftypes.Bytes32) (message []*core.NextPin, err error)
- func (s *SQLCommon) GetNonce(ctx context.Context, hash *fftypes.Bytes32) (message *core.Nonce, err error)
- func (s *SQLCommon) GetNonces(ctx context.Context, filter ffapi.Filter) (message []*core.Nonce, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetOffset(ctx context.Context, t core.OffsetType, name string) (message *core.Offset, err error)
- func (s *SQLCommon) GetOffsets(ctx context.Context, filter ffapi.Filter) (message []*core.Offset, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetOperationByID(ctx context.Context, namespace string, id *fftypes.UUID) (operation *core.Operation, err error)
- func (s *SQLCommon) GetOperations(ctx context.Context, namespace string, filter ffapi.Filter) (operation []*core.Operation, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetPins(ctx context.Context, namespace string, filter ffapi.Filter) (message []*core.Pin, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetSubscriptionByID(ctx context.Context, namespace string, id *fftypes.UUID) (message *core.Subscription, err error)
- func (s *SQLCommon) GetSubscriptionByName(ctx context.Context, namespace, name string) (message *core.Subscription, err error)
- func (s *SQLCommon) GetSubscriptions(ctx context.Context, namespace string, filter ffapi.Filter) (message []*core.Subscription, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetTokenAccountPools(ctx context.Context, namespace, key string, filter ffapi.Filter) ([]*core.TokenAccountPool, *ffapi.FilterResult, error)
- func (s *SQLCommon) GetTokenAccounts(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.TokenAccount, *ffapi.FilterResult, error)
- func (s *SQLCommon) GetTokenApprovalByID(ctx context.Context, namespace string, localID *fftypes.UUID) (*core.TokenApproval, error)
- func (s *SQLCommon) GetTokenApprovalByProtocolID(ctx context.Context, namespace string, poolID *fftypes.UUID, protocolID string) (*core.TokenApproval, error)
- func (s *SQLCommon) GetTokenApprovals(ctx context.Context, namespace string, filter ffapi.Filter) (approvals []*core.TokenApproval, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetTokenBalance(ctx context.Context, namespace string, poolID *fftypes.UUID, ...) (message *core.TokenBalance, err error)
- func (s *SQLCommon) GetTokenBalances(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.TokenBalance, *ffapi.FilterResult, error)
- func (s *SQLCommon) GetTokenPool(ctx context.Context, namespace string, name string) (message *core.TokenPool, err error)
- func (s *SQLCommon) GetTokenPoolByID(ctx context.Context, namespace string, id *fftypes.UUID) (message *core.TokenPool, err error)
- func (s *SQLCommon) GetTokenPoolByNetworkName(ctx context.Context, namespace, networkName string) (*core.TokenPool, error)
- func (s *SQLCommon) GetTokenPools(ctx context.Context, namespace string, filter ffapi.Filter) (message []*core.TokenPool, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetTokenTransferByID(ctx context.Context, namespace string, localID *fftypes.UUID) (*core.TokenTransfer, error)
- func (s *SQLCommon) GetTokenTransferByProtocolID(ctx context.Context, namespace string, poolID *fftypes.UUID, protocolID string) (*core.TokenTransfer, error)
- func (s *SQLCommon) GetTokenTransfers(ctx context.Context, namespace string, filter ffapi.Filter) (message []*core.TokenTransfer, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetTransactionByID(ctx context.Context, namespace string, id *fftypes.UUID) (message *core.Transaction, err error)
- func (s *SQLCommon) GetTransactions(ctx context.Context, namespace string, filter ffapi.Filter) (message []*core.Transaction, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) GetVerifierByHash(ctx context.Context, namespace string, hash *fftypes.Bytes32) (verifier *core.Verifier, err error)
- func (s *SQLCommon) GetVerifierByValue(ctx context.Context, vType core.VerifierType, namespace, value string) (verifier *core.Verifier, err error)
- func (s *SQLCommon) GetVerifiers(ctx context.Context, namespace string, filter ffapi.Filter) (verifiers []*core.Verifier, fr *ffapi.FilterResult, err error)
- func (s *SQLCommon) Init(ctx context.Context, provider dbsql.Provider, config config.Section, ...) (err error)
- func (s *SQLCommon) InitConfig(provider dbsql.Provider, config config.Section)
- func (s *SQLCommon) InsertBlob(ctx context.Context, blob *core.Blob) (err error)
- func (s *SQLCommon) InsertBlobs(ctx context.Context, blobs []*core.Blob) (err error)
- func (s *SQLCommon) InsertBlockchainEvents(ctx context.Context, events []*core.BlockchainEvent, ...) (err error)
- func (s *SQLCommon) InsertContractListener(ctx context.Context, listener *core.ContractListener) (err error)
- func (s *SQLCommon) InsertDataArray(ctx context.Context, dataArray core.DataArray) (err error)
- func (s *SQLCommon) InsertEvent(ctx context.Context, event *core.Event) (err error)
- func (s *SQLCommon) InsertMessages(ctx context.Context, messages []*core.Message, ...) (err error)
- func (s *SQLCommon) InsertNextPin(ctx context.Context, nextpin *core.NextPin) (err error)
- func (s *SQLCommon) InsertNonce(ctx context.Context, nonce *core.Nonce) (err error)
- func (s *SQLCommon) InsertOperation(ctx context.Context, operation *core.Operation, ...) (err error)
- func (s *SQLCommon) InsertOperations(ctx context.Context, operations []*core.Operation, ...) (err error)
- func (s *SQLCommon) InsertOrGetBatch(ctx context.Context, batch *core.BatchPersisted) (existing *core.BatchPersisted, err error)
- func (s *SQLCommon) InsertOrGetBlockchainEvent(ctx context.Context, event *core.BlockchainEvent) (existing *core.BlockchainEvent, err error)
- func (s *SQLCommon) InsertOrGetContractAPI(ctx context.Context, api *core.ContractAPI) (*core.ContractAPI, error)
- func (s *SQLCommon) InsertOrGetFFI(ctx context.Context, ffi *fftypes.FFI) (existing *fftypes.FFI, err error)
- func (s *SQLCommon) InsertOrGetTokenPool(ctx context.Context, pool *core.TokenPool) (existing *core.TokenPool, err error)
- func (s *SQLCommon) InsertOrGetTokenTransfer(ctx context.Context, transfer *core.TokenTransfer) (existing *core.TokenTransfer, err error)
- func (s *SQLCommon) InsertPins(ctx context.Context, pins []*core.Pin) error
- func (s *SQLCommon) InsertTransaction(ctx context.Context, transaction *core.Transaction) (err error)
- func (s *SQLCommon) InsertTransactions(ctx context.Context, txns []*core.Transaction) (err error)
- func (s *SQLCommon) ReplaceMessage(ctx context.Context, message *core.Message) (err error)
- func (s *SQLCommon) SetHandler(namespace string, handler database.Callbacks)
- func (s *SQLCommon) UpdateBatch(ctx context.Context, namespace string, id *fftypes.UUID, update ffapi.Update) (err error)
- func (s *SQLCommon) UpdateContractListener(ctx context.Context, ns string, id *fftypes.UUID, update ffapi.Update) (err error)
- func (s *SQLCommon) UpdateData(ctx context.Context, namespace string, id *fftypes.UUID, update ffapi.Update) (err error)
- func (s *SQLCommon) UpdateMessage(ctx context.Context, namespace string, msgid *fftypes.UUID, ...) (err error)
- func (s *SQLCommon) UpdateMessages(ctx context.Context, namespace string, filter ffapi.Filter, ...) (err error)
- func (s *SQLCommon) UpdateNextPin(ctx context.Context, namespace string, sequence int64, update ffapi.Update) (err error)
- func (s *SQLCommon) UpdateNonce(ctx context.Context, nonce *core.Nonce) (err error)
- func (s *SQLCommon) UpdateOffset(ctx context.Context, rowID int64, update ffapi.Update) (err error)
- func (s *SQLCommon) UpdateOperation(ctx context.Context, ns string, id *fftypes.UUID, filter ffapi.Filter, ...) (updated bool, err error)
- func (s *SQLCommon) UpdatePins(ctx context.Context, namespace string, filter ffapi.Filter, ...) (err error)
- func (s *SQLCommon) UpdateSubscription(ctx context.Context, namespace, name string, update ffapi.Update) (err error)
- func (s *SQLCommon) UpdateTokenApprovals(ctx context.Context, filter ffapi.Filter, update ffapi.Update) (err error)
- func (s *SQLCommon) UpdateTokenBalances(ctx context.Context, transfer *core.TokenTransfer) (err error)
- func (s *SQLCommon) UpdateTransaction(ctx context.Context, namespace string, id *fftypes.UUID, update ffapi.Update) (err error)
- func (s *SQLCommon) UpsertContractAPI(ctx context.Context, api *core.ContractAPI, ...) (err error)
- func (s *SQLCommon) UpsertContractListener(ctx context.Context, listener *core.ContractListener, allowExisting bool) (err error)
- func (s *SQLCommon) UpsertData(ctx context.Context, data *core.Data, optimization database.UpsertOptimization) (err error)
- func (s *SQLCommon) UpsertDatatype(ctx context.Context, datatype *core.Datatype, allowExisting bool) (err error)
- func (s *SQLCommon) UpsertFFI(ctx context.Context, ffi *fftypes.FFI, ...) error
- func (s *SQLCommon) UpsertFFIError(ctx context.Context, errorDef *fftypes.FFIError) (err error)
- func (s *SQLCommon) UpsertFFIEvent(ctx context.Context, event *fftypes.FFIEvent) (err error)
- func (s *SQLCommon) UpsertFFIMethod(ctx context.Context, method *fftypes.FFIMethod) (err error)
- func (s *SQLCommon) UpsertGroup(ctx context.Context, group *core.Group, ...) (err error)
- func (s *SQLCommon) UpsertIdentity(ctx context.Context, identity *core.Identity, ...) (err error)
- func (s *SQLCommon) UpsertMessage(ctx context.Context, message *core.Message, ...) (err error)
- func (s *SQLCommon) UpsertNamespace(ctx context.Context, namespace *core.Namespace, allowExisting bool) (err error)
- func (s *SQLCommon) UpsertOffset(ctx context.Context, offset *core.Offset, allowExisting bool) (err error)
- func (s *SQLCommon) UpsertPin(ctx context.Context, pin *core.Pin) (err error)
- func (s *SQLCommon) UpsertSubscription(ctx context.Context, subscription *core.Subscription, allowExisting bool) (err error)
- func (s *SQLCommon) UpsertTokenApproval(ctx context.Context, approval *core.TokenApproval) (err error)
- func (s *SQLCommon) UpsertTokenPool(ctx context.Context, pool *core.TokenPool, ...) (err error)
- func (s *SQLCommon) UpsertVerifier(ctx context.Context, verifier *core.Verifier, ...) (err error)
Constants ¶
const ( // SQLConfMigrationsAuto enables automatic migrations SQLConfMigrationsAuto = "migrations.auto" // SQLConfMigrationsDirectory is the directory containing the numerically ordered migration DDL files to apply to the database SQLConfMigrationsDirectory = "migrations.directory" // SQLConfDatasourceURL is the datasource connection URL string SQLConfDatasourceURL = "url" // SQLConfMaxConnections maximum connections to the database SQLConfMaxConnections = "maxConns" // SQLConfMaxConnIdleTime maximum connections to the database SQLConfMaxConnIdleTime = "maxConnIdleTime" // SQLConfMaxIdleConns maximum connections to the database SQLConfMaxIdleConns = "maxIdleConns" // SQLConfMaxConnLifetime maximum connections to the database SQLConfMaxConnLifetime = "maxConnLifetime" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdempotencyError ¶ added in v1.3.0
func (*IdempotencyError) Error ¶ added in v1.3.0
func (e *IdempotencyError) Error() string
type SQLCommon ¶
func (*SQLCommon) Capabilities ¶
func (s *SQLCommon) Capabilities() *database.Capabilities
func (*SQLCommon) DeleteBlob ¶
func (*SQLCommon) DeleteContractAPI ¶ added in v1.3.0
func (*SQLCommon) DeleteContractListenerByID ¶ added in v0.14.0
func (*SQLCommon) DeleteData ¶ added in v1.2.0
func (*SQLCommon) DeleteNonce ¶
func (*SQLCommon) DeleteOffset ¶
func (*SQLCommon) DeleteSubscriptionByID ¶
func (*SQLCommon) DeleteTokenApprovals ¶ added in v1.3.0
func (*SQLCommon) DeleteTokenBalances ¶ added in v1.3.0
func (*SQLCommon) DeleteTokenPool ¶ added in v1.3.0
func (*SQLCommon) DeleteTokenTransfers ¶ added in v1.3.0
func (*SQLCommon) GetBatchByID ¶
func (*SQLCommon) GetBatchIDsForDataAttachments ¶ added in v1.0.0
func (*SQLCommon) GetBatchIDsForMessages ¶ added in v1.0.0
func (*SQLCommon) GetBatches ¶
func (*SQLCommon) GetBlockchainEventByID ¶ added in v0.12.0
func (*SQLCommon) GetBlockchainEventByProtocolID ¶ added in v1.0.0
func (*SQLCommon) GetBlockchainEvents ¶ added in v0.12.0
func (*SQLCommon) GetChartHistogram ¶ added in v0.11.2
func (s *SQLCommon) GetChartHistogram(ctx context.Context, ns string, intervals []core.ChartHistogramInterval, collection database.CollectionName) (histogramList []*core.ChartHistogram, err error)
func (*SQLCommon) GetContractAPIByID ¶ added in v0.12.0
func (*SQLCommon) GetContractAPIByName ¶ added in v0.12.0
func (*SQLCommon) GetContractAPIByNetworkName ¶ added in v1.3.0
func (*SQLCommon) GetContractAPIs ¶ added in v0.12.0
func (*SQLCommon) GetContractListener ¶ added in v0.14.0
func (*SQLCommon) GetContractListenerByBackendID ¶ added in v1.0.0
func (*SQLCommon) GetContractListenerByID ¶ added in v0.14.0
func (*SQLCommon) GetContractListeners ¶ added in v0.14.0
func (*SQLCommon) GetDataByID ¶
func (*SQLCommon) GetDataRefs ¶
func (*SQLCommon) GetDataSubPaths ¶ added in v1.3.0
func (*SQLCommon) GetDatatypeByID ¶
func (*SQLCommon) GetDatatypeByName ¶
func (*SQLCommon) GetDatatypes ¶
func (*SQLCommon) GetEventByID ¶
func (*SQLCommon) GetEventsInSequenceRange ¶ added in v1.3.0
func (*SQLCommon) GetFFIByID ¶ added in v0.12.0
func (*SQLCommon) GetFFIByNetworkName ¶ added in v1.3.0
func (*SQLCommon) GetFFIErrors ¶ added in v1.1.3
func (*SQLCommon) GetFFIEvent ¶ added in v0.12.0
func (*SQLCommon) GetFFIEvents ¶ added in v0.12.0
func (*SQLCommon) GetFFIMethod ¶ added in v0.12.0
func (*SQLCommon) GetFFIMethods ¶ added in v0.12.0
func (*SQLCommon) GetGroupByHash ¶
func (*SQLCommon) GetIdentities ¶ added in v0.14.0
func (*SQLCommon) GetIdentityByDID ¶ added in v0.14.0
func (*SQLCommon) GetIdentityByID ¶ added in v0.14.0
func (*SQLCommon) GetIdentityByName ¶ added in v0.14.0
func (*SQLCommon) GetMessageByID ¶
func (*SQLCommon) GetMessageIDs ¶ added in v0.14.0
func (*SQLCommon) GetMessages ¶
func (*SQLCommon) GetMessagesForData ¶
func (*SQLCommon) GetNamespace ¶
func (*SQLCommon) GetNextPins ¶
func (*SQLCommon) GetNextPinsForContext ¶ added in v1.1.0
func (*SQLCommon) GetOffsets ¶
func (*SQLCommon) GetOperationByID ¶
func (*SQLCommon) GetOperations ¶
func (*SQLCommon) GetSubscriptionByID ¶
func (*SQLCommon) GetSubscriptionByName ¶
func (*SQLCommon) GetSubscriptions ¶
func (*SQLCommon) GetTokenAccountPools ¶ added in v0.11.0
func (*SQLCommon) GetTokenAccounts ¶
func (*SQLCommon) GetTokenApprovalByID ¶ added in v1.0.0
func (*SQLCommon) GetTokenApprovalByProtocolID ¶ added in v0.13.1
func (*SQLCommon) GetTokenApprovals ¶ added in v0.13.1
func (*SQLCommon) GetTokenBalance ¶ added in v0.11.0
func (*SQLCommon) GetTokenBalances ¶ added in v0.11.0
func (*SQLCommon) GetTokenPool ¶
func (*SQLCommon) GetTokenPoolByID ¶
func (*SQLCommon) GetTokenPoolByNetworkName ¶ added in v1.3.0
func (*SQLCommon) GetTokenPools ¶
func (*SQLCommon) GetTokenTransferByID ¶ added in v1.0.0
func (*SQLCommon) GetTokenTransferByProtocolID ¶ added in v0.11.0
func (*SQLCommon) GetTokenTransfers ¶
func (*SQLCommon) GetTransactionByID ¶
func (*SQLCommon) GetTransactions ¶
func (*SQLCommon) GetVerifierByHash ¶ added in v0.14.0
func (*SQLCommon) GetVerifierByValue ¶ added in v0.14.0
func (*SQLCommon) GetVerifiers ¶ added in v0.14.0
func (*SQLCommon) InitConfig ¶ added in v1.1.0
func (*SQLCommon) InsertBlob ¶
func (*SQLCommon) InsertBlobs ¶ added in v1.0.0
func (*SQLCommon) InsertBlockchainEvents ¶ added in v1.3.0
func (s *SQLCommon) InsertBlockchainEvents(ctx context.Context, events []*core.BlockchainEvent, hooks ...database.PostCompletionHook) (err error)
func (*SQLCommon) InsertContractListener ¶ added in v1.1.0
func (*SQLCommon) InsertDataArray ¶ added in v0.14.0
func (*SQLCommon) InsertEvent ¶
Events are special.
They are an ordered sequence of recorded state, that must be detected and processed in order.
We choose (today) to coordinate the emission of these, into a DB transaction where the other state changes happen - so the event is assured atomically to happen "after" the other state changes, but also not to be lost. Downstream fan-out of those events occurs via Webhook/WebSocket (.../NATS/Kafka) pluggable pub/sub interfaces.
Implementing this single stream of incrementing (note not guaranteed to be gapless) ordered items on top of a SQL database, means taking a lock (see below). This is not safe to do unless you are really sure what other locks will be taken after that in the transaction. So we defer the emission of the events to a pre-commit capture.
func (*SQLCommon) InsertMessages ¶ added in v0.14.0
func (*SQLCommon) InsertNextPin ¶
func (*SQLCommon) InsertNonce ¶ added in v1.0.0
func (*SQLCommon) InsertOperation ¶ added in v0.11.2
func (*SQLCommon) InsertOperations ¶ added in v1.3.0
func (*SQLCommon) InsertOrGetBatch ¶ added in v1.1.4
func (s *SQLCommon) InsertOrGetBatch(ctx context.Context, batch *core.BatchPersisted) (existing *core.BatchPersisted, err error)
func (*SQLCommon) InsertOrGetBlockchainEvent ¶ added in v1.1.0
func (s *SQLCommon) InsertOrGetBlockchainEvent(ctx context.Context, event *core.BlockchainEvent) (existing *core.BlockchainEvent, err error)
func (*SQLCommon) InsertOrGetContractAPI ¶ added in v1.3.0
func (s *SQLCommon) InsertOrGetContractAPI(ctx context.Context, api *core.ContractAPI) (*core.ContractAPI, error)
func (*SQLCommon) InsertOrGetFFI ¶ added in v1.3.0
func (*SQLCommon) InsertOrGetTokenPool ¶ added in v1.3.0
func (*SQLCommon) InsertOrGetTokenTransfer ¶ added in v1.3.0
func (s *SQLCommon) InsertOrGetTokenTransfer(ctx context.Context, transfer *core.TokenTransfer) (existing *core.TokenTransfer, err error)
func (*SQLCommon) InsertPins ¶ added in v0.14.0
func (*SQLCommon) InsertTransaction ¶ added in v0.12.0
func (*SQLCommon) InsertTransactions ¶ added in v1.3.0
func (*SQLCommon) ReplaceMessage ¶ added in v0.11.5
In SQL update+bump is a delete+insert within a TX
func (*SQLCommon) SetHandler ¶ added in v1.1.0
func (*SQLCommon) UpdateBatch ¶
func (*SQLCommon) UpdateContractListener ¶ added in v1.3.0
func (*SQLCommon) UpdateData ¶
func (*SQLCommon) UpdateMessage ¶
func (*SQLCommon) UpdateMessages ¶
func (*SQLCommon) UpdateNextPin ¶
func (*SQLCommon) UpdateNonce ¶ added in v1.0.0
func (*SQLCommon) UpdateOffset ¶
func (*SQLCommon) UpdateOperation ¶
func (*SQLCommon) UpdatePins ¶ added in v0.13.0
func (*SQLCommon) UpdateSubscription ¶
func (*SQLCommon) UpdateTokenApprovals ¶ added in v1.0.0
func (*SQLCommon) UpdateTokenBalances ¶ added in v0.11.0
func (*SQLCommon) UpdateTransaction ¶
func (*SQLCommon) UpsertContractAPI ¶ added in v0.12.0
func (s *SQLCommon) UpsertContractAPI(ctx context.Context, api *core.ContractAPI, optimization database.UpsertOptimization) (err error)
func (*SQLCommon) UpsertContractListener ¶ added in v0.14.0
func (*SQLCommon) UpsertData ¶
func (*SQLCommon) UpsertDatatype ¶
func (*SQLCommon) UpsertFFIError ¶ added in v1.1.3
func (*SQLCommon) UpsertFFIEvent ¶ added in v0.12.0
func (*SQLCommon) UpsertFFIMethod ¶ added in v0.12.0
func (*SQLCommon) UpsertGroup ¶
func (*SQLCommon) UpsertIdentity ¶ added in v0.14.0
func (*SQLCommon) UpsertMessage ¶
func (s *SQLCommon) UpsertMessage(ctx context.Context, message *core.Message, optimization database.UpsertOptimization, hooks ...database.PostCompletionHook) (err error)
func (*SQLCommon) UpsertNamespace ¶
func (*SQLCommon) UpsertOffset ¶
func (*SQLCommon) UpsertSubscription ¶
func (*SQLCommon) UpsertTokenApproval ¶ added in v0.13.1
func (*SQLCommon) UpsertTokenPool ¶
func (*SQLCommon) UpsertVerifier ¶ added in v0.14.0
Source Files ¶
- batch_sql.go
- blob_sql.go
- blockchainevents_sql.go
- chart_sql.go
- config.go
- contractapis_sql.go
- contractlisteners_sql.go
- data_sql.go
- datatype_sql.go
- event_sql.go
- ffi_errors_sql.go
- ffi_events_sql.go
- ffi_methods_sql.go
- ffi_sql.go
- group_sql.go
- identity_sql.go
- message_sql.go
- namespace_sql.go
- nextpin_sql.go
- nonce_sql.go
- offset_sql.go
- operation_sql.go
- pin_sql.go
- sqlcommon.go
- subscription_sql.go
- tokenapproval_sql.go
- tokenbalance_sql.go
- tokenpool_sql.go
- tokentransfer_sql.go
- transaction_sql.go
- verifier_sql.go