add TableInfo to ddb_types (which should be removed)

This commit is contained in:
Emil Lerch 2024-02-01 08:42:02 -08:00
parent ca213ea776
commit 614e2338e8
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -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,
};