Skip to content

project.local

3 functions / 0 types

Index

FunctionDescription
createExecute the create statement.
deleteExecute the delete statement.
get_allExecute the get_all statement.

create

def create(
    *,
    name: str,
    author: str,
    dir: str,
    _transaction_id: str | None = None
) -> types.project.LocalProjectMeta

Execute the create statement.

Returns LocalProjectMeta.

name : str

The name for the project.

author : str

The author/creator of the project.

dir : str

The directory that the project will be stored in.

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

delete

def delete(*, uuid: str, dir: str, _transaction_id: str | None = None) -> None

Execute the delete statement.

Returns None.

uuid : str

The UUID for the local project to delete, in its canonical hyphenated form.

dir : str

The directory to attempt to delete the local project from.

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

get_all

def get_all(
    *,
    dir: str,
    _transaction_id: str | None = None
) -> types.project.LocalProjectList

Execute the get_all statement.

Returns LocalProjectList.

dir : str

The directory to search in for local projects.

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.