pub async fn insert(
pool: &PgPool,
source_version_id: Uuid,
parent_node_id: Option<Uuid>,
kind: NodeKind,
name: &str,
order_index: i32,
) -> Result<Uuid>Expand description
Insert a node, returning the newly-minted id.
ยงErrors
Returns crate::error::StoreError::ForeignKeyViolation if
source_version_id or parent_node_id are unknown.