[gremlin] Modularize into namespaces (#35761)

This commit is contained in:
Matt 2019-05-29 03:42:54 +09:00 committed by Sheetal Nandi
parent f5d41d7eeb
commit 035ef670e2
2 changed files with 517 additions and 501 deletions

View File

@ -1,4 +1,10 @@
import {
driver,
process,
structure,
} from "gremlin";
const {
RemoteConnection,
RemoteStrategy,
RemoteTraversal,
@ -7,12 +13,14 @@ import {
ResultSet,
Authenticator,
PlainTextSaslAuthenticator,
} = driver;
const {
Bytecode,
EnumValue,
P,
TextP,
Traversal,
Graph,
TraversalStrategies,
TraversalSideEffects,
TraversalStrategy,
@ -21,16 +29,6 @@ import {
GraphTraversalSource,
Translator,
AnonymousTraversalSource,
Element,
GraphSONReader,
GraphSONWriter,
Edge,
Vertex,
VertexProperty,
Path,
Property,
Long,
toLong,
barrier,
cardinality,
column,
@ -43,8 +41,22 @@ import {
pop,
scope,
t,
statics
} from "gremlin";
statics,
} = process;
const {
Graph,
Element,
GraphSONReader,
GraphSONWriter,
Edge,
Vertex,
VertexProperty,
Path,
Property,
Long,
toLong,
} = structure;
function constructorTests() {
const remoteConnection = new RemoteConnection("test");

File diff suppressed because it is too large Load Diff