File: db_postgres.h

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

#ifndef DB_POSTGRES_H
#define DB_POSTGRES_H

/* public */
int   db_postgres_open(const char *file, db_conn_p *conn_p);
/* Private */
void  db_postgres_close(db_conn_p db_conn);
int   db_postgres_exec(db_conn_p conn, const char *sql);
int   db_postgres_prepare(db_conn_p conn, const char *sql, db_stmt_p *stmt_p, char **pptail);
const char *db_postgres_errmsg(db_conn_p db_conn);

int   db_postgres_stmt_next(db_stmt_p stmt);
const void* db_postgres_stmt_get_column_blob(db_stmt_p stmt, int column);
const char *db_postgres_stmt_get_column_text(db_stmt_p stmt, int column);
int   db_postgres_stmt_get_column_int(db_stmt_p stmt, int column);
int   db_postgres_stmt_close(db_stmt_p stmt);
int   db_postgres_upgrade_to_schema(int version);

#endif