Skip to main content

SchemaChange

Enum SchemaChange 

Source
pub enum SchemaChange {
Show 22 variants GraphCreated { id: GraphId, name: DbString, graph_type: Option<GraphTypeId>, }, GraphDropped { id: GraphId, }, GraphTypeCreated { graph_type: GraphType, }, GraphTypeDropped { id: GraphTypeId, }, NodeTypeAdded { graph_type: GraphTypeId, label: DbString, def: NodeTypeDefV1, }, EdgeTypeAdded { graph_type: GraphTypeId, label: DbString, def: EdgeTypeDefV1, }, NodeTypeDropped { graph_type: GraphTypeId, name: DbString, }, EdgeTypeDropped { graph_type: GraphTypeId, name: DbString, }, RecordTypeAdded { graph_type: GraphTypeId, def: RecordTypeDef, }, PropertyIndexCreated { label: DbString, property: DbString, kind: SchemaPropertyIndexKind, }, PropertyIndexDropped { label: DbString, property: DbString, }, PropertyIndexCreatedNamed { label: DbString, property: DbString, kind: SchemaPropertyIndexKind, name: Option<DbString>, }, NodeTypeAddedV2 { graph_type: GraphTypeId, label: DbString, def: NodeTypeDef, }, EdgeTypeAddedV2 { graph_type: GraphTypeId, label: DbString, def: EdgeTypeDef, }, CompositePropertyIndexCreated { label: DbString, properties: SmallVec<[DbString; 4]>, kinds: SmallVec<[SchemaPropertyIndexKind; 4]>, name: Option<DbString>, }, CompositePropertyIndexDropped { label: DbString, properties: SmallVec<[DbString; 4]>, }, VectorIndexCreated { label: DbString, property: DbString, kind: SchemaVectorIndexKind, dimension: u32, name: Option<DbString>, hnsw_config: Option<HnswIndexConfig>, ivf_config: Option<IvfIndexConfig>, }, VectorIndexDropped { label: DbString, property: DbString, }, TextIndexCreated { label: DbString, property: DbString, name: Option<DbString>, }, TextIndexDropped { label: DbString, property: DbString, }, EdgePropertyIndexCreated { label: DbString, property: DbString, kind: SchemaPropertyIndexKind, name: Option<DbString>, }, EdgePropertyIndexDropped { label: DbString, property: DbString, },
}
Expand description

Schema change payload.

Variants§

§

GraphCreated

Graph creation.

Fields

§id: GraphId

Created graph ID.

§name: DbString

Graph name.

§graph_type: Option<GraphTypeId>

Optional graph type assigned at creation.

§

GraphDropped

Graph deletion.

Fields

§id: GraphId

Dropped graph ID.

§

GraphTypeCreated

Graph type creation.

Fields

§graph_type: GraphType

Created graph type definition.

§

GraphTypeDropped

Graph type deletion.

Fields

§id: GraphTypeId

Dropped graph type ID.

§

NodeTypeAdded

Node type addition.

Fields

§graph_type: GraphTypeId

Owning graph type.

§label: DbString

Node type label.

§def: NodeTypeDefV1

Legacy node type definition.

§

EdgeTypeAdded

Edge type addition.

Fields

§graph_type: GraphTypeId

Owning graph type.

§label: DbString

Edge type label.

§def: EdgeTypeDefV1

Legacy edge type definition.

§

NodeTypeDropped

Node type deletion.

Fields

§graph_type: GraphTypeId

Owning graph type.

§name: DbString

Dropped node type name.

§

EdgeTypeDropped

Edge type deletion.

Fields

§graph_type: GraphTypeId

Owning graph type.

§name: DbString

Dropped edge type name.

§

RecordTypeAdded

Record type addition.

Fields

§graph_type: GraphTypeId

Owning graph type.

§def: RecordTypeDef

Record type definition.

§

PropertyIndexCreated

Property index creation.

Fields

§label: DbString

Indexed node label.

§property: DbString

Indexed property key.

§kind: SchemaPropertyIndexKind

Declared index value kind.

§

PropertyIndexDropped

Property index deletion.

Fields

§label: DbString

Indexed node label.

§property: DbString

Indexed property key.

§

PropertyIndexCreatedNamed

Property index creation with optional explicit catalog name.

Declared after every existing v1.1 variant so the postcard discriminants of all earlier variants remain stable. Old WALs continue to decode through SchemaChange::PropertyIndexCreated.

Fields

§label: DbString

Indexed node label.

§property: DbString

Indexed property key.

§kind: SchemaPropertyIndexKind

Declared index value kind.

§name: Option<DbString>

Optional explicit catalog name.

§

NodeTypeAddedV2

Node type addition carrying v2 type-model fields.

Declared after every existing v1.1 variant so the postcard discriminants of all earlier variants remain stable. New code emits this variant; old WALs continue to decode through SchemaChange::NodeTypeAdded.

Fields

§graph_type: GraphTypeId

Owning graph type.

§label: DbString

Node type label.

§def: NodeTypeDef

Node type definition.

§

EdgeTypeAddedV2

Edge type addition carrying v2 type-model fields.

Declared after every existing v1.1 variant so the postcard discriminants of all earlier variants remain stable. New code emits this variant; old WALs continue to decode through SchemaChange::EdgeTypeAdded.

Fields

§graph_type: GraphTypeId

Owning graph type.

§label: DbString

Edge type label.

§def: EdgeTypeDef

Edge type definition.

§

CompositePropertyIndexCreated

Composite property index creation with optional explicit catalog name.

Declared after every existing v1.1 variant so the postcard discriminants of all earlier variants remain stable.

Fields

§label: DbString

Indexed node label.

§properties: SmallVec<[DbString; 4]>

Indexed property keys in declaration order.

§kinds: SmallVec<[SchemaPropertyIndexKind; 4]>

Declared index value kinds in declaration order.

§name: Option<DbString>

Optional explicit catalog name.

§

CompositePropertyIndexDropped

Composite property index deletion.

Declared after every existing v1.1 variant so the postcard discriminants of all earlier variants remain stable.

Fields

§label: DbString

Indexed node label.

§properties: SmallVec<[DbString; 4]>

Indexed property keys in declaration order.

§

VectorIndexCreated

Vector property index creation with optional explicit catalog name.

Declared after every existing v1.1 variant so the postcard discriminants of all earlier variants remain stable.

Fields

§label: DbString

Indexed node label.

§property: DbString

Indexed vector property key.

§kind: SchemaVectorIndexKind

Declared vector index algorithm.

§dimension: u32

Required vector dimensionality for indexed rows.

§name: Option<DbString>

Optional explicit catalog name.

§hnsw_config: Option<HnswIndexConfig>

Optional HNSW construction parameters.

§ivf_config: Option<IvfIndexConfig>

Optional IVF construction parameters.

§

VectorIndexDropped

Vector property index deletion.

Declared after every existing v1.1 variant so the postcard discriminants of all earlier variants remain stable.

Fields

§label: DbString

Indexed node label.

§property: DbString

Indexed vector property key.

§

TextIndexCreated

Text property index creation with optional explicit catalog name.

Declared after every existing v1.1 variant so the postcard discriminants of all earlier variants remain stable.

Fields

§label: DbString

Indexed node label.

§property: DbString

Indexed string property key.

§name: Option<DbString>

Optional explicit catalog name.

§

TextIndexDropped

Text property index deletion.

Declared after every existing v1.1 variant so the postcard discriminants of all earlier variants remain stable.

Fields

§label: DbString

Indexed node label.

§property: DbString

Indexed string property key.

§

EdgePropertyIndexCreated

Edge property index creation with optional explicit catalog name.

Declared after every existing variant so the postcard discriminants of all earlier variants remain stable.

Fields

§label: DbString

Indexed edge label.

§property: DbString

Indexed edge property key.

§kind: SchemaPropertyIndexKind

Declared index value kind.

§name: Option<DbString>

Optional explicit catalog name.

§

EdgePropertyIndexDropped

Edge property index deletion.

Declared after every existing variant so the postcard discriminants of all earlier variants remain stable.

Fields

§label: DbString

Indexed edge label.

§property: DbString

Indexed edge property key.

Implementations§

Source§

impl SchemaChange

Source

pub const ALL: &[fn() -> Self]

Factory table with one sample change for each SchemaChange variant.

Hidden legacy variants are included because their postcard discriminants are reserved for WAL compatibility.

Source

pub const VARIANT_COUNT: usize

Number of known SchemaChange variants in this build.

Source

pub fn variant_name(&self) -> &'static str

Stable telemetry name for this schema-change variant.

Trait Implementations§

Source§

impl Clone for SchemaChange

Source§

fn clone(&self) -> SchemaChange

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SchemaChange

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SchemaChange

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for SchemaChange

Source§

fn eq(&self, other: &SchemaChange) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for SchemaChange

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SchemaChange

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.