pub fn parse_schema_fs(dir: impl AsRef<Path>) -> Result<Vec<Statement>>Expand description
Parse .gql files in dir into a list of Statements.
Reads direct children only (no recursion), keeping files whose name ends
with .gql (case-sensitive). Each file is split on newlines; each line is
trimmed, comment lines (//, --) and blank lines are skipped, and only
lines starting (case-insensitively) with CREATE/MERGE/MATCH/DELETE are kept.
Kept lines are split on ; into individual statements.
ยงErrors
Returns Error::Other if the directory cannot be read, or Error::Io
if a directory entry cannot be accessed.