First attempt at both Rust and snix-castore. I'll start by putting together a single-file CLI app, no splitting modules out until needed, no separation of concerns. Currently, just the fetching is implemented: ``` $ sidx pkgs/dev*/cuda-*/cuda/manifests/*.json ```
21 lines
317 B
SQL
21 lines
317 B
SQL
INSERT INTO sidx_uri_sample(uri_id, blob_id)
|
|
VALUES(
|
|
(
|
|
SELECT
|
|
id
|
|
FROM
|
|
sidx_uri
|
|
WHERE
|
|
uri = ?
|
|
LIMIT 1
|
|
),
|
|
(
|
|
SELECT
|
|
id
|
|
FROM
|
|
sidx_blob
|
|
WHERE
|
|
blake3 = ?
|
|
)
|
|
)
|
|
RETURNING id, epoch;
|