Пример #1
0
class DeserializationTestModel(Vertex):
    count = properties.Integer()
    text = properties.Text()

    gremlin_path = 'deserialize.groovy'

    get_map = gremlin.GremlinValue()
    get_list = gremlin.GremlinMethod()
Пример #2
0
class GroovyTestModel(Vertex):
    text = properties.Text()
    get_self = gremlin.GremlinMethod()
    cm_get_self = gremlin.GremlinMethod(method_name='get_self',
                                        classmethod=True)

    return_default = gremlin.GremlinValue(method_name='return_value',
                                          defaults={'val': lambda: 5000})
    return_list = gremlin.GremlinValue(property=1)
    return_value = gremlin.GremlinValue()

    arg_test1 = gremlin.GremlinValue()
    arg_test2 = gremlin.GremlinValue()
Пример #3
0
class TestPModel(PaginatedVertex):
    count   = properties.Integer()
    text    = properties.Text(required=False)
Пример #4
0
class TestModel(Vertex):
    count   = properties.Integer()
    text    = properties.Text(required=False)
Пример #5
0
class DBFieldEdge(Edge):
    text = properties.Text(db_field='edge_text')
Пример #6
0
class DBFieldVertex(Vertex):
    text = properties.Text(db_field='vertex_text')
Пример #7
0
 class TestIndexCreationCallTestVertex2(Vertex):
     col1 = properties.Text()
     col2 = properties.Text(db_field='____column')
Пример #8
0
 class TestIndexCreationCallTestVertex(Vertex):
     col1 = properties.Text(index=True)
     col2 = properties.Text(index=True, db_field='____column')
     col3 = properties.Text(db_field='____column3')
Пример #9
0
class AliasedTestModel(Vertex):
    count = properties.Integer(db_field='how_many')
    text = properties.Text()
Пример #10
0
class OtherTestModel(Vertex):
    count = properties.Integer()
    text = properties.Text()
Пример #11
0
class TaughtBy(Edge):
    overall_mood = properties.Text(default='Grumpy')
Пример #12
0
class Course(Vertex):
    name = properties.Text()
    credits = properties.Decimal()
Пример #13
0
class Person(Vertex):
    name = properties.Text()
    age = properties.Integer()
 class BadNames(Vertex):
     words = properties.Text()
     content = properties.Text(db_field='words')
class WildDBNames(Vertex):
    content = properties.Text(db_field='words_and_whatnot')
    numbers = properties.Integer(db_field='integers_etc')