-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchinook-artists-to-sqlite.json
More file actions
29 lines (29 loc) · 1.11 KB
/
Copy pathchinook-artists-to-sqlite.json
File metadata and controls
29 lines (29 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"$schema": "https://raw.githubusercontent.com/TheCocoTeam/source-watcher-api/master/pipeline.schema.json",
"notes": "Copies artists from the Chinook SQLite database into a separate SQLite output table.",
"steps": [
{
"type": "extractor",
"name": "Database",
"options": {
"driver": "pdo_sqlite",
"path": "https://raw.githubusercontent.com/lerocha/chinook-database/refs/heads/master/ChinookDatabase/DataSources/Chinook_Sqlite.sqlite",
"query": "SELECT ar.ArtistId, ar.Name AS ArtistName, al.Title AS AlbumTitle FROM Artist ar JOIN Album al ON ar.ArtistId = al.ArtistId ORDER BY ar.Name LIMIT 50"
},
"x": 80,
"y": 100
},
{
"type": "loader",
"name": "Database",
"options": {
"driver": "pdo_sqlite",
"tableName": "artist_albums",
"path": "/var/www/html/.source-watcher/chinook-artists.db",
"memory": false
},
"x": 320,
"y": 100
}
]
}