sidx/src/q/add-sample.sql
SomeoneSerge d9a7b8c3d9 init
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
```
2025-04-15 18:46:29 +00:00

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;