IF Commons GitHub

AnyFS Query

Quality: 27 tests: 27 passed, 0 failed, 0 skipped, 26 of 26 requirements proved, 0 open issues, 0 open tickets. The tests and issues of the library

The query language of AnyFS: read-only SQL over the files, places, revisions and content of any store, planned so that a query lists only what its filter can match and reads only what its metadata leaves, within budgets it reports and the consent it was given. This module re-exports the two layers.

Entry points

Modules

Examples

import { mountTable, query } from "@intellectual-frontiers/anyfs-query";
const ctx = { ...mountTable({ fleet: { store, consent: "content" } }), clock: { now: () => Date.now() } };
const r = await query(ctx, "SELECT path, size FROM files('fleet:/machines') WHERE ext = 'json' AND size > 1 KB ORDER BY size DESC LIMIT 5");

Titles, headings, exports, tables, columns and requirements. Esc closes.