Documentation ¶
Index ¶
- type DB
- func (mdb *DB) BeginTx() (sqldb.Tx, error)
- func (mdb *DB) Close() error
- func (mdb *DB) Commit() error
- func (mdb *DB) DeleteFromActivityInfoMaps(filter *sqldb.ActivityInfoMapsFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromBufferedEvents(filter *sqldb.BufferedEventsFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromChildExecutionInfoMaps(filter *sqldb.ChildExecutionInfoMapsFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromCurrentExecutions(filter *sqldb.CurrentExecutionsFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromDomain(filter *sqldb.DomainFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromEvents(filter *sqldb.EventsFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromExecutions(filter *sqldb.ExecutionsFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromHistoryNode(filter *sqldb.HistoryNodeFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromHistoryTree(filter *sqldb.HistoryTreeFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromReplicationTasks(filter *sqldb.ReplicationTasksFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromRequestCancelInfoMaps(filter *sqldb.RequestCancelInfoMapsFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromSignalInfoMaps(filter *sqldb.SignalInfoMapsFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromSignalsRequestedSets(filter *sqldb.SignalsRequestedSetsFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromTaskLists(filter *sqldb.TaskListsFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromTasks(filter *sqldb.TasksFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromTimerInfoMaps(filter *sqldb.TimerInfoMapsFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromTimerTasks(filter *sqldb.TimerTasksFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromTransferTasks(filter *sqldb.TransferTasksFilter) (sql.Result, error)
- func (mdb *DB) DeleteFromVisibility(filter *sqldb.VisibilityFilter) (sql.Result, error)
- func (mdb *DB) DriverName() string
- func (mdb *DB) InsertIntoBufferedEvents(rows []sqldb.BufferedEventsRow) (sql.Result, error)
- func (mdb *DB) InsertIntoCurrentExecutions(row *sqldb.CurrentExecutionsRow) (sql.Result, error)
- func (mdb *DB) InsertIntoDomain(row *sqldb.DomainRow) (sql.Result, error)
- func (mdb *DB) InsertIntoEvents(row *sqldb.EventsRow) (sql.Result, error)
- func (mdb *DB) InsertIntoExecutions(row *sqldb.ExecutionsRow) (sql.Result, error)
- func (mdb *DB) InsertIntoHistoryNode(row *sqldb.HistoryNodeRow) (sql.Result, error)
- func (mdb *DB) InsertIntoHistoryTree(row *sqldb.HistoryTreeRow) (sql.Result, error)
- func (mdb *DB) InsertIntoReplicationTasks(rows []sqldb.ReplicationTasksRow) (sql.Result, error)
- func (mdb *DB) InsertIntoShards(row *sqldb.ShardsRow) (sql.Result, error)
- func (mdb *DB) InsertIntoSignalsRequestedSets(rows []sqldb.SignalsRequestedSetsRow) (sql.Result, error)
- func (mdb *DB) InsertIntoTaskLists(row *sqldb.TaskListsRow) (sql.Result, error)
- func (mdb *DB) InsertIntoTasks(rows []sqldb.TasksRow) (sql.Result, error)
- func (mdb *DB) InsertIntoTimerTasks(rows []sqldb.TimerTasksRow) (sql.Result, error)
- func (mdb *DB) InsertIntoTransferTasks(rows []sqldb.TransferTasksRow) (sql.Result, error)
- func (mdb *DB) InsertIntoVisibility(row *sqldb.VisibilityRow) (sql.Result, error)
- func (mdb *DB) LockCurrentExecutions(filter *sqldb.CurrentExecutionsFilter) (*sqldb.CurrentExecutionsRow, error)
- func (mdb *DB) LockCurrentExecutionsJoinExecutions(filter *sqldb.CurrentExecutionsFilter) ([]sqldb.CurrentExecutionsRow, error)
- func (mdb *DB) LockDomainMetadata() error
- func (mdb *DB) LockEvents(filter *sqldb.EventsFilter) (*sqldb.EventsRow, error)
- func (mdb *DB) LockTaskLists(filter *sqldb.TaskListsFilter) (int64, error)
- func (mdb *DB) ReadLockExecutions(filter *sqldb.ExecutionsFilter) (int, error)
- func (mdb *DB) ReadLockShards(filter *sqldb.ShardsFilter) (int, error)
- func (mdb *DB) ReplaceIntoActivityInfoMaps(rows []sqldb.ActivityInfoMapsRow) (sql.Result, error)
- func (mdb *DB) ReplaceIntoChildExecutionInfoMaps(rows []sqldb.ChildExecutionInfoMapsRow) (sql.Result, error)
- func (mdb *DB) ReplaceIntoRequestCancelInfoMaps(rows []sqldb.RequestCancelInfoMapsRow) (sql.Result, error)
- func (mdb *DB) ReplaceIntoSignalInfoMaps(rows []sqldb.SignalInfoMapsRow) (sql.Result, error)
- func (mdb *DB) ReplaceIntoTaskLists(row *sqldb.TaskListsRow) (sql.Result, error)
- func (mdb *DB) ReplaceIntoTimerInfoMaps(rows []sqldb.TimerInfoMapsRow) (sql.Result, error)
- func (mdb *DB) ReplaceIntoVisibility(row *sqldb.VisibilityRow) (sql.Result, error)
- func (mdb *DB) Rollback() error
- func (mdb *DB) SelectFromActivityInfoMaps(filter *sqldb.ActivityInfoMapsFilter) ([]sqldb.ActivityInfoMapsRow, error)
- func (mdb *DB) SelectFromBufferedEvents(filter *sqldb.BufferedEventsFilter) ([]sqldb.BufferedEventsRow, error)
- func (mdb *DB) SelectFromChildExecutionInfoMaps(filter *sqldb.ChildExecutionInfoMapsFilter) ([]sqldb.ChildExecutionInfoMapsRow, error)
- func (mdb *DB) SelectFromCurrentExecutions(filter *sqldb.CurrentExecutionsFilter) (*sqldb.CurrentExecutionsRow, error)
- func (mdb *DB) SelectFromDomain(filter *sqldb.DomainFilter) ([]sqldb.DomainRow, error)
- func (mdb *DB) SelectFromDomainMetadata() (*sqldb.DomainMetadataRow, error)
- func (mdb *DB) SelectFromEvents(filter *sqldb.EventsFilter) ([]sqldb.EventsRow, error)
- func (mdb *DB) SelectFromExecutions(filter *sqldb.ExecutionsFilter) (*sqldb.ExecutionsRow, error)
- func (mdb *DB) SelectFromHistoryNode(filter *sqldb.HistoryNodeFilter) ([]sqldb.HistoryNodeRow, error)
- func (mdb *DB) SelectFromHistoryTree(filter *sqldb.HistoryTreeFilter) ([]sqldb.HistoryTreeRow, error)
- func (mdb *DB) SelectFromReplicationTasks(filter *sqldb.ReplicationTasksFilter) ([]sqldb.ReplicationTasksRow, error)
- func (mdb *DB) SelectFromRequestCancelInfoMaps(filter *sqldb.RequestCancelInfoMapsFilter) ([]sqldb.RequestCancelInfoMapsRow, error)
- func (mdb *DB) SelectFromShards(filter *sqldb.ShardsFilter) (*sqldb.ShardsRow, error)
- func (mdb *DB) SelectFromSignalInfoMaps(filter *sqldb.SignalInfoMapsFilter) ([]sqldb.SignalInfoMapsRow, error)
- func (mdb *DB) SelectFromSignalsRequestedSets(filter *sqldb.SignalsRequestedSetsFilter) ([]sqldb.SignalsRequestedSetsRow, error)
- func (mdb *DB) SelectFromTaskLists(filter *sqldb.TaskListsFilter) ([]sqldb.TaskListsRow, error)
- func (mdb *DB) SelectFromTasks(filter *sqldb.TasksFilter) ([]sqldb.TasksRow, error)
- func (mdb *DB) SelectFromTimerInfoMaps(filter *sqldb.TimerInfoMapsFilter) ([]sqldb.TimerInfoMapsRow, error)
- func (mdb *DB) SelectFromTimerTasks(filter *sqldb.TimerTasksFilter) ([]sqldb.TimerTasksRow, error)
- func (mdb *DB) SelectFromTransferTasks(filter *sqldb.TransferTasksFilter) ([]sqldb.TransferTasksRow, error)
- func (mdb *DB) SelectFromVisibility(filter *sqldb.VisibilityFilter) ([]sqldb.VisibilityRow, error)
- func (mdb *DB) UpdateCurrentExecutions(row *sqldb.CurrentExecutionsRow) (sql.Result, error)
- func (mdb *DB) UpdateDomain(row *sqldb.DomainRow) (sql.Result, error)
- func (mdb *DB) UpdateDomainMetadata(row *sqldb.DomainMetadataRow) (sql.Result, error)
- func (mdb *DB) UpdateEvents(row *sqldb.EventsRow) (sql.Result, error)
- func (mdb *DB) UpdateExecutions(row *sqldb.ExecutionsRow) (sql.Result, error)
- func (mdb *DB) UpdateHistoryTree(row *sqldb.HistoryTreeRow) (sql.Result, error)
- func (mdb *DB) UpdateShards(row *sqldb.ShardsRow) (sql.Result, error)
- func (mdb *DB) UpdateTaskLists(row *sqldb.TaskListsRow) (sql.Result, error)
- func (mdb *DB) WriteLockExecutions(filter *sqldb.ExecutionsFilter) (int, error)
- func (mdb *DB) WriteLockShards(filter *sqldb.ShardsFilter) (int, error)
- type DataConverter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB represents a logical connection to mysql database
func NewDB ¶
NewDB returns an instance of DB, which is a logical connection to the underlying mysql database
func (*DB) DeleteFromActivityInfoMaps ¶
DeleteFromActivityInfoMaps deletes one or more rows from activity_info_maps table
func (*DB) DeleteFromBufferedEvents ¶
DeleteFromBufferedEvents deletes one or more rows from buffered_events table
func (*DB) DeleteFromChildExecutionInfoMaps ¶
func (mdb *DB) DeleteFromChildExecutionInfoMaps(filter *sqldb.ChildExecutionInfoMapsFilter) (sql.Result, error)
DeleteFromChildExecutionInfoMaps deletes one or more rows from child_execution_info_maps table
func (*DB) DeleteFromCurrentExecutions ¶
func (mdb *DB) DeleteFromCurrentExecutions(filter *sqldb.CurrentExecutionsFilter) (sql.Result, error)
DeleteFromCurrentExecutions deletes a single row in current_executions table
func (*DB) DeleteFromDomain ¶
DeleteFromDomain deletes a single row in domains table
func (*DB) DeleteFromEvents ¶
DeleteFromEvents deletes one or more rows from events table
func (*DB) DeleteFromExecutions ¶
DeleteFromExecutions deletes a single row from executions table
func (*DB) DeleteFromHistoryNode ¶ added in v0.5.7
DeleteFromHistoryNode deletes one or more rows from history_node table
func (*DB) DeleteFromHistoryTree ¶ added in v0.5.7
DeleteFromHistoryTree deletes one or more rows from history_tree table
func (*DB) DeleteFromReplicationTasks ¶
DeleteFromReplicationTasks deletes one or more rows from replication_tasks table
func (*DB) DeleteFromRequestCancelInfoMaps ¶
func (mdb *DB) DeleteFromRequestCancelInfoMaps(filter *sqldb.RequestCancelInfoMapsFilter) (sql.Result, error)
DeleteFromRequestCancelInfoMaps deletes one or more rows from request_cancel_info_maps table
func (*DB) DeleteFromSignalInfoMaps ¶
DeleteFromSignalInfoMaps deletes one or more rows from signal_info_maps table
func (*DB) DeleteFromSignalsRequestedSets ¶
func (mdb *DB) DeleteFromSignalsRequestedSets(filter *sqldb.SignalsRequestedSetsFilter) (sql.Result, error)
DeleteFromSignalsRequestedSets deletes one or more rows from signals_requested_sets table
func (*DB) DeleteFromTaskLists ¶
DeleteFromTaskLists deletes a row from task_lists table
func (*DB) DeleteFromTasks ¶
DeleteFromTasks deletes one or more rows from tasks table
func (*DB) DeleteFromTimerInfoMaps ¶
DeleteFromTimerInfoMaps deletes one or more rows from timer_info_maps table
func (*DB) DeleteFromTimerTasks ¶
DeleteFromTimerTasks deletes one or more rows from timer_tasks table
func (*DB) DeleteFromTransferTasks ¶
DeleteFromTransferTasks deletes one or more rows from transfer_tasks table
func (*DB) DeleteFromVisibility ¶ added in v0.5.7
DeleteFromVisibility deletes a row from visibility table if it exist
func (*DB) DriverName ¶
DriverName returns the name of the mysql driver
func (*DB) InsertIntoBufferedEvents ¶
InsertIntoBufferedEvents inserts one or more rows into buffered_events table
func (*DB) InsertIntoCurrentExecutions ¶
InsertIntoCurrentExecutions inserts a single row into current_executions table
func (*DB) InsertIntoDomain ¶
InsertIntoDomain inserts a single row into domains table
func (*DB) InsertIntoEvents ¶
InsertIntoEvents inserts a row into events table
func (*DB) InsertIntoExecutions ¶
InsertIntoExecutions inserts a row into executions table
func (*DB) InsertIntoHistoryNode ¶ added in v0.5.7
InsertIntoHistoryNode inserts a row into history_node table
func (*DB) InsertIntoHistoryTree ¶ added in v0.5.7
InsertIntoHistoryTree inserts a row into history_tree table
func (*DB) InsertIntoReplicationTasks ¶
InsertIntoReplicationTasks inserts one or more rows into replication_tasks table
func (*DB) InsertIntoShards ¶
InsertIntoShards inserts one or more rows into shards table
func (*DB) InsertIntoSignalsRequestedSets ¶
func (mdb *DB) InsertIntoSignalsRequestedSets(rows []sqldb.SignalsRequestedSetsRow) (sql.Result, error)
InsertIntoSignalsRequestedSets inserts one or more rows into signals_requested_sets table
func (*DB) InsertIntoTaskLists ¶
InsertIntoTaskLists inserts one or more rows into task_lists table
func (*DB) InsertIntoTasks ¶
InsertIntoTasks inserts one or more rows into tasks table
func (*DB) InsertIntoTimerTasks ¶
InsertIntoTimerTasks inserts one or more rows into timer_tasks table
func (*DB) InsertIntoTransferTasks ¶
InsertIntoTransferTasks inserts one or more rows into transfer_tasks table
func (*DB) InsertIntoVisibility ¶
InsertIntoVisibility inserts a row into visibility table. If an row already exist, its left as such and no update will be made
func (*DB) LockCurrentExecutions ¶
func (mdb *DB) LockCurrentExecutions(filter *sqldb.CurrentExecutionsFilter) (*sqldb.CurrentExecutionsRow, error)
LockCurrentExecutions acquires a write lock on a single row in current_executions table
func (*DB) LockCurrentExecutionsJoinExecutions ¶
func (mdb *DB) LockCurrentExecutionsJoinExecutions(filter *sqldb.CurrentExecutionsFilter) ([]sqldb.CurrentExecutionsRow, error)
LockCurrentExecutionsJoinExecutions joins a row in current_executions with executions table and acquires a write lock on the result
func (*DB) LockDomainMetadata ¶
LockDomainMetadata acquires a write lock on a single row in domain_metadata table
func (*DB) LockEvents ¶
LockEvents acquires a write lock on a single row in events table
func (*DB) LockTaskLists ¶
func (mdb *DB) LockTaskLists(filter *sqldb.TaskListsFilter) (int64, error)
LockTaskLists locks a row in task_lists table
func (*DB) ReadLockExecutions ¶ added in v0.5.7
func (mdb *DB) ReadLockExecutions(filter *sqldb.ExecutionsFilter) (int, error)
ReadLockExecutions acquires a write lock on a single row in executions table
func (*DB) ReadLockShards ¶
func (mdb *DB) ReadLockShards(filter *sqldb.ShardsFilter) (int, error)
ReadLockShards acquires a read lock on a single row in shards table
func (*DB) ReplaceIntoActivityInfoMaps ¶
ReplaceIntoActivityInfoMaps replaces one or more rows in activity_info_maps table
func (*DB) ReplaceIntoChildExecutionInfoMaps ¶
func (mdb *DB) ReplaceIntoChildExecutionInfoMaps(rows []sqldb.ChildExecutionInfoMapsRow) (sql.Result, error)
ReplaceIntoChildExecutionInfoMaps replaces one or more rows in child_execution_info_maps table
func (*DB) ReplaceIntoRequestCancelInfoMaps ¶
func (mdb *DB) ReplaceIntoRequestCancelInfoMaps(rows []sqldb.RequestCancelInfoMapsRow) (sql.Result, error)
ReplaceIntoRequestCancelInfoMaps replaces one or more rows in request_cancel_info_maps table
func (*DB) ReplaceIntoSignalInfoMaps ¶
ReplaceIntoSignalInfoMaps replaces one or more rows in signal_info_maps table
func (*DB) ReplaceIntoTaskLists ¶
ReplaceIntoTaskLists replaces one or more rows in task_lists table
func (*DB) ReplaceIntoTimerInfoMaps ¶
ReplaceIntoTimerInfoMaps replaces one or more rows in timer_info_maps table
func (*DB) ReplaceIntoVisibility ¶ added in v0.5.7
ReplaceIntoVisibility replaces an existing row if it exist or creates a new row in visibility table
func (*DB) SelectFromActivityInfoMaps ¶
func (mdb *DB) SelectFromActivityInfoMaps(filter *sqldb.ActivityInfoMapsFilter) ([]sqldb.ActivityInfoMapsRow, error)
SelectFromActivityInfoMaps reads one or more rows from activity_info_maps table
func (*DB) SelectFromBufferedEvents ¶
func (mdb *DB) SelectFromBufferedEvents(filter *sqldb.BufferedEventsFilter) ([]sqldb.BufferedEventsRow, error)
SelectFromBufferedEvents reads one or more rows from buffered_events table
func (*DB) SelectFromChildExecutionInfoMaps ¶
func (mdb *DB) SelectFromChildExecutionInfoMaps(filter *sqldb.ChildExecutionInfoMapsFilter) ([]sqldb.ChildExecutionInfoMapsRow, error)
SelectFromChildExecutionInfoMaps reads one or more rows from child_execution_info_maps table
func (*DB) SelectFromCurrentExecutions ¶
func (mdb *DB) SelectFromCurrentExecutions(filter *sqldb.CurrentExecutionsFilter) (*sqldb.CurrentExecutionsRow, error)
SelectFromCurrentExecutions reads one or more rows from current_executions table
func (*DB) SelectFromDomain ¶
SelectFromDomain reads one or more rows from domains table
func (*DB) SelectFromDomainMetadata ¶
func (mdb *DB) SelectFromDomainMetadata() (*sqldb.DomainMetadataRow, error)
SelectFromDomainMetadata reads a single row in domain_metadata table
func (*DB) SelectFromEvents ¶
SelectFromEvents reads one or more rows from events table
func (*DB) SelectFromExecutions ¶
func (mdb *DB) SelectFromExecutions(filter *sqldb.ExecutionsFilter) (*sqldb.ExecutionsRow, error)
SelectFromExecutions reads a single row from executions table
func (*DB) SelectFromHistoryNode ¶ added in v0.5.7
func (mdb *DB) SelectFromHistoryNode(filter *sqldb.HistoryNodeFilter) ([]sqldb.HistoryNodeRow, error)
SelectFromHistoryNode reads one or more rows from history_node table
func (*DB) SelectFromHistoryTree ¶ added in v0.5.7
func (mdb *DB) SelectFromHistoryTree(filter *sqldb.HistoryTreeFilter) ([]sqldb.HistoryTreeRow, error)
SelectFromHistoryTree reads one or more rows from history_tree table
func (*DB) SelectFromReplicationTasks ¶
func (mdb *DB) SelectFromReplicationTasks(filter *sqldb.ReplicationTasksFilter) ([]sqldb.ReplicationTasksRow, error)
SelectFromReplicationTasks reads one or more rows from replication_tasks table
func (*DB) SelectFromRequestCancelInfoMaps ¶
func (mdb *DB) SelectFromRequestCancelInfoMaps(filter *sqldb.RequestCancelInfoMapsFilter) ([]sqldb.RequestCancelInfoMapsRow, error)
SelectFromRequestCancelInfoMaps reads one or more rows from request_cancel_info_maps table
func (*DB) SelectFromShards ¶
SelectFromShards reads one or more rows from shards table
func (*DB) SelectFromSignalInfoMaps ¶
func (mdb *DB) SelectFromSignalInfoMaps(filter *sqldb.SignalInfoMapsFilter) ([]sqldb.SignalInfoMapsRow, error)
SelectFromSignalInfoMaps reads one or more rows from signal_info_maps table
func (*DB) SelectFromSignalsRequestedSets ¶
func (mdb *DB) SelectFromSignalsRequestedSets(filter *sqldb.SignalsRequestedSetsFilter) ([]sqldb.SignalsRequestedSetsRow, error)
SelectFromSignalsRequestedSets reads one or more rows from signals_requested_sets table
func (*DB) SelectFromTaskLists ¶
func (mdb *DB) SelectFromTaskLists(filter *sqldb.TaskListsFilter) ([]sqldb.TaskListsRow, error)
SelectFromTaskLists reads one or more rows from task_lists table
func (*DB) SelectFromTasks ¶
SelectFromTasks reads one or more rows from tasks table
func (*DB) SelectFromTimerInfoMaps ¶
func (mdb *DB) SelectFromTimerInfoMaps(filter *sqldb.TimerInfoMapsFilter) ([]sqldb.TimerInfoMapsRow, error)
SelectFromTimerInfoMaps reads one or more rows from timer_info_maps table
func (*DB) SelectFromTimerTasks ¶
func (mdb *DB) SelectFromTimerTasks(filter *sqldb.TimerTasksFilter) ([]sqldb.TimerTasksRow, error)
SelectFromTimerTasks reads one or more rows from timer_tasks table
func (*DB) SelectFromTransferTasks ¶
func (mdb *DB) SelectFromTransferTasks(filter *sqldb.TransferTasksFilter) ([]sqldb.TransferTasksRow, error)
SelectFromTransferTasks reads one or more rows from transfer_tasks table
func (*DB) SelectFromVisibility ¶
func (mdb *DB) SelectFromVisibility(filter *sqldb.VisibilityFilter) ([]sqldb.VisibilityRow, error)
SelectFromVisibility reads one or more rows from visibility table
func (*DB) UpdateCurrentExecutions ¶
UpdateCurrentExecutions updates a single row in current_executions table
func (*DB) UpdateDomain ¶
UpdateDomain updates a single row in domains table
func (*DB) UpdateDomainMetadata ¶
UpdateDomainMetadata updates a single row in domain_metadata table
func (*DB) UpdateEvents ¶
UpdateEvents updates a row in events table
func (*DB) UpdateExecutions ¶
UpdateExecutions updates a single row in executions table
func (*DB) UpdateHistoryTree ¶ added in v0.5.7
UpdateHistoryTree updates a row in history_tree table
func (*DB) UpdateShards ¶
UpdateShards updates one or more rows into shards table
func (*DB) UpdateTaskLists ¶
UpdateTaskLists updates a row in task_lists table
func (*DB) WriteLockExecutions ¶ added in v0.5.7
func (mdb *DB) WriteLockExecutions(filter *sqldb.ExecutionsFilter) (int, error)
WriteLockExecutions acquires a write lock on a single row in executions table
func (*DB) WriteLockShards ¶
func (mdb *DB) WriteLockShards(filter *sqldb.ShardsFilter) (int, error)
WriteLockShards acquires a write lock on a single row in shards table