maple.state.store.add_env

maple.state.store.add_env(name: str, image: str) int

Add or update a pulled environment.

Registers a downloaded environment in the database. If an environment with the same name already exists, updates its image and pulled timestamp.

Parameters:
  • name – Name of the environment.

  • image – Docker image identifier.

Returns:

Database row ID of the inserted or updated environment.