Count exec & Select limit/offset
Go Tests / test (push) Successful in 1m16s

This commit is contained in:
2026-06-04 11:08:14 +02:00
parent 0cf4e63ac3
commit d10d0f8414
3 changed files with 242 additions and 7 deletions
+4
View File
@@ -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()) + " (")