sidx/src/q/add-cuda-manifest.sql
SomeoneSerge c8b8b56456 cuda: support cudnn manifests
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.
2025-05-09 04:05:20 +00:00

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