blob: fabf0f3fad918730e876e7bab2563270874ecd63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
README for db-manager
db-manager is a tool for creating, updating and removing databases by the
package manager through a distributions packaging mechanism (currently
tested on RPM packages).
Currently supports creation of the following database types:
sqlite
To build and run, use the standard autotools workflow like:
./configure
make
sudo make install
===========================================================================
The tool takes an xml file of the following format:
<database>
<dbtype>sqlite3</dbtype>
<name>.libaccounts-svc</name>
<path>/opt/dbspace</path>
<options>
<uid>5000</uid>
<gid>5000</gid>
<permissions>600</permissions>
<smacklabel>libaccounts-svc</smacklabel>
<queryfile>/fullpath/to/db-command-file</queryfile>
</options>
</database>
And it will create, update or remove the database depending on the
options given to the tool.
Note that the queryfile should be a file containing sql (or whatever
your database uses) commands to create or modify the database as intended.
The example.xml and example.sql files are intended to work as is (aside
from the example.sql file needs to be copied to /tmp/example.sql).
|