code wiki / (root) / nx_relate_import.nx

nx_relate_import.nx

buildroot/runtime/nx_relate_import.nx

6727 B172 linesdepth 8pulls 10 transitivereach 0 importersview sourcekind tooltopic relate
docsdependenciesstructsconstsfunctions

about

nx_relate_import.nx -- IMPORT-EXPORT for the relationship graph (CRM census E6): bring real contacts IN (CSV lines `type,name,tenant` + minimal vCard FN:) and get them OUT (CSV export walked from the store) -- persisted on the sovereign append-only seg_store via the nx_relate_serve pure core. STRICT: a malformed CSV row (fewer than 3 fields) fails the WHOLE import loudly (no partial silent imports). Argless = selftest gate. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_relate_serve.nx nx_relate_import.nx

imports: nx_relate_serve.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main p sys_write rv_cat rv_catn sys_mmap sys_now_us sys_mmap ↻ sys_clock_gettime_mono ri_import_csv rv_slen ss_begin ss_begin_cap sys_mmap ↻ ri_csvf rv_save_entity sys_mmap ↻ canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap cid_of sys_mmap ↻ sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_final blk_set_byte ↻ sha256_compress ↻ cid_from_digest sys_munmap ↻ rv_cat ↻

structs

none

consts

7const K_MAGIC_65536: i64 = 65536

functions

10func ri_csvf(b: *u8, ls: i64, le: i64, idx: i64, out: *u8, cap: i64) -> i64
called by 1: ri_import_csv
30func ri_import_csv(prefix: *u8, txt: *u8) -> i64
58func ri_import_vcard(prefix: *u8, txt: *u8) -> i64
83func ri_export_csv(prefix: *u8, out: *u8, cap: i64) -> i64
130func main() -> i64