client_cmd_request.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package client
  2. type AutoMigrateRequest struct {
  3. Items []AutoMigrateItem
  4. }
  5. type AutoMigrateItem struct {
  6. TablePrefixWithSchema string
  7. Version string
  8. TableModelDescribe map[string]string
  9. NoEvent bool
  10. }
  11. type InsertRequest struct {
  12. TablePrefixWithSchema string
  13. Version string
  14. KeyColumns []string
  15. TableRow *TableRow
  16. UserID string
  17. }
  18. type InsertBatchRequest struct {
  19. Items []InsertTableRowItem
  20. UserID string
  21. }
  22. type InsertTableRowItem struct {
  23. TablePrefixWithSchema string
  24. Version string
  25. KeyColumns []string
  26. TableRows []*TableRow
  27. }
  28. type DeleteRequest struct {
  29. TablePrefixWithSchema string
  30. Version string
  31. KeyValues *KeyValue
  32. UserID string
  33. }
  34. type DeleteWhereRequest struct {
  35. TablePrefixWithSchema string
  36. Version string
  37. KeyColumns []string
  38. Where *Clause
  39. UserID string
  40. }
  41. type UpdateRequest struct {
  42. TablePrefixWithSchema string
  43. Version string
  44. KeyValues *KeyValue
  45. NewTableRow *TableRow
  46. UserID string
  47. }
  48. type UpdateWhereRequest struct {
  49. TablePrefixWithSchema string
  50. Version string
  51. KeyColumns []string
  52. Where *Clause
  53. NewTableRow *TableRow
  54. UserID string
  55. }
  56. type ReplayRequest struct {
  57. TablePrefixWithSchema string
  58. Version string
  59. KeyValues *KeyValue
  60. UserID string
  61. }