OxL Reference

method Ref.isLoaded

Was the row loaded by load(..)?

Example:

oxl✓ checked in CI
use std.orm { Ref, ref }

fn describe<T>(r: &Ref<T>) -> str {
  if r.isLoaded() { "loaded" } else { "only the id" }
}
pub(api) fn isLoaded() -> bool

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

Defined in: std/orm/orm.oxl:134

See also