You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

scqueuephyinfomodel_gen.go 2.8 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Code generated by goctl. DO NOT EDIT.
  2. package models
  3. import (
  4. "context"
  5. "database/sql"
  6. "strings"
  7. "github.com/zeromicro/go-zero/core/stores/builder"
  8. "github.com/zeromicro/go-zero/core/stores/sqlc"
  9. "github.com/zeromicro/go-zero/core/stringx"
  10. )
  11. var (
  12. scQueuePhyInfoFieldNames = builder.RawFieldNames(&ScQueuePhyInfo{})
  13. scQueuePhyInfoRows = strings.Join(scQueuePhyInfoFieldNames, ",")
  14. scQueuePhyInfoRowsExpectAutoSet = strings.Join(stringx.Remove(scQueuePhyInfoFieldNames, "`create_at`", "`create_time`", "`created_at`", "`update_at`", "`update_time`", "`updated_at`"), ",")
  15. scQueuePhyInfoRowsWithPlaceHolder = strings.Join(stringx.Remove(scQueuePhyInfoFieldNames, "`id`", "`create_at`", "`create_time`", "`created_at`", "`update_at`", "`update_time`", "`updated_at`"), "=?,") + "=?"
  16. cachePcmScQueuePhyInfoIdPrefix = "cache:pcm:scQueuePhyInfo:id:"
  17. )
  18. type (
  19. scQueuePhyInfoModel interface {
  20. Insert(ctx context.Context, data *ScQueuePhyInfo) (sql.Result, error)
  21. FindOne(ctx context.Context, id int64) (*ScQueuePhyInfo, error)
  22. Update(ctx context.Context, data *ScQueuePhyInfo) error
  23. Delete(ctx context.Context, id int64) error
  24. }
  25. defaultScQueuePhyInfoModel struct {
  26. sqlc.CachedConn
  27. table string
  28. }
  29. ScQueuePhyInfo struct {
  30. Id int64 `db:"id"` // id
  31. AclHosts string `db:"aclHosts"` // 可用节点,多个节点用逗号隔开
  32. QueueId string `db:"queue_id"` // 队列名称
  33. Text string `db:"text"` // 队列名称
  34. QueueName string `db:"queue_name"` // 队列名称
  35. QueNodes string `db:"que_nodes"` // 队列节点总数
  36. QueMinNodect string `db:"que_min_nodect"` // 队列最小节点数
  37. QueMaxNgpus string `db:"que_max_ngpus"` // 队列最大GPU卡数
  38. QueMaxPpn string `db:"que_max_ppn"` // 使用该队列作业最大CPU核心数
  39. QueChargeRate string `db:"que_charge_rate"` // 费率
  40. QueMaxNcpus string `db:"que_max_ncpus"` // 用户最大可用核心数
  41. QueMaxNdcus string `db:"que_max_ndcus"` // 队列总DCU卡数
  42. QueMinNcpus string `db:"que_min_ncpus"` // 队列最小CPU核数
  43. QueFreeNodes string `db:"que_free_nodes"` // 队列空闲节点数
  44. QueMaxNodect string `db:"que_max_nodect"` // 队列作业最大节点数
  45. QueMaxGpuPN string `db:"que_max_gpu_PN"` // 队列单作业最大GPU卡数
  46. QueMaxWalltime string `db:"que_max_walltime"` // 队列最大运行时间
  47. QueMaxDcuPN string `db:"que_max_dcu_PN"` // 队列单作业最大DCU卡数
  48. ParticipantId int64 `db:"participant_id"` // 集群动态信息id
  49. DeletedFlag int64 `db:"deleted_flag"` // 是否删除
  50. QueNcpus string `db:"que_ncpus"`
  51. QueFreeNcpus string `db:"que_free_ncpus"`
  52. }
  53. )

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.