Source Files

FileDescription
b_tree.f90

Generic on-disk B+-tree.

Read more…
b_tree_sm.f90
clib_wrap.f90

Thin, generic Fortran wrappers around a handful of OS filesystem and advisory-locking operations.

Read more…
clib_wrap_sm.f90
cmdgraph.f90

Copyright (c) 2026 Simon Geard Vendored into sqr from https://github.com/sgeard/cmdgraph (fortran/src); kept in sync by hand.

Read more…
cmdgraph_sm.f90

Copyright (c) 2026 Simon Geard Vendored into sqr from https://github.com/sgeard/cmdgraph (fortran/src); kept in sync by hand.

dlist.f90

Copyright (c) 2026 Simon Geard Vendored into sqr from https://github.com/sgeard/cmdgraph (fortran/src); kept in sync by hand.

Read more…
dlist_sm.f90

Copyright (c) 2026 Simon Geard Vendored into sqr from https://github.com/sgeard/cmdgraph (fortran/src); kept in sync by hand.

sql.f90

A small SQL subset over the sqr typed store — a front-end layer only.

Read more…
sql_base.f90

sql intermediate submodule: shared helpers host-associated by the parser and executor descendants. Mirrors sqr_base in the engine: anything two sibling submodules both need lives here, because host association reaches descendants but not across siblings.

Read more…
sql_exec.f90

sql executor submodule: turn a parsed sql_stmt_t into engine calls and a sql_result_t, plus the REPL renderer. Front-end only — every data operation goes through the public db_* API of sqr. Shares the helpers of sql_base by host association.

Read more…
sql_parse.f90

sql parser submodule: recursive descent from a token stream into one sql_stmt_t. Shares the helpers of sql_base by host association. All parse helpers are internal to sql_parse, sharing the token cursor (p), the token array and the error state through host scope — so the parser is reentrant (no submodule-level state).

Read more…
sqr.f90

Lightweight pure-Fortran relational store.

Read more…
sqr_admin.f90
sqr_base.f90
sqr_fault.f90

sqr_fault — fault-injection seam for sqr's low-level I/O failure branches.

Read more…
sqr_fault_off_sm.f90

Production fault submodule: injection compiled out entirely. Lives in src/ so both Make (default FAULT=off) and fpm build it; the pure storage core therefore ships with no fault state and no overhead.

sqr_index.f90
sqr_journal.f90
sqr_record.f90
sqr_rowbuf.f90
sqr_table.f90