Module stac_fastapi.sqlalchemy.tokens¶
Pagination token client.
Variables¶
logger
Classes¶
PaginationTokenClient¶
class PaginationTokenClient(
session: stac_fastapi.sqlalchemy.session.Session = NOTHING,
token_table: Type[stac_fastapi.sqlalchemy.models.database.PaginationToken] = <class 'stac_fastapi.sqlalchemy.models.database.PaginationToken'>
)
Pagination token specific CRUD operations.
Ancestors (in MRO)¶
- abc.ABC
Descendants¶
- stac_fastapi.sqlalchemy.core.CoreCrudClient
Methods¶
get_token¶
def get_token(
self,
token_id: str
) -> str
Retrieve a keyset from the database.
insert_token¶
def insert_token(
self,
keyset: str,
tries: int = 0
) -> str
Insert a keyset into the database.