blob.h 467 B

123456789101112131415161718192021222324
  1. #ifndef PYSQLITE_BLOB_H
  2. #define PYSQLITE_BLOB_H
  3. #include "Python.h"
  4. #include "sqlite3.h"
  5. #include "connection.h"
  6. #define BLOB_SEEK_START 0
  7. #define BLOB_SEEK_CUR 1
  8. #define BLOB_SEEK_END 2
  9. typedef struct {
  10. PyObject_HEAD
  11. pysqlite_Connection *connection;
  12. sqlite3_blob *blob;
  13. int offset;
  14. PyObject *in_weakreflist;
  15. } pysqlite_Blob;
  16. int pysqlite_blob_setup_types(PyObject *mod);
  17. void pysqlite_close_all_blobs(pysqlite_Connection *self);
  18. #endif