]> Nishi Git Mirror - dataworks.git/commitdiff
check database
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Sat, 18 May 2024 09:21:48 +0000 (09:21 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Sat, 18 May 2024 09:21:48 +0000 (09:21 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@26 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Client/main.c

index 589f41e2c0abce1dd0b42a6f03fab42ddde14604..1f241f08be689fc58789fca320b990d066420c1a 100644 (file)
@@ -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;