Search
ctrl/
Ask AI
Light
Dark
System

Datatypes

The Java binding maps the following EdgeDB types to corresponding JVM types:

EdgeDB Type

JVM Type

Set

Collection<T>

array

T[]

anytuple

com.edgedb.driver.datatypes.Tuple

anyenum

enum

Object

Object

bool

boolean

bytes

byte[]

str

String

cal::local_date

java.time.LocalDate

cal::local_time

java.time.LocalTime

cal::local_datetime

java.time.LocalDateTime

cal::relative_duration

com.edgedb.driver.datatypes.RelativeDuration [1]

datetime

java.time.OffsetDateTime [2]

duration

java.time.Duration

float32

float

float64

double

int16

short

int32

int

int64

long

bigint

java.math.BigInteger

decimal

java.math.BigDecimal

json

com.edgedb.driver.datatypes.Json

uuid

UUID

range()

com.edgedb.driver.datatypes.Range

[1] Period and Duration are implicitly converted to and from RelativeDuration.

[2] Both java.time.OffsetDateTime and java.time.ZonedDateTime are compatable.