-
-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
Description
Found myself using this pattern to quickly prototype a schema:
import sqlite_utils
db = sqlite_utils.Database(memory=True)
print(db["answers_chunks"].create({
"id": int,
"content": str,
"embedding_type_id": int,
"embedding": bytes,
"embedding_content_md5": str,
"source": str,
}, pk="id", transform=True).schema)
Using replace=True
to drop and then recreate the table would be neat here, and would be consistent with other places that use replace=True
.