Also changes the schemas a bit (still don't care about migrations), switches to named_params!, fixes up perf issues when ingesting manifests and/or hrefs into sqlite, etc. Adds sample queries such as "CudaArtifact conflicts" to datasette config, which explain some issues associated with choosing an evalModules schema on the cudaPackages side.
9 lines
342 B
SQL
9 lines
342 B
SQL
INSERT INTO
|
|
CudaManifest(id, release_date, release_label, release_product)
|
|
VALUES (
|
|
(SELECT id FROM Hash WHERE hash=:hash LIMIT 1),
|
|
(SELECT id FROM Str WHERE str=:release_date LIMIT 1),
|
|
(SELECT id FROM Str WHERE str=:release_label LIMIT 1),
|
|
(SELECT id FROM Str WHERE str=:release_product LIMIT 1)
|
|
)
|
|
ON CONFLICT DO NOTHING
|