Postgres dataloader
PostgresProjectLoader
Bases: DataLoaderBase
Source code in src/dataloader/postgres_dataloader.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
find_projects(cfg=None)
Executes sql alchemy query to load all projects from the database
Returns:
Type | Description |
---|---|
|
Source code in src/dataloader/postgres_dataloader.py
41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
load(projects_list=None)
Executes sql alchemy query to load all projects from the database that are in the projects_list
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cfg |
|
required | |
projects_list |
list[str]
|
|
None
|
Returns:
Type | Description |
---|---|
Iterable[Project]
|
|
Source code in src/dataloader/postgres_dataloader.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
load_single(project, cfg)
Executes sql alchemy query to load a single project and all versions from the database
Parameters:
Name | Type | Description | Default |
---|---|---|---|
project |
str
|
|
required |
cfg |
dict
|
|
required |
Returns:
Type | Description |
---|---|
|
Source code in src/dataloader/postgres_dataloader.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|