xugu_model.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. EffectNum uint32
  20. RowidLen uint32
  21. RowidData []byte
  22. }
  23. type UpdateResult struct {
  24. UpdateNum uint32
  25. }
  26. type DeleteResult struct {
  27. DeleteNum uint32
  28. }
  29. type ProcRet struct {
  30. RetDType uint32
  31. RetDataLen uint32
  32. RetData []byte
  33. }
  34. type OutParamRet struct {
  35. OutParamNo uint32
  36. OutParamDType uint32
  37. OutParamLen uint32
  38. OutParamData []byte
  39. }
  40. type ErrInfo struct {
  41. ErrStrLen uint32
  42. ErrStr []byte
  43. }
  44. type WarnInfo struct {
  45. WarnStrLen uint32
  46. WarnStr []byte
  47. }
  48. type Message struct {
  49. MsgStrLen uint32
  50. MsgStr []byte
  51. }
  52. type ArgDescri struct {
  53. ArgNameLen uint32
  54. ArgName []byte
  55. ArgNo uint32
  56. ArgDType uint32
  57. ArgPreciScale uint32
  58. }
  59. type allResult struct {
  60. rt msgType
  61. s *SelectResult
  62. i *InsertResult
  63. u *UpdateResult
  64. d *DeleteResult
  65. p *ProcRet
  66. o *OutParamRet
  67. e *ErrInfo
  68. w *WarnInfo
  69. m *Message
  70. f *FormArgDescri
  71. next *allResult
  72. effectNum uint32 //sql总影响行数,包括i,u,d
  73. }