mirror of
https://github.com/python/cpython.git
synced 2024-12-12 03:04:15 +08:00
ee475430d4
Authored-by: Aviv Palivoda <palaviv@gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@innova.no> Co-authored-by: palaviv <palaviv@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
25 lines
467 B
C
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
|