Environment / Tooling
bashtool executes shell commands mechanically; no auth or gating observed.- SQLite DB accessed via
sqlite3 database.db "<SQL>"in the working directory (also works with./database.db). - Schema file
./schema.sqlsits alongsidedatabase.dband contains onlyCREATE TABLEstatements (no data). May include commented-out columns (e.g.-- PctGE1500 double null) that are NOT in the live table. - Multiple SQL statements can be issued in one
sqlite3invocation separated by;; each result set is printed sequentially with no separator (may appear ambiguous, e.g. duplicate-when values overlap between statements). - Multiple
sqlite3invocations andechocalls can be chained via newline in a singlebashcommand; outputs concatenate in order. - Default
sqlite3CLI output: pipe-separated columns, newline-separated rows, no header, no row count. - Backticks embedded in a double-quoted shell argument must be escaped as
\``; identifiers can alternatively be quoted with"..."` inside the double-quoted argument. - SQL errors surface as
is_error=Truewith formatError: in prepare, no such column: <col>\n <query snippet>\n ^--- error here. - No observed timeouts, rate limits, or output truncation.
Data Integrity
- Foreign-key columns may be NULL (all FK columns declared
default NULL). - Numeric values in the DB can carry floating-point imprecision (e.g.
-0.199999999999999stored as REAL; averages returned to full float precision, e.g.465.432098765432,16.7005649717514,137.888888888889). schools.Virtualcodes are single letters (e.g.F,P,N) —Fobserved to mean non-virtual in query contexts (but virtual-named schools likeCalifornia Virtual Academyalso carryVirtual='F', so the code is not a reliable virtual-vs-brick indicator).satscores.snamemay be NULL or empty string''(both occur for the same county in results); filter withsname IS NOT NULL AND sname != ''to exclude blanks.schools.FundingTypemay be NULL (blank in output) for schools not in the CS funding model. Distinct non-null values:Directly funded,Locally funded,Not in CS funding model(plus empty).schools.AdmEmail1/2/3may be empty strings for some schools.expense.approvedobserved only astruein the loaded DB (nofalserows present).atom_idindex component is variable width:SUBSTR(atom_id,7,2)returns e.g.1,2,...,21,22(trailing chars beyond string end are omitted; no zero-padding). Use range comparisons on the substring as strings only when width is uniform.