github.com/team-ide/go-dialect@v1.9.20/dialect/insert.go (about)

     1  package dialect
     2  
     3  type InsertModel struct {
     4  	OwnerName string          `json:"ownerName"`
     5  	TableName string          `json:"tableName"`
     6  	Columns   []string        `json:"columns"`
     7  	Rows      [][]*ValueModel `json:"rows"`
     8  }
     9  
    10  type ValueModel struct {
    11  	Type  ValueType `json:"type"`
    12  	Value string    `json:"value"`
    13  }
    14  
    15  type ValueType string
    16  
    17  var (
    18  	ValueTypeString ValueType = "string"
    19  	ValueTypeNumber ValueType = "number"
    20  	ValueTypeFunc   ValueType = "func"
    21  )