Light
Dark
System
v3latest
v3latest
v2
v1

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.

Light
Dark
System

We use ChatGPT with additional context from our documentation to answer your questions. Not all answers will be accurate. Please join our Discord if you need more help.