Skip to content

Commit

Permalink
feat: add write function to spanner.Tx
Browse files Browse the repository at this point in the history
  • Loading branch information
Rached Ben Ayed committed Jul 18, 2023
1 parent a003d12 commit bda30bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcloud/helpers/spanner/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ type Tx interface {
Query(ctx context.Context, statement spanner.Statement) *spanner.RowIterator
QueryWithStats(ctx context.Context, statement spanner.Statement) *spanner.RowIterator
AnalyzeQuery(ctx context.Context, statement spanner.Statement) (*spannerpb.QueryPlan, error)
BufferWrite([]*spanner.Mutation) error
Update(ctx context.Context, stmt spanner.Statement) (rowCount int64, err error)
}

0 comments on commit bda30bc

Please sign in to comment.