From 614e2338e8a15a718226e2b4d33847fe679cb568 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Thu, 1 Feb 2024 08:42:02 -0800 Subject: [PATCH] add TableInfo to ddb_types (which should be removed) --- src/ddb_types.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ddb_types.zig b/src/ddb_types.zig index 7e86bc9..2485444 100644 --- a/src/ddb_types.zig +++ b/src/ddb_types.zig @@ -1,3 +1,5 @@ +const encryption = @import("encryption.zig"); + pub const AttributeTypeDescriptor = enum(u4) { S = 0, N = 1, @@ -28,3 +30,11 @@ pub const AttributeDefinition = struct { name: []const u8, type: AttributeTypeDescriptor, }; + +pub const TableInfo = struct { + attribute_definitions: []*const AttributeDefinition, + // gsi_list: []const u8, // Not sure how this is used + // gsi_description_list: []const u8, // Not sure how this is used + // sqlite_index: []const u8, // Not sure how this is used + table_key: [encryption.encoded_key_length]u8, +};