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. next *SelectResult
  9. }
  10. type FormArgDescri struct {
  11. ArgNum uint32
  12. Args []ArgDescri
  13. }
  14. type FieldValue struct {
  15. Col_len uint32
  16. Col_Data []byte
  17. }
  18. type InsertResult struct {
  19. RowidLen uint32
  20. RowidData []byte
  21. }
  22. type UpdateResult struct {
  23. UpdateNum uint32
  24. }
  25. type DeleteResult struct {
  26. DeleteNum uint32
  27. }
  28. type ProcRet struct {
  29. RetDType uint32
  30. RetDataLen uint32
  31. RetData []byte
  32. }
  33. type OutParamRet struct {
  34. OutParamNo uint32
  35. OutParamDType uint32
  36. OutParamLen uint32
  37. OutParamData []byte
  38. }
  39. type ErrInfo struct {
  40. ErrStrLen uint32
  41. ErrStr []byte
  42. }
  43. type WarnInfo struct {
  44. WarnStrLen uint32
  45. WarnStr []byte
  46. }
  47. type Message struct {
  48. MsgStrLen uint32
  49. MsgStr []byte
  50. }
  51. type ArgDescri struct {
  52. ArgNameLen uint32
  53. ArgName []byte
  54. ArgNo uint32
  55. ArgDType uint32
  56. ArgPreciScale uint32
  57. }
  58. type allResult struct {
  59. rt msgType
  60. s *SelectResult
  61. i *InsertResult
  62. u *UpdateResult
  63. d *DeleteResult
  64. p *ProcRet
  65. o *OutParamRet
  66. e *ErrInfo
  67. w *WarnInfo
  68. m *Message
  69. f *FormArgDescri
  70. }