MCPcopy Create free account
hub / github.com/dataddo/pgq / GenerateDropTableQuery

Function GenerateDropTableQuery

x/schema/queue.go:34–37  ·  view source on GitHub ↗

GenerateDropTableQuery returns a postgres query for dropping the queue table

(queueName string)

Source from the content-addressed store, hash-verified

32
33// GenerateDropTableQuery returns a postgres query for dropping the queue table
34func GenerateDropTableQuery(queueName string) string {
35 quotedTableName := pg.QuoteIdentifier(queueName)
36 return `DROP TABLE IF EXISTS ` + quotedTableName
37}

Calls 1

QuoteIdentifierFunction · 0.92