transaction.go 426 B

123456789101112
  1. package client
  2. type TransactionFunc func(tx Transaction) error
  3. type Transaction interface {
  4. InsertTx(request *InsertRequest) (string, error)
  5. InsertBatchTx(request *InsertBatchRequest) (string, error)
  6. DeleteTx(request *DeleteRequest) (string, error)
  7. DeleteWhereTx(request *DeleteWhereRequest) (string, error)
  8. UpdateTx(request *UpdateRequest) (string, error)
  9. UpdateWhereTx(request *UpdateWhereRequest) (string, error)
  10. }