Skip to content
rustyrazorblade edited this page Mar 2, 2013 · 5 revisions

Properties

See the Titan type overview

Options

default

Numeric Types

Integer

thunderdome.Integer

Decimal

thunderdome.Decimal

Double

thunderdome.Double

Maps to a string in Titan

DateTime

thunderdome.DateTime

example:

Map to a double in Titan

Boolean

Text Types

UUID

String

Complex Types

Dictionary

List

Examples

Create a Human vertex, keeping track of the date we create it.

class Human(thunderdome.Vertex):
    name = thunderdome.String()
    date_created = thunderdome.DateTime(default=datetime.now)