Rename the DB things.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3656 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-08-22 19:41:27 +00:00
parent e922af4c55
commit cfd5341a6b
9 changed files with 41 additions and 46 deletions

View File

@ -1,5 +1,6 @@
#include "ssb.import.h"
#include "ssb.db.h"
#include "ssb.h"
#include <stdlib.h>
@ -33,7 +34,7 @@ static void _tf_ssb_import_file_read(uv_fs_t* req)
tf_import_file_t* file = req->data;
char id[k_id_base64_len];
if (req->result >= 0) {
if (tf_ssb_blob_store(file->ssb, (const uint8_t*)file->data, req->result, id, sizeof(id))) {
if (tf_ssb_db_blob_store(file->ssb, (const uint8_t*)file->data, req->result, id, sizeof(id))) {
printf("Stored %s/%s as %s.\n", file->parent, file->name, id);
if (strcasecmp(file->name + strlen(file->name) - strlen(".json"), ".json") == 0) {
sqlite3_stmt* statement;