Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can Gedae access a database using primitives?

database Gedae primitives
0
Posted

How can Gedae access a database using primitives?

0

Discussion For purposes of discussion we assume that the database can be accessed from a C program by an API provided with the database. We also assume that the API has the following functions: DataBase openDataBase(char *database_name); void addRecord(DataBase db, char *name, void *data); void *getRecord(DataBase db, char *name); void deleteRecord(DataBase db, char *name); Which are prototyped in include file database.h The openDataBase command gets a DataBase handle to the database named in the argument. The function addRecord adds a named record to the database by copying size bytes from the pointer “data”. The records can be retrieved by name using the getRecord command, and the records can be deleted from the database by name using the deleteRecord command. This is not intended to be an exhaustive list of database functions but it will show how such database access can be achieved in Gedae. Solution A developer can design a set of database access primitives that add records to the

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123