Type alias InferTablePrimaryKey<T>
InferTablePrimaryKey<T>: T extends CreateTableDefinition ? InferTablePKFromDefinition<T> : T extends ((..._) => Promise<Table<any, infer PKey, any>>) ? PKey : T extends ((..._) => Table<any, infer PKey, any>) ? PKey : T extends Promise<Table<any, infer PKey, any>> ? PKey : T extends Table<any, infer PKey, any> ? PKey : never
Automagically extracts a table's primary key from some Table-like type, most useful when performing a
Db.createTable (or Table.alter) operation.
See InferTableSchema for more information & examples.