Files
cpython/Modules/_sqlite/blob.h
T
ee475430d4 gh-69093: Support basic incremental I/O to blobs in sqlite3 (GH-30680)
Authored-by: Aviv Palivoda <[email protected]>
Co-authored-by: Erlend E. Aasland <[email protected]>
Co-authored-by: palaviv <[email protected]>
Co-authored-by: Kumar Aditya <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
2022-04-14 17:02:56 -07:00

25 lines
467 B
C

#ifndef PYSQLITE_BLOB_H
#define PYSQLITE_BLOB_H
#include "Python.h"
#include "sqlite3.h"
#include "connection.h"
#define BLOB_SEEK_START 0
#define BLOB_SEEK_CUR 1
#define BLOB_SEEK_END 2
typedef struct {
PyObject_HEAD
pysqlite_Connection *connection;
sqlite3_blob *blob;
int offset;
PyObject *in_weakreflist;
} pysqlite_Blob;
int pysqlite_blob_setup_types(PyObject *mod);
void pysqlite_close_all_blobs(pysqlite_Connection *self);
#endif