loader
sqllocks_spindle.verify.loader
¶
Shared data loader for spindle verify and compare commands.
Functions:¶
load_tables(path, fmt)
¶
Load one or more data files into a dict of DataFrames keyed by table name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to a single file or a directory containing data files. |
required |
fmt
|
str
|
File format — one of "csv", "parquet", "jsonl". |
required |
Returns:
| Type | Description |
|---|---|
dict[str, DataFrame]
|
Dict mapping stem name (filename without extension) to DataFrame. |
dict[str, DataFrame]
|
Empty dict if a directory contains no matching files. |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If |
ValueError
|
If |