moo.bootstrap.initialize_dataset
- moo.bootstrap.initialize_dataset(dataset='default', site=None)
Initialize a new dataset, or sync an existing one.
This will create the default objects and permissions for the dataset. Notably, it will create a System Object that is used to store global properties and verbs.
It will also create a Wizard user that is used to manage the system.
All operations are idempotent — safe to call on a DB that has already been initialized.
- Parameters:
dataset (str) – The name of the dataset to initialize.
site (Site | None) – The site to associate the dataset with.
- Returns:
The repository object for the dataset.
- Return type: