Files
threshold/internal/pagination/purge/query.go
T
Johan Brandhorst-Satzkorn 7c996d0e02 internal/pagination: add new purge package
The purge package contains a job that is used to purge
records from the foo_deleted tables when they become
older than 30 days.
2024-01-05 07:43:19 -08:00

14 lines
245 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package purge
const (
getDeletionTablesQuery = `
select get_deletion_tables();
`
deleteQueryTemplate = `
delete from %s where delete_time < now() - interval '30 days'
`
)