File: sql.h

package info (click to toggle)
cvm 0.97-0.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,036 kB
  • sloc: ansic: 4,065; sh: 2,758; makefile: 235; sql: 15
file content (19 lines) | stat: -rw-r--r-- 588 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef CVM__SQL__H__
#define CVM__SQL__H__

#include <bglibs/str.h>
extern const char sql_query_default[];
extern int sql_query_validate(const char* template);
extern int sql_query_build(const char* template, str* q);

/* These routines must be defined by the SQL module */
extern const char sql_query_var[];
extern const char sql_pwcmp_var[];
extern const char sql_postq_var[];
extern int sql_auth_init(void);
extern int sql_auth_query(const str* query);
extern int sql_post_query(const str* query);
extern const char* sql_get_field(int field);
extern void sql_auth_stop(void);

#endif