MCPcopy Create free account
hub / github.com/daodst/chat / Do

Method Do

internal/sqlutil/writer.go:45–45  ·  view source on GitHub ↗

Queue up one or more database write operations within the provided function to be executed when it is safe to do so.

(db *sql.DB, txn *sql.Tx, f func(txn *sql.Tx) error)

Source from the content-addressed store, hash-verified

43 // Queue up one or more database write operations within the
44 // provided function to be executed when it is safe to do so.
45 Do(db *sql.DB, txn *sql.Tx, f func(txn *sql.Tx) error) error
46}

Callers 15

collectMethod · 0.65
StoreOneTimeKeysMethod · 0.65
StoreRemoteDeviceKeysMethod · 0.65
StoreLocalDeviceKeysMethod · 0.65
ClaimKeysMethod · 0.65
StoreKeyChangeMethod · 0.65
MarkDeviceListStaleMethod · 0.65
DeleteDeviceKeysMethod · 0.65
addStateMethod · 0.65
SetStateMethod · 0.65

Implementers 2

ExclusiveWriterinternal/sqlutil/writer_exclusive.go
DummyWriterinternal/sqlutil/writer_dummy.go

Calls

no outgoing calls

Tested by 1

postRelationshipsFunction · 0.52