cata_log_hub.utils.queries module

cata_log_hub.utils.queries.latest_provider_catalog_id_subquery(provider_id)[source]

Create a subquery for the id of the latest catalog of a provider.

Parameters:

provider_id (int) – The id of the provider.

Return type:

ScalarSelect[int]

Returns:

A subquery to use in sql queries that need the latest provider catalog id.