Skip to main content

vec_kind_table_name

Function vec_kind_table_name 

Source
pub fn vec_kind_table_name(kind: &str) -> String
Expand description

Derive the canonical sqlite-vec virtual-table name for a given node kind.

Rules:

  1. Lowercase the kind string.
  2. Replace every character that is NOT [a-z0-9] with _.
  3. Collapse consecutive underscores to a single _.
  4. Prefix with vec_.