2 Bacula® - The Network Backup Solution
3 Copyright (C) 2009-2010 Free Software Foundation Europe e.V.
4 The main author of Bacula is Kern Sibbald, with contributions from
5 many others, a complete list can be found in the file AUTHORS.
6 This program is Free Software; you can redistribute it and/or
7 modify it under the terms of version three of the GNU Affero General Public
8 License as published by the Free Software Foundation and included
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14 You should have received a copy of the GNU Affero General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 Bacula® is a registered trademark of Kern Sibbald.
19 The licensor of Bacula is the Free Software Foundation Europe
20 (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
21 Switzerland, email:ftf@fsfeurope.org.
30 typedef struct ing_timestamp {
39 typedef struct ing_field {
43 unsigned int flags; /* 1 == not null */
45 typedef struct ing_row {
46 IISQLVAR *sqlvar; /* ptr to sqlvar[sqld] for one row */
50 typedef enum ing_status {
54 ING_NO_ROWS_PROCESSED,
58 typedef struct ing_varchar {
62 /* It seems, Bacula needs the complete query result stored in one data structure */
63 typedef struct ing_result {
64 IISQLDA *sqlda; /* descriptor */
70 ING_ROW *act_row; /* just for iterating */
72 typedef struct ing_conn {
79 /* ---Prototypes--- */
80 int INGgetCols(INGconn *dbconn, const char *query, bool transaction);
81 char *INGgetvalue(INGresult *ing_res, int row_number, int column_number);
82 bool INGgetisnull(INGresult *ing_res, int row_number, int column_number);
83 int INGntuples(const INGresult *ing_res);
84 int INGnfields(const INGresult *ing_res);
85 char *INGfname(const INGresult *ing_res, int column_number);
86 short INGftype(const INGresult *ing_res, int column_number);
87 int INGexec(INGconn *dbconn, const char *query, bool transaction);
88 INGresult *INGquery(INGconn *dbconn, const char *query, bool transaction);
89 void INGclear(INGresult *ing_res);
90 void INGcommit(const INGconn *dbconn);
91 INGconn *INGconnectDB(char *dbname, char *user, char *passwd, int session_id);
92 void INGsetDefaultLockingMode(INGconn *dbconn);
93 void INGdisconnectDB(INGconn *dbconn);
94 char *INGerrorMessage(const INGconn *dbconn);
95 char *INGcmdTuples(INGresult *ing_res);
96 /* # line 109 "myingres.sh" */
97 #endif /* _MYINGRES_SH */