From: nishi Date: Sat, 18 May 2024 09:21:48 +0000 (+0000) Subject: check database X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=184ed3e6065544ea456df15a9a3f9dc721996b57;p=dataworks.git check database git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@26 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Client/main.c b/Client/main.c index 589f41e..1f241f0 100644 --- a/Client/main.c +++ b/Client/main.c @@ -112,9 +112,16 @@ int main(int argc, char** argv) { } } printf("\n"); + printf("Opening the database: %s\n", fname); + struct dataworks_db* db = dataworks_database_open(fname); + if(db == NULL) { + printf("Bad database file or non-existent.\n"); + return 1; + } + printf("Opened the database.\n"); + printf("\n"); printf("Type a command (.help) for the help\n"); printf("\n"); - __dw_big_endian(123, double, ); int len = 0; char* buf = malloc(1); buf[0] = 0;