图库help查看

最近更新时间:2024-01-09 17:36:01

我的收藏
本文为您介绍在 KonisGraph 实例通过 gremlin-console 如何获取帮助。
gremlin> s.help()
==>usage:
s.list(): show all meta
s.P(): show all properties meta
s.V(): show all vertices meta
s.E(): show all edges meta
s.addP(name, datatype, defaultValue): create property meta s.addP("call_time","T_LONG","0"), datatype support:[T_INT, T_LONG, T_DOUBLE, T_FLOAT, T_SHORT, T_STRING]
s.updateP(name, defaultValue): update property meta s.updateP("addr","beijing")
s.addV(name, primarykey, properties): create vertex meta s.addV("phone","id",["name"])
s.addVP(name, properties): add vertex props s.addVP("phone",["addr"])
s.addE(name, subject, object, properties): create edge meta s.addE("call","phone","phone",["call_time"])
s.addEP(name, properties): add edge props s.addEP("call",["addr"])
s.dropP(name): drop property meta s.dropP("call_time")
s.dropV(name): drop vertex meta s.dropV("phone")
s.dropE(name): drop edge meta s.dropE("call")
s.dropVP(name, properties): drop Vproperty props s.dropVP("phone",["addr"])
s.dropEP(name, properties): drop property props s.dropEP("call",["phone"])
s.alias(meta_type, name, value): set alias info s.alias("Graph","modern","tinker_modern"), meta_type support:[Graph, Property, Vertex, Edge]
s.comment(meta_type, name, value): set comment info s.comment("Graph","modern","tinkerpop modern graph"), meta_type support:[Graph, Property, Vertex, Edge]