File: bfile.h

package info (click to toggle)
db5.3 5.3.28%2Bdfsg1-0.5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 158,360 kB
  • sloc: ansic: 448,411; java: 111,824; tcl: 80,544; sh: 44,326; cs: 33,697; cpp: 21,604; perl: 14,557; xml: 10,799; makefile: 4,077; yacc: 1,003; awk: 965; sql: 801; erlang: 342; python: 216; php: 24; asm: 14
file content (93 lines) | stat: -rw-r--r-- 1,351 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 2010 Oracle.  All rights reserved.
 *
 */


/*
** This file defines the sqlite bfile extension for Berkeley DB.
*/

#include <sqlite3.h>
#include <sys/types.h>
 

#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus */


typedef struct sqlite3_bfile sqlite3_bfile;

/*
 * Access BFILE element of the current row in the row set
 */
SQLITE_API int sqlite3_column_bfile(
	sqlite3_stmt *pStmt,
	int iCol,
	sqlite3_bfile **ppBfile
);

/*
 * Open a BFILE
 */
SQLITE_API int sqlite3_bfile_open(
	sqlite3_bfile *pBfile
);

/*
 * Close a opened BFILE
 */
SQLITE_API int sqlite3_bfile_close(
	sqlite3_bfile *pBfile
);

/*
 * Check if file is open using this BFLIE
 */
SQLITE_API int sqlite3_bfile_is_open(
	sqlite3_bfile *pBfile,
	int *open
);

/*
 * Read a portion of a BFILE
 */
SQLITE_API int sqlite3_bfile_read(
	sqlite3_bfile *pBfile,
	void *z,
	int nSize,
	off_t iOffset,
	int *nRead
);

/*
 * Check if a file exists
 */
SQLITE_API int sqlite3_bfile_file_exists(
	sqlite3_bfile *pBfile,
	int *exist
);

/*
 * Get File size of a BFILE
 */
SQLITE_API int sqlite3_bfile_size(
	sqlite3_bfile *pBfile,
	off_t *size
);

/*
 * Finalize a BFILE
 */
SQLITE_API int sqlite3_bfile_final(
	sqlite3_bfile *pBfile
);

#ifdef __cplusplus
}  /* extern "C" */
#endif  /* __cplusplus */