(queueName string)
| 190 | } |
| 191 | |
| 192 | func generateInvalidQueueQuery(queueName string) string { |
| 193 | quotedTableName := pg.QuoteIdentifier(queueName) |
| 194 | return fmt.Sprintf(` CREATE TABLE IF NOT EXISTS %[1]s |
| 195 | ( |
| 196 | id UUID DEFAULT gen_random_uuid() NOT NULL PRIMARY KEY, |
| 197 | created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL, |
| 198 | started_at TIMESTAMPTZ NULL, |
| 199 | description TEXT NULL, |
| 200 | name TEXT NULL |
| 201 | ); |
| 202 | `, quotedTableName, quotedTableName[1:len(quotedTableName)-1]) |
| 203 | } |
| 204 | |
| 205 | func generateCreateTableQuery(queueName string) string { |
| 206 | quotedTableName := pg.QuoteIdentifier(queueName) |
no test coverage detected