orient db installation and how it works
TRANSCRIPT
#1 Download OrientDb and and Unzip at C:/ drive.
#2 After that check C:/program files/java/jre*.*.*/ Version available. If not
than install jdk + jre
#3 Check C:/program files/java/jre*.*.*/server/jvm.dll file available if
not than create folder and copy their file
#4 Now open server.bat and type password first time . Open console.bat
file and type command their. [ .bat file for Window and .sh file for Linux ]
#5 Command :
Create database
create database plocal:/usr/local/db/ <!— Valid Path
create database remote:localhost/DBName UserName Password plocal
Create class
create class name
classes <!-- see class here with record - ->
info class ClassName <!—- Particular class info -->
Create property
create property className.name string
Update Property
alter property className.name string
InsertData Query
insert into ClassName(name , surname, birthDate) values ('Gunjan',
'Patel' , '05/08/1993') oR
insert into Gunjan set name='gunjan', surname='patel',
birthDate='12/5/1991' oR
insert into Gunjan content { name : 'gunjan', surname : 'patel',
birthDate : '12/5/1991' }
Select Query or Find
select from Gunjan where name = ‘Gunjan’ oR
select from Gunjan where name like ‘Gunjan’
{
where gender = 'male' order by surname asc, order by @rid desc where age < 40 group by job
where gender = 'male' limit 20 where gender = 'male' skip 40 limit 20
}
Update Query
update Gunjan set surname = 'Rathod' where name = 'gunjan'
oR
update Employee merge { local : true } where city = 'London'
Delete
delete from someclass where string1 = 'foo'
Distinct
SELECT DISTINCT(name) FROM City
Distinct
SELECT count(name) FROM City
For more details Visit :
https://github.com/codemix/oriento
http://www.orientechnologies.com/docs/last/orientdb.wiki/Tutorial-
Run-the-console.html