Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.03 KB

File metadata and controls

29 lines (20 loc) · 1.03 KB

New-ImageStoreDatabase

Creates a SQLite database file, builds the schema in it, and opens it.

Alias: NewDatabase

The new database is left open, so this stands in for a following Open-ImageStoreDatabase.

Parameters

Name Type Description Optional
Path string Path of the database file to create. Relative paths are resolved against the current PowerShell location. No
Force switch Replaces the file if it exists already, along with its -wal, -shm and -journal companions. Without this, an existing file is an error. Yes

FromPipeline: Path

Return

None.

Remarks

The database file should be on a local disk. See Database for why.

The directory has to exist; it is not created.

Note: -Force deletes the existing file. If it is a library rather than a leftover, there is nothing to undo.

See also