Skip to content

project.local

3 functions / 0 types

Index

FunctionDescription
createExecute the create statement.
deleteExecute the delete statement.
getAllExecute the getAll statement.

create

create(args: { author: string; dir: string; name: string }, transactionId?: string): Promise<ProjectLocalProjectMeta>

Execute the create statement.

Returns: What a .spatial file records about the project it holds.

Returns Promise<ProjectLocalProjectMeta>.

author : string

The author/creator of the project.

dir : string

The directory that the project will be stored in.

name : string

The name for the project.

transactionId optional : string

delete

delete(args: { dir: string; uuid: string }, transactionId?: string): Promise<void>

Execute the delete statement.

Returns Promise<void>.

dir : string

The directory to attempt to delete the local project from.

uuid : string

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

transactionId optional : string

getAll

getAll(args: { dir: string }, transactionId?: string): Promise<ProjectLocalProjectList>

Execute the getAll statement.

Returns: Every local project found in a directory, as returned by GetLocalProjectList.

Returns Promise<ProjectLocalProjectList>.

dir : string

The directory to search in for local projects.

transactionId optional : string