helpers
This package contains utility functions that simplify the workflow for users:
create_database: Handles initial database setup and configurationallowed_values_not_adapted.py: Contains predefined allowed values that are copied to the archive during installationhelper_functions: Provides internal utility functions for dynamic model creationfull_entry: Combines database and file operations for complete measurement and molecule entries
create_database
This module handles the initial setup of the database and archive directory structure. It includes functions for:
Creating the basic directory structure
Applying database migrations
Initializing the complete system
Create the basic archive directory structure. |
|
Apply all database migrations to bring schema to current version. |
|
Initialize the Specatalog system. |
allowed_values_not_adapted.py
This module contains predefined enumerations of allowed values for various measurement parameters. These values are used for data validation and are copied to the archive during installation.
full_entry
This module provides atomic operations for creating and deleting complete measurement and molecule entries. It ensures that both database and file operations are performed in a transaction-safe manner.
|
Create a complete measurement entry with atomic database and file operations. |
|
Delete a complete measurement entry with atomic database and file operations. |
|
Create a complete molecule entry with atomic database and file operations. |
helper_functions
This module contains internal utility functions that dynamically create Pydantic models for:
Filtering database queries
Ordering query results
Updating database records
|
Create dynamically a pydantic-class for filtering based on an SQLAlchemy- model. |
|
Create dynamically a pydantic-class for ordering based on an SQLAlchemy model. |
|
Create dynamically a pydantic-class for updating based on an SQLAlchemy model. |