xugu_model.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. package xugu
  2. type SelectResult struct {
  3. Field_Num uint32
  4. Fields []FieldDescri
  5. Values [][]FieldValue //[字段][字段所有值]
  6. rowIdx int
  7. fad *FormArgDescri
  8. }
  9. type FieldValue struct {
  10. Col_len uint32
  11. Col_Data []byte
  12. }
  13. type InsertResult struct {
  14. RowidLen uint32
  15. RowidData []byte
  16. }
  17. type UpdateResult struct {
  18. UpdateNum uint32
  19. }
  20. type DeleteResult struct {
  21. DeleteNum uint32
  22. }
  23. type ProcRet struct {
  24. RetDType uint32
  25. RetDataLen uint32
  26. RetData []byte
  27. }
  28. type OutParamRet struct {
  29. OutParamNo uint32
  30. OutParamDType uint32
  31. OutParamLen uint32
  32. OutParamData []byte
  33. }
  34. type ErrInfo struct {
  35. ErrStrLen uint32
  36. ErrStr []byte
  37. }
  38. type WarnInfo struct {
  39. WarnStrLen uint32
  40. WarnStr []byte
  41. }
  42. type Message struct {
  43. MsgStrLen uint32
  44. MsgStr []byte
  45. }
  46. type FormArgDescri struct {
  47. ArgNum uint32
  48. Args []ArgDescri
  49. }
  50. type ArgDescri struct {
  51. ArgNameLen uint32
  52. ArgName []byte
  53. ArgNo uint32
  54. ArgDType uint32
  55. ArgPreciScale uint32
  56. }
  57. type allResult struct {
  58. rt msgType
  59. s *SelectResult
  60. i *InsertResult
  61. u *UpdateResult
  62. d *DeleteResult
  63. p *ProcRet
  64. o *OutParamRet
  65. e *ErrInfo
  66. w *WarnInfo
  67. m *Message
  68. f *FormArgDescri
  69. }