Module stac_fastapi.pgstac.transactions¶
transactions extension client.
Variables¶
logger
Classes¶
BulkTransactionsClient¶
class BulkTransactionsClient(
)
Postgres bulk transactions.
Ancestors (in MRO)¶
- stac_fastapi.extensions.third_party.bulk_transactions.AsyncBaseBulkTransactionsClient
- abc.ABC
- stac_fastapi.pgstac.transactions.ClientValidateMixIn
Methods¶
bulk_item_insert¶
def bulk_item_insert(
self,
items: stac_fastapi.extensions.third_party.bulk_transactions.Items,
request: starlette.requests.Request,
**kwargs
) -> str
Bulk item insertion using pgstac.
ClientValidateMixIn¶
class ClientValidateMixIn(
/,
*args,
**kwargs
)
Descendants¶
- stac_fastapi.pgstac.transactions.TransactionsClient
- stac_fastapi.pgstac.transactions.BulkTransactionsClient
TransactionsClient¶
class TransactionsClient(
)
Transactions extension specific CRUD operations.
Ancestors (in MRO)¶
- stac_fastapi.types.core.AsyncBaseTransactionsClient
- abc.ABC
- stac_fastapi.pgstac.transactions.ClientValidateMixIn
Methods¶
create_collection¶
def create_collection(
self,
collection: stac_pydantic.collection.Collection,
request: starlette.requests.Request,
**kwargs
) -> Union[stac_fastapi.types.stac.Collection, starlette.responses.Response, NoneType]
Create collection.
create_item¶
def create_item(
self,
collection_id: str,
item: Union[stac_pydantic.item.Item, stac_pydantic.item_collection.ItemCollection],
request: starlette.requests.Request,
**kwargs
) -> Union[stac_fastapi.types.stac.Item, starlette.responses.Response, NoneType]
Create item.
delete_collection¶
def delete_collection(
self,
collection_id: str,
request: starlette.requests.Request,
**kwargs
) -> Union[stac_fastapi.types.stac.Collection, starlette.responses.Response, NoneType]
Delete collection.
delete_item¶
def delete_item(
self,
item_id: str,
collection_id: str,
request: starlette.requests.Request,
**kwargs
) -> Union[stac_fastapi.types.stac.Item, starlette.responses.Response, NoneType]
Delete item.
update_collection¶
def update_collection(
self,
collection: stac_pydantic.collection.Collection,
request: starlette.requests.Request,
**kwargs
) -> Union[stac_fastapi.types.stac.Collection, starlette.responses.Response, NoneType]
Update collection.
update_item¶
def update_item(
self,
request: starlette.requests.Request,
collection_id: str,
item_id: str,
item: stac_pydantic.item.Item,
**kwargs
) -> Union[stac_fastapi.types.stac.Item, starlette.responses.Response, NoneType]
Update item.