SQCloudUUID

const char *SQCloudUUID (SQCloudConnection *connection);

Description

The SQCloudUUID function returns the unique client UUID value.

Parameters

Return value

A NULL terminated string that contains the unique client UUID value.

Example

int main (int argc, const char * argv[]) {
    // setup config
    SQCloudConfig config = {0};
    config.username = "myusername";
    config.password = "mypassword"

    SQCloudConnection *conn = SQCloudConnect("myproject.sqlite.cloud", SQCLOUD_DEFAULT_PORT, &config);
    if (SQCloudIsError(conn)) {
        printf("ERROR connecting: %s (%d)\n", SQCloudErrorMsg(conn), SQCloudErrorCode(conn));
        return -1;
    } else {
        printf("Connection to host OK...\n\n");
    }

    const char *UUID = SQCloudUUID(conn);
    printf("%s\n", UUID);
}