File: db.h

package info (click to toggle)
netmrg 0.20-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,856 kB
  • ctags: 2,009
  • sloc: php: 9,401; sh: 4,644; cpp: 2,898; perl: 621; ansic: 381; makefile: 331; xml: 92; sql: 71; sed: 16
file content (22 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/********************************************
* NetMRG Integrator
*
* db.h
* NetMRG Gatherer Database Library Header
*
* see doc/LICENSE for copyright information
********************************************/

#ifndef NETMRG_DB
#define NETMRG_DB

#include "common.h"
#include "types.h"
#include <mysql/mysql.h>

int				db_connect(MYSQL *connection);
MYSQL_RES *		db_query(MYSQL *mysql, const DeviceInfo *info, const string & query);
void			db_update(MYSQL *mysql, const DeviceInfo *info, const string & query);
string			db_escape(const string & input);

#endif