Skip to content

import

Build the SQLite analysis store (model.db) beside a model.jsonl.

Synopsis

codegraph import <model.jsonl...> [--out FILE] [--at SHA] [--time T] [--json]

Arguments

ArgumentMeaningDefault
<model.jsonl...>One or more model.jsonl paths. Each becomes its OWN store — never a union.—

Options

OptionMeaningDefault
--out FILEWrite the store here instead of beside the model. One model only.—
--at SHAAppend this model as the snapshot extracted at commit SHA — the temporal store: revisions accumulate, and the flat tables mirror the latest import.—
--time TCommit time for –at (unix seconds or an ISO date); queries order by it.—
--jsonPrint the same information as a machine-readable JSON object on stdout.—
-h, --helpShow this help.—

Exit codes

0 ok · 1 internal error (a bug) · 2 usage error · 3 findings.

3 when the load was not clean; the store is still written.

Example

$ codegraph import fixtures/java/expected/model.jsonl
fixtures/java/expected/model.jsonl: 0.03 s, 0.0 MB jsonl -> 0.2 MB db
imported fixtures/java/expected/model.jsonl -> fixtures/java/expected/model.db
  179 entities (27 stubs), 188 edges, 16 files, lang java

OK — the store is ready. Run `codegraph analyze` against the model as usual.

See also

model.db · model.jsonl · CLI conventions

Last updated on