<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id$ -->
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
	<!ENTITY firstname "Pierre">
	<!ENTITY surname   "Pronchery">
	<!ENTITY username  "khorben">
	<!ENTITY email     "khorben@defora.org">
	<!ENTITY section   "1">
	<!ENTITY title     "libDatabase User Manual">
	<!ENTITY package   "DeforaOS libDatabase">
	<!ENTITY name      "database">
	<!ENTITY purpose   "Generic tool to perform operations on databases">
]>
<refentry>
	<refentryinfo>
		<title>&title;</title>
		<date>@DATE@</date>
		<productname>&package;</productname>
		<authorgroup>
			<author>
				<firstname>&firstname;</firstname>
				<surname>&surname;</surname>
				<contrib>Code and documentation.</contrib>
				<address>
					<email>&email;</email>
				</address>
			</author>
		</authorgroup>
		<copyright>
			<year>2019</year>
			<holder>&firstname; &surname; &lt;&email;&gt;</holder>
		</copyright>
		<legalnotice>
			<para>This manual page was written for the DeforaOS project (and may be
				used by others).</para>
			<para>Permission is granted to copy, distribute and/or modify this
				document under the terms of the GNU General Public License,
				Version 3 as published by the Free Software Foundation.</para>
		</legalnotice>
	</refentryinfo>
	<refmeta>
		<refentrytitle>&name;</refentrytitle>
		<manvolnum>&section;</manvolnum>
	</refmeta>
	<refnamediv>
		<refname>&name;</refname>
		<refpurpose>&purpose;</refpurpose>
	</refnamediv>
	<refsynopsisdiv>
		<cmdsynopsis>
			<command>&name;</command>
			<arg choice="plain"><option>-d</option>
				<replaceable>engine</replaceable></arg>
			<arg choice="opt"><option>-C</option>
				<replaceable>configuration</replaceable>
				<arg choice="opt"><option>-S</option>
					<replaceable>section</replaceable></arg></arg>
			<arg choice="opt">query</arg>
		</cmdsynopsis>
	</refsynopsisdiv>
	<refsect1 id="description">
		<title>Description</title>
		<para><command>&name;</command> is a generic tool to perform operations on
			databases.</para>
	</refsect1>
	<refsect1 id="options">
		<title>Options</title>
		<para><command>&name;</command> expects the name of a database engine to be
			specified on the command line, optionally followed by the path to a
			connection file and the name of a section within that file.
			The following options are available:</para>
		<variablelist>
			<varlistentry>
				<term><option>-d</option></term>
				<listitem>
					<para>Name of the database engine.</para>
				</listitem>
			</varlistentry>
			<varlistentry>
				<term><option>-C</option></term>
				<listitem>
					<para>Connection file describing how to access the database.</para>
				</listitem>
			</varlistentry>
			<varlistentry>
				<term><option>-S</option></term>
				<listitem>
					<para>Name of a section to use in the connection file.</para>
				</listitem>
			</varlistentry>
		</variablelist>
	</refsect1>
	<refsect1 id="bugs">
		<title>Bugs</title>
		<para>Issues can be listed and reported at <ulink
				url="http://www.defora.org/os/project/bug_list/4317/libDatabase"/>.</para>
	</refsect1>
	<refsect1 id="see_also">
		<title>See also</title>
		<para>
			<citerefentry>
				<refentrytitle>configctl</refentrytitle>
				<manvolnum>1</manvolnum>
			</citerefentry>
		</para>
	</refsect1>
</refentry>
<!-- vim: set noet ts=1 sw=1 sts=1 tw=80: -->
