Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions wit/rdbms-types.wit
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ interface rdbms-types {
floating64,
str,
binary,
date,
time,
datetime,
timestamp,
other,
}

Expand All @@ -41,6 +45,10 @@ interface rdbms-types {
floating64(float64),
str(string),
binary(list<u8>),
date(tuple<s32, u8, u8>), // (year, month, day)
time(tuple<u8, u8, u8, u32>), // (hour, minute, second, nanosecond)
datetime(tuple<s32, u8, u8, u8, u8, u8, u32>), // (year, month, day, hour, minute, second, nanosecond)
timestamp(s64), // Unix timestamp (seconds since epoch)
db-null,
unsupported,
}
Expand All @@ -60,6 +68,10 @@ interface rdbms-types {
floating64(float64),
str(string),
binary(list<u8>),
date(tuple<s32, u8, u8>), // (year, month, day)
time(tuple<u8, u8, u8, u32>), // (hour, minute, second, nanosecond)
datetime(tuple<s32, u8, u8, u8, u8, u8, u32>), // (year, month, day, hour, minute, second, nanosecond)
timestamp(s64), // Unix timestamp (seconds since epoch)
db-null,
}

Expand Down