Skip to main content

resolve_object_id

Function resolve_object_id 

Source
pub fn resolve_object_id(
    parts: &[String],
    file_uri: &Url,
    root: &Path,
) -> Option<ObjectId>
Expand description

Resolve identifier parts to an ObjectId using the file’s path context.

Derives the default database/schema from the file’s path relative to the project root (expects models/<database>/<schema>/ structure), then constructs an ObjectId using 1/2/3-part name resolution.