1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
>Database directories</TITLE
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
10
TITLE="Database Independent Abstraction Layer for C"
11
HREF="index.html"><LINK
13
TITLE="Driver Infrastructure"
14
HREF="driverinfrastructure.html"><LINK
16
TITLE="Driver Capabilities"
17
HREF="drivercaps.html"><LINK
20
HREF="driverdata.html"></HEAD
31
SUMMARY="Header navigation table"
40
>Database Independent Abstraction Layer for C: libdbi Driver Author's Guide</TH
48
HREF="drivercaps.html"
56
>Chapter 2. Driver Infrastructure</TD
62
HREF="driverdata.html"
76
NAME="DATABASEDIRECTORIES"
77
>2.2. Database directories</A
80
>Many database engines use database directories which they manage themselves. Other engines, like sqlite, sqlite3, or firebird, allow the database user to store database files basically anywhere on the filesystem. Drivers of such engines should follow some guidelines to make database operations as transparent as possible across all drivers. In order to allow e.g. listing available databases, most applications should keep all databases managed by such a driver in the same directory.</P
86
NAME="DEFAULTDATABASEDIRECTORIES"
87
>2.2.1. Default Database Directories</A
90
>libdbi-drivers uses a common root directory (<TT
92
><localstatedir>/lib/libdbi</TT
93
>) containing homonymous subdirectories for each driver as a default database path. If nothing else is specified (see <A
94
HREF="databasedirectories.html#CUSTOMDATABASEDIRECTORIES"
96
>), databases will be created and accessed in these subdirectories. Using different subdirectories for each driver makes switching between drivers painless without having to re-create database files from scratch.</P
98
>Users can change the compile-time default root directory using the <CODE
100
>--with-dbi-dbdir</CODE
101
> option when configuring libdbi-drivers.</P
108
NAME="CUSTOMDATABASEDIRECTORIES"
109
>2.2.2. Custom Database Directories</A
112
>In order to allow applications to store databases outside of the default directory if desired, a driver should implement a <drivername>_dbdir option which overrides the default database path in a connection.</P
120
SUMMARY="Footer navigation table"
131
HREF="drivercaps.html"
149
HREF="driverdata.html"
159
>Driver Capabilities</TD
165
HREF="driverinfrastructure.html"
b'\\ No newline at end of file'