Global Database
Global Database
I was thinking about implementing a database that contained all sorts of data like the Windows Registry. How could i make this database available to all apps that would run on my OS?
Re:Global Database
Well, you could store the database in a well known place (e.g. "/database" or "C:\System\DataBase32"). Every app could then OPEN this file.
Re:Global Database
i want to put this data in memory because disk is too slow....but how would an APP know how to reference the data..?
Re:Global Database
make an public API that your apps call..
or use interbase, and have your apps link against the interbase library
or use interbase, and have your apps link against the interbase library
-- Stu --
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Global Database
What i have is:slacker wrote: i want to put this data in memory because disk is too slow....but how would an APP know how to reference the data..?
Code: Select all
lookup(<location>.*) --> returns an enumeration of all the keys under <location>
lookup(<location>.<key>) --> returns the value of a key
register(<location>.<key>,<value>) --> adds the key, value pair in the DB.