Статьи


OrientDB

Создаем классы:

create class Person extends V //Vertex
create class WorksAt extends E //Edge


Создаем свойства:

create property Person.firstName string //property name:firstName type:string
create property Person.lastName string


Вставка:

insert into Person (firstName, lastName) values ("John", "Boui"), ("Gary", "Moor"), ("Santa", "Klaus")
insert into Company set name = "Umbrella"



Выборка:

select from V