orientdb 1.2.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +32 -0
- data/LICENSE +20 -0
- data/README.rdoc +88 -0
- data/Rakefile +58 -0
- data/bin/orientdb_console +23 -0
- data/lib/jars/blueprints-core-2.2.0-SNAPSHOT.jar +0 -0
- data/lib/jars/blueprints-orient-graph-2.2.0-SNAPSHOT.jar +0 -0
- data/lib/jars/orient-commons-1.2.0.jar +0 -0
- data/lib/jars/orientdb-client-1.2.0.jar +0 -0
- data/lib/jars/orientdb-core-1.2.0.jar +0 -0
- data/lib/jars/orientdb-distributed-1.2.0.jar +0 -0
- data/lib/jars/orientdb-enterprise-1.2.0.jar +0 -0
- data/lib/jars/orientdb-graphdb-1.2.0.jar +0 -0
- data/lib/jars/orientdb-server-1.2.0.jar +0 -0
- data/lib/jars/orientdb-tools-1.2.0.jar +0 -0
- data/lib/jars/pipes-2.0.0-SNAPSHOT.jar +0 -0
- data/lib/orientdb.rb +29 -0
- data/lib/orientdb/constants.rb +57 -0
- data/lib/orientdb/database.rb +167 -0
- data/lib/orientdb/document.rb +78 -0
- data/lib/orientdb/ext.rb +13 -0
- data/lib/orientdb/oclass.rb +141 -0
- data/lib/orientdb/property.rb +37 -0
- data/lib/orientdb/record.rb +18 -0
- data/lib/orientdb/rid.rb +46 -0
- data/lib/orientdb/schema.rb +33 -0
- data/lib/orientdb/sql.rb +18 -0
- data/lib/orientdb/sql/common.rb +247 -0
- data/lib/orientdb/sql/delete.rb +23 -0
- data/lib/orientdb/sql/ext.rb +249 -0
- data/lib/orientdb/sql/insert.rb +37 -0
- data/lib/orientdb/sql/query.rb +138 -0
- data/lib/orientdb/sql/update.rb +57 -0
- data/lib/orientdb/storage.rb +51 -0
- data/lib/orientdb/version.rb +3 -0
- data/orientdb.gemspec +96 -0
- data/spec/database_spec.rb +111 -0
- data/spec/document_spec.rb +99 -0
- data/spec/graph_spec.rb +39 -0
- data/spec/orientdb_spec.rb +10 -0
- data/spec/spec.opts +7 -0
- data/spec/spec_basic_helper.rb +25 -0
- data/spec/spec_helper.rb +68 -0
- data/spec/sql_spec.rb +839 -0
- data/spec/tinkerpop_graph_spec.rb +32 -0
- metadata +165 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
require File.expand_path("../spec_helper", __FILE__)
|
2
|
+
|
3
|
+
describe "OrientDB" do
|
4
|
+
|
5
|
+
describe "Graph Database" do
|
6
|
+
|
7
|
+
before do
|
8
|
+
@database = OrientDB::OrientGraph.new("local:#{TEST_DB_PATH}/graph").create
|
9
|
+
begin
|
10
|
+
@topper = @database.add_vertex(nil)
|
11
|
+
@topper.set_property("name", "Topper")
|
12
|
+
@ben = @database.add_vertex(nil)
|
13
|
+
@ben.set_property("name", "Ben")
|
14
|
+
@topper_knows_ben = @database.add_edge(null, @topper, @ben, "knows")
|
15
|
+
@database.stop_transaction(Conclusion.SUCCESS)
|
16
|
+
rescue
|
17
|
+
@database.stop_transaction(Conclusion.FAILURE)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
after do
|
22
|
+
if @database
|
23
|
+
@database.drop
|
24
|
+
@database.close
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: orientdb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 1.2.0
|
6
|
+
platform: java
|
7
|
+
authors:
|
8
|
+
- Adrian Madrid
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-11-13 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ! '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '2.4'
|
21
|
+
none: false
|
22
|
+
requirement: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.4'
|
27
|
+
none: false
|
28
|
+
prerelease: false
|
29
|
+
type: :development
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: awesome_print
|
32
|
+
version_requirements: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ! '>='
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: !binary |-
|
37
|
+
MA==
|
38
|
+
none: false
|
39
|
+
requirement: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: !binary |-
|
44
|
+
MA==
|
45
|
+
none: false
|
46
|
+
prerelease: false
|
47
|
+
type: :development
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: bundler
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.0.0
|
55
|
+
none: false
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 1.0.0
|
61
|
+
none: false
|
62
|
+
prerelease: false
|
63
|
+
type: :development
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: jeweler
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.8.3
|
71
|
+
none: false
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.8.3
|
77
|
+
none: false
|
78
|
+
prerelease: false
|
79
|
+
type: :development
|
80
|
+
description: Simple JRuby wrapper for the OrientDB.
|
81
|
+
email: aemadrid@gmail.com
|
82
|
+
executables:
|
83
|
+
- orientdb_console
|
84
|
+
extensions: []
|
85
|
+
extra_rdoc_files:
|
86
|
+
- LICENSE
|
87
|
+
- README.rdoc
|
88
|
+
files:
|
89
|
+
- .document
|
90
|
+
- Gemfile
|
91
|
+
- Gemfile.lock
|
92
|
+
- LICENSE
|
93
|
+
- README.rdoc
|
94
|
+
- Rakefile
|
95
|
+
- bin/orientdb_console
|
96
|
+
- lib/jars/blueprints-core-2.2.0-SNAPSHOT.jar
|
97
|
+
- lib/jars/blueprints-orient-graph-2.2.0-SNAPSHOT.jar
|
98
|
+
- lib/jars/orient-commons-1.2.0.jar
|
99
|
+
- lib/jars/orientdb-client-1.2.0.jar
|
100
|
+
- lib/jars/orientdb-core-1.2.0.jar
|
101
|
+
- lib/jars/orientdb-distributed-1.2.0.jar
|
102
|
+
- lib/jars/orientdb-enterprise-1.2.0.jar
|
103
|
+
- lib/jars/orientdb-graphdb-1.2.0.jar
|
104
|
+
- lib/jars/orientdb-server-1.2.0.jar
|
105
|
+
- lib/jars/orientdb-tools-1.2.0.jar
|
106
|
+
- lib/jars/pipes-2.0.0-SNAPSHOT.jar
|
107
|
+
- lib/orientdb.rb
|
108
|
+
- lib/orientdb/constants.rb
|
109
|
+
- lib/orientdb/database.rb
|
110
|
+
- lib/orientdb/document.rb
|
111
|
+
- lib/orientdb/ext.rb
|
112
|
+
- lib/orientdb/oclass.rb
|
113
|
+
- lib/orientdb/property.rb
|
114
|
+
- lib/orientdb/record.rb
|
115
|
+
- lib/orientdb/rid.rb
|
116
|
+
- lib/orientdb/schema.rb
|
117
|
+
- lib/orientdb/sql.rb
|
118
|
+
- lib/orientdb/sql/common.rb
|
119
|
+
- lib/orientdb/sql/delete.rb
|
120
|
+
- lib/orientdb/sql/ext.rb
|
121
|
+
- lib/orientdb/sql/insert.rb
|
122
|
+
- lib/orientdb/sql/query.rb
|
123
|
+
- lib/orientdb/sql/update.rb
|
124
|
+
- lib/orientdb/storage.rb
|
125
|
+
- lib/orientdb/version.rb
|
126
|
+
- orientdb.gemspec
|
127
|
+
- spec/database_spec.rb
|
128
|
+
- spec/document_spec.rb
|
129
|
+
- spec/graph_spec.rb
|
130
|
+
- spec/orientdb_spec.rb
|
131
|
+
- spec/spec.opts
|
132
|
+
- spec/spec_basic_helper.rb
|
133
|
+
- spec/spec_helper.rb
|
134
|
+
- spec/sql_spec.rb
|
135
|
+
- spec/tinkerpop_graph_spec.rb
|
136
|
+
homepage: http://github.com/aemadrid/orientdb-jruby
|
137
|
+
licenses: []
|
138
|
+
post_install_message:
|
139
|
+
rdoc_options: []
|
140
|
+
require_paths:
|
141
|
+
- lib
|
142
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ! '>='
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
segments:
|
147
|
+
- 0
|
148
|
+
hash: 2
|
149
|
+
version: !binary |-
|
150
|
+
MA==
|
151
|
+
none: false
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - ! '>='
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: !binary |-
|
157
|
+
MA==
|
158
|
+
none: false
|
159
|
+
requirements: []
|
160
|
+
rubyforge_project:
|
161
|
+
rubygems_version: 1.8.24
|
162
|
+
signing_key:
|
163
|
+
specification_version: 3
|
164
|
+
summary: Simple JRuby wrapper for the OrientDB.
|
165
|
+
test_files: []
|