2021-11-23 09:45:38 +00:00
|
|
|
package storage
|
|
|
|
|
|
|
|
const (
|
|
|
|
queryFmtRenameTable = `
|
|
|
|
ALTER TABLE %s
|
|
|
|
RENAME TO %s;`
|
|
|
|
|
|
|
|
queryFmtMySQLRenameTable = `
|
|
|
|
ALTER TABLE %s
|
|
|
|
RENAME %s;`
|
|
|
|
|
2022-11-25 12:44:55 +00:00
|
|
|
queryFmtPostgreSQLLockTable = `LOCK TABLE %s IN %s MODE;`
|
2021-11-23 09:45:38 +00:00
|
|
|
|
2022-11-25 12:44:55 +00:00
|
|
|
queryFmtSelectRowCount = `
|
|
|
|
SELECT COUNT(id)
|
|
|
|
FROM %s;`
|
2021-11-23 09:45:38 +00:00
|
|
|
)
|