(columns []string, table *TableSchema, lastPaginationKey PaginationKey, batchSize uint64)
| 305 | } |
| 306 | |
| 307 | func DefaultBuildSelect(columns []string, table *TableSchema, lastPaginationKey PaginationKey, batchSize uint64) squirrel.SelectBuilder { |
| 308 | quotedPaginationKey := QuoteField(table.GetPaginationColumn().Name) |
| 309 | |
| 310 | return squirrel.Select(columns...). |
| 311 | From(QuotedTableName(table)). |
| 312 | Where(squirrel.Gt{quotedPaginationKey: lastPaginationKey.SQLValue()}). |
| 313 | Limit(batchSize). |
| 314 | OrderBy(quotedPaginationKey) |
| 315 | } |
no test coverage detected