This commit is contained in:
@@ -58,6 +58,10 @@ func (t Table) GetSelectDML() (string, error) {
|
||||
return dml.String(), nil
|
||||
}
|
||||
|
||||
func (t Table) GetCountDML() string {
|
||||
return "SELECT COUNT(*) FROM " + t.Name
|
||||
}
|
||||
|
||||
func (t Table) GetInsertDML(count int) (string, error) {
|
||||
var dml strings.Builder
|
||||
dml.WriteString("INSERT INTO " + util.CamelToSnake(t.Type.Name()) + " (")
|
||||
|
||||
Reference in New Issue
Block a user