Timothy Messier
a92c88dfb5
refact(db): Replace get_deleted_tables function with a view
...
This function was returning the set of deletion tables. A view seems
better suited for this task since it would allow for applying additional
filters of the result set. This was particularly necessary to easily
make changes to some sqltests due to switching the delete trigger for
the session table.
(cherry picked from commit 32d41639892950b21fafc39b50c10b997c6d5121)
2024-09-24 14:18:54 +00:00
Jim
6a37c93d77
fix: properly handle rows.Err() ( #4261 )
...
* fix (auth): properly handle rows.Err()
* fix (auth/ldap): properly handle rows.Err()
* fix (auth/oidc): properly handle rows.Err()
* fix (auth/password): properly handle rows.Err()
* fix (authtoken): properly handle rows.Err()
* fix (credential): properly handle rows.Err()
* fix (credential/static): properly handle rows.Err()
* fix (credential/vault): properly handle rows.Err()
* fix (db): properly handle rows.Err()
* fix (db/schema): properly handle rows.Err()
* fix (db/migrations): properly handle rows.Err()
* fix (host): properly handle rows.Err()
* fix (host/plugin): properly handle rows.Err()
* fix (host/static): properly handle rows.Err()
* fix (iam): properly handle rows.Err()
* fix (kms): properly handle rows.Err()
* fix (oplog): properly handle rows.Err()
* fix (pagination/purge): properly handle rows.Err()
* fix (plugin): properly handle rows.Err()
* fix (job/scheduler): properly handle rows.Err()
* fix (server): properly handle rows.Err()
* fix (session): properly handle rows.Err()
* fix (target): properly handle rows.Err()
2024-01-22 14:03:40 -05:00
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