Files
threshold/internal/db/sqltest/tests/pagination/auth_token.sql
T
Michael Milton 6ba3676c37 Auth token pagination (#4113)
* Add pagination support for auth tokens

* change analyze count estimate comment

* adjust queries for efficiency and security

* even more efficient queries
2024-01-05 07:43:20 -08:00

12 lines
352 B
PL/PgSQL

-- Copyright (c) HashiCorp, Inc.
-- SPDX-License-Identifier: BUSL-1.1
begin;
select plan(2);
select has_index('auth_token', 'auth_token_create_time_public_id_idx', array['create_time', 'public_id']);
select has_index('auth_token', 'auth_token_update_time_public_id_idx', array['update_time', 'public_id']);
select * from finish();
rollback;