ex_orient v0.1.2 ExOrient.DB.Schema
Schema command bindings
Summary
Functions
Alter class command
Alter property command
Create a class command
Create property command
Drop class command
Drop property command
Functions
Alter class command
> ExOrient.DB.alter(class: Cow, attr: "SUPERCLASS Animal")
nil
Alter property command
> ExOrient.DB.alter(property: "Car.model", attr: "MANDATORY true")
nil
Create a class command
> ExOrient.DB.create(class: Vehicle, abstract: true)
17
> ExOrient.DB.create(class: Car, extends: Vehicle)
18
Create property command
> ExOrient.DB.create(property: "Car.make", type: :string)
1
> ExOrient.DB.create(property: "Car.model", type: :string)
2