File: db_sqlite2.h

package info (click to toggle)
csync2 2.0-42-g83b3644-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 864 kB
  • sloc: ansic: 6,878; sh: 849; yacc: 458; perl: 277; lex: 92; makefile: 92; cs: 73; sql: 42
file content (18 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#ifndef DB_SQLITE2_H
#define DB_SQLITE2_H

/* public */
int   db_sqlite2_open(const char *file, db_conn_p *conn_p);
/* Private, should not be here  */
void  db_sqlite2_close(db_conn_p db_conn);
int   db_sqlite2_exec(db_conn_p conn, const char *sql);
int   db_sqlite2_prepare(db_conn_p conn, const char *sql, db_stmt_p *stmt_p, char **pptail);
int   db_sqlite2_stmt_next(db_stmt_p stmt);
const char* db_sqlite2_stmt_get_column_text(db_stmt_p stmt, int column);
const void* db_sqlite2_stmt_get_column_blob(db_stmt_p stmt, int column);
int   db_sqlite2_stmt_get_column_int(db_stmt_p stmt, int column);
int   db_sqlite2_stmt_close(db_stmt_p stmt);
int   db_sqlite2_upgrade_to_schema(int version);

#endif