首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

windows11编译安装pysqlcipher3

后端 152.5KB 17 需要积分: 1
立即下载

资源介绍:

windows11编译安装pysqlcipher3
/* connection.c - the connection type * * Copyright (C) 2004-2010 Gerhard Häring * * This file is part of pysqlite. * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */ #include "cache.h" #include "module.h" #include "structmember.h" #include "connection.h" #include "statement.h" #include "cursor.h" #include "prepare_protocol.h" #include "util.h" #include "pythread.h" #define ACTION_FINALIZE 1 #define ACTION_RESET 2 #if SQLITE_VERSION_NUMBER >= 3003008 #ifndef SQLITE_OMIT_LOAD_EXTENSION #define HAVE_LOAD_EXTENSION #endif #endif _Py_IDENTIFIER(cursor); static int pysqlite_connection_set_isolation_level(pysqlite_Connection* self, PyObject* isolation_level); static void _pysqlite_drop_unused_cursor_references(pysqlite_Connection* self); static void _sqlite3_result_error(sqlite3_context* ctx, const char* errmsg, int len) { /* in older SQLite versions, calling sqlite3_result_error in callbacks * triggers a bug in SQLite that leads either to irritating results or * segfaults, depending on the SQLite version */ #if SQLITE_VERSION_NUMBER >= 3003003 sqlite3_result_error(ctx, errmsg, len); #else PyErr_SetString(pysqlite_OperationalError, errmsg); #endif } int pysqlite_connection_init(pysqlite_Connection* self, PyObject* args, PyObject* kwargs) { static char *kwlist[] = { "database", "timeout", "detect_types", "isolation_level", "check_same_thread", "factory", "cached_statements", "uri", NULL }; char* database; int detect_types = 0; PyObject* isolation_level = NULL; PyObject* factory = NULL; int check_same_thread = 1; int cached_statements = 100; int uri = 0; double timeout = 5.0; int rc; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|diOiOip", kwlist, &database, &timeout, &detect_types, &isolation_level, &check_same_thread, &factory, &cached_statements, &uri)) { return -1; } self->initialized = 1; self->begin_statement = NULL; self->statement_cache = NULL; self->statements = NULL; self->cursors = NULL; Py_INCREF(Py_None); self->row_factory = Py_None; Py_INCREF(&PyUnicode_Type); self->text_factory = (PyObject*)&PyUnicode_Type; #ifdef SQLITE_OPEN_URI Py_BEGIN_ALLOW_THREADS rc = sqlite3_open_v2(database, &self->db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | (uri ? SQLITE_OPEN_URI : 0), NULL); #else if (uri) { PyErr_SetString(pysqlite_NotSupportedError, "URIs not supported"); return -1; } Py_BEGIN_ALLOW_THREADS rc = sqlite3_open(database, &self->db); #endif Py_END_ALLOW_THREADS if (rc != SQLITE_OK) { _pysqlite_seterror(self->db, NULL); return -1; } if (!isolation_level) { isolation_level = PyUnicode_FromString(""); if (!isolation_level) { return -1; } } else { Py_INCREF(isolation_level); } self->isolation_level = NULL; if (pysqlite_connection_set_isolation_level(self, isolation_level) < 0) { Py_DECREF(isolation_level); return -1; } Py_DECREF(isolation_level); self->statement_cache = (pysqlite_Cache*)PyObject_CallFunction((PyObject*)&pysqlite_CacheType, "Oi", self, cached_statements); if (PyErr_Occurred()) { return -1; } self->created_statements = 0; self->created_cursors = 0; /* Create lists of weak references to statements/cursors */ self->statements = PyList_New(0); self->cursors = PyList_New(0); if (!self->statements || !self->cursors) { return -1; } /* By default, the Cache class INCREFs the factory in its initializer, and * decrefs it in its deallocator method. Since this would create a circular * reference here, we're breaking it by decrementing self, and telling the * cache class to not decref the factory (self) in its deallocator. */ self->statement_cache->decref_factory = 0; Py_DECREF(self); self->inTransaction = 0; self->detect_types = detect_types; self->timeout = timeout; (void)sqlite3_busy_timeout(self->db, (int)(timeout*1000)); #ifdef WITH_THREAD self->thread_ident = PyThread_get_thread_ident(); #endif self->check_same_thread = check_same_thread; self->function_pinboard = PyDict_New(); if (!self->function_pinboard) { return -1; } self->collations = PyDict_New(); if (!self->collations) { return -1; } self->Warning = pysqlite_Warning; self->Error = pysqlite_Error; self->InterfaceError = pysqlite_InterfaceError; self->DatabaseError = pysqlite_DatabaseError; self->DataError = pysqlite_DataError; self->OperationalError = pysqlite_OperationalError; self->IntegrityError = pysqlite_IntegrityError; self->InternalError = pysqlite_InternalError; self->ProgrammingError = pysqlite_ProgrammingError; self->NotSupportedError = pysqlite_NotSupportedError; return 0; } /* Empty the entire statement cache of this connection */ void pysqlite_flush_statement_cache(pysqlite_Connection* self) { pysqlite_Node* node; pysqlite_Statement* statement; node = self->statement_cache->first; while (node) { statement = (pysqlite_Statement*)(node->data); (void)pysqlite_statement_finalize(statement); node = node->next; } Py_DECREF(self->statement_cache); self->statement_cache = (pysqlite_Cache*)PyObject_CallFunction((PyObject*)&pysqlite_CacheType, "O", self); Py_DECREF(self); self->statement_cache->decref_factory = 0; } /* action in (ACTION_RESET, ACTION_FINALIZE) */ void pysqlite_do_all_statements(pysqlite_Connection* self, int action, int reset_cursors) { int i; PyObject* weakref; PyObject* statement; pysqlite_Cursor* cursor; for (i = 0; i < PyList_Size(self->statements); i++) { weakref = PyList_GetItem(self->statements, i); statement = PyWeakref_GetObject(weakref); if (statement != Py_None) { Py_INCREF(statement); if (action == ACTION_RESET) { (void)pysqlite_statement_reset((pysqlite_Statement*)statement); } else { (void)pysqlite_statement_finalize((pysqlite_Statement*)statement); } Py_DECREF(statement); } } if (reset_cursors) { for (i = 0; i < PyList_Size(self->cursors); i++) { weakref = PyList_GetItem(self->cursors, i); cursor = (pysqlite_Cursor*)PyWeakref_GetObject(weakref); if ((PyObject*)cursor != Py_None) { cursor->reset = 1; } } } } void pysqlite_connection_dealloc(pysqlite_Connection* self) { Py_XDECREF(self->statement_cache); /* Clean up if user has not called .close() explicitly. */ if (self->db) { Py_BEGIN_ALLOW_THREADS sqlite3_close(self->db); Py_END_A

资源文件列表:

pysqlcipher3-master.zip 大约有77个文件
  1. pysqlcipher3-master/
  2. pysqlcipher3-master/.gitignore 698B
  3. pysqlcipher3-master/LICENSE 991B
  4. pysqlcipher3-master/MANIFEST.in 154B
  5. pysqlcipher3-master/NEWS.rst 343B
  6. pysqlcipher3-master/README.rst 4.68KB
  7. pysqlcipher3-master/lib/
  8. pysqlcipher3-master/lib/__init__.py 988B
  9. pysqlcipher3-master/lib/dbapi2.py 3.08KB
  10. pysqlcipher3-master/lib/dump.py 2.76KB
  11. pysqlcipher3-master/lib/test/
  12. pysqlcipher3-master/lib/test/__init__.py 1.25KB
  13. pysqlcipher3-master/lib/test/python2/
  14. pysqlcipher3-master/lib/test/python2/__init__.py 1.45KB
  15. pysqlcipher3-master/lib/test/python2/dbapi.py 29.19KB
  16. pysqlcipher3-master/lib/test/python2/dump.py 1.71KB
  17. pysqlcipher3-master/lib/test/python2/factory.py 7.76KB
  18. pysqlcipher3-master/lib/test/python2/hooks.py 6.42KB
  19. pysqlcipher3-master/lib/test/python2/regression.py 9.46KB
  20. pysqlcipher3-master/lib/test/python2/sqlcipher.py 3.68KB
  21. pysqlcipher3-master/lib/test/python2/transactions.py 7.19KB
  22. pysqlcipher3-master/lib/test/python2/types.py 14.49KB
  23. pysqlcipher3-master/lib/test/python2/userfunctions.py 12.91KB
  24. pysqlcipher3-master/lib/test/python3/
  25. pysqlcipher3-master/lib/test/python3/__init__.py 1.45KB
  26. pysqlcipher3-master/lib/test/python3/dbapi.py 30.68KB
  27. pysqlcipher3-master/lib/test/python3/dump.py 2.79KB
  28. pysqlcipher3-master/lib/test/python3/factory.py 9.41KB
  29. pysqlcipher3-master/lib/test/python3/hooks.py 9.21KB
  30. pysqlcipher3-master/lib/test/python3/regression.py 12.63KB
  31. pysqlcipher3-master/lib/test/python3/sqlcipher.py 3.68KB
  32. pysqlcipher3-master/lib/test/python3/transactions.py 7.18KB
  33. pysqlcipher3-master/lib/test/python3/types.py 14.11KB
  34. pysqlcipher3-master/lib/test/python3/userfunctions.py 14.68KB
  35. pysqlcipher3-master/setup.cfg 32B
  36. pysqlcipher3-master/setup.py 7.09KB
  37. pysqlcipher3-master/src/
  38. pysqlcipher3-master/src/python2/
  39. pysqlcipher3-master/src/python2/backup.h 1.35KB
  40. pysqlcipher3-master/src/python2/cache.c 12.63KB
  41. pysqlcipher3-master/src/python2/cache.h 2.28KB
  42. pysqlcipher3-master/src/python2/connection.c 49.25KB
  43. pysqlcipher3-master/src/python2/connection.h 5.03KB
  44. pysqlcipher3-master/src/python2/cursor.c 34.51KB
  45. pysqlcipher3-master/src/python2/cursor.h 2.52KB
  46. pysqlcipher3-master/src/python2/microprotocols.c 4.25KB
  47. pysqlcipher3-master/src/python2/microprotocols.h 2.07KB
  48. pysqlcipher3-master/src/python2/module.c 14.91KB
  49. pysqlcipher3-master/src/python2/module.h 1.97KB
  50. pysqlcipher3-master/src/python2/prepare_protocol.c 4.32KB
  51. pysqlcipher3-master/src/python2/prepare_protocol.h 1.46KB
  52. pysqlcipher3-master/src/python2/row.c 8.65KB
  53. pysqlcipher3-master/src/python2/row.h 1.24KB
  54. pysqlcipher3-master/src/python2/sqlitecompat.h 1.9KB
  55. pysqlcipher3-master/src/python2/statement.c 17.9KB
  56. pysqlcipher3-master/src/python2/statement.h 2.12KB
  57. pysqlcipher3-master/src/python2/util.c 3.24KB
  58. pysqlcipher3-master/src/python2/util.h 1.4KB
  59. pysqlcipher3-master/src/python3/
  60. pysqlcipher3-master/src/python3/cache.c 12.19KB
  61. pysqlcipher3-master/src/python3/cache.h 2.28KB
  62. pysqlcipher3-master/src/python3/connection.c 49.75KB
  63. pysqlcipher3-master/src/python3/connection.h 4.76KB
  64. pysqlcipher3-master/src/python3/cursor.c 34.53KB
  65. pysqlcipher3-master/src/python3/cursor.h 2.54KB
  66. pysqlcipher3-master/src/python3/microprotocols.c 4.34KB
  67. pysqlcipher3-master/src/python3/microprotocols.h 2.07KB
  68. pysqlcipher3-master/src/python3/module.c 15.14KB
  69. pysqlcipher3-master/src/python3/module.h 1.93KB
  70. pysqlcipher3-master/src/python3/prepare_protocol.c 4.3KB
  71. pysqlcipher3-master/src/python3/prepare_protocol.h 1.77KB
  72. pysqlcipher3-master/src/python3/row.c 9.23KB
  73. pysqlcipher3-master/src/python3/row.h 1.24KB
  74. pysqlcipher3-master/src/python3/statement.c 16.99KB
  75. pysqlcipher3-master/src/python3/statement.h 2.08KB
  76. pysqlcipher3-master/src/python3/util.c 5.11KB
  77. pysqlcipher3-master/src/python3/util.h 1.51KB
0评论
提交 加载更多评论
其他资源 数据可视化的可视化大屏课程设计
1、选取合适的数据集:根据毕业设计的主题和目标,选择与之相关的合适的数据集。确保数据集可获得并包含足够的样本和特征,以支持后续的数据分析和开发工作。 2、项目背景:介绍毕业设计的背景和动机,说明为什么选择该课题以及相关领域的研究现状和问题。 3、项目目标:明确毕业设计的目标和预期成果,阐述希望通过这个项目实现的具体价值和意义。 4、数据说明:详细描述所选数据集的来源、规模、结构和内容,包括数据的格式、字段含义、数据质量等信息。 5、项目分析:对数据集进行初步的数据分析,包括数据预处理、特征提取、数据探索等,以获得对数据集的深入理解,为后续的开发工作做准备。 6、开发环境:采用Echarts大数据可视化技术。项目开发采用当前最主流的前后端分离的方式:后端用Pycharm工具搭建Flask框架,然后利用Python技术完成数据清洗、数据制作,最终形成数据接口;前端用Vscode工具完成可视化大屏布局、用Echarts技术完成图形展示;前后端只通过数据接口交互。 7、后端开发:根据项目需求和目标,进行后端开发工作,包括数据处理、函数的设计等,确保后端能够正确处理数据,并提供相应的接口和功能。
windows11编译安装pysqlcipher3
windows11编译安装pysqlcipher3
爬取豆瓣电影top250和爬取当当网数据
(2)编写爬虫程序,使用Urllib或Requests库获取到服务器URL的首页数据。 (3)解析数据,包含图书编号、名称、作者、出版社、出版时间、价格、简介、图书图片的URL,同时实现翻页功能爬取全部网页数据; (4)数据持久化存储:将全部解析的数据存储到 .CSV文件;将全部图书的图片存储到当前目录中“download”文件夹;将全部解析的数据存储到数据库( MySQL或MongoDB )。 编写爬虫程序,使用获取到服务器URL的首页数据。 (3)使用解析RE、BS4、XPATH数据,包含图书编号、名称、作者、出版社、出版时间、价格、简介、图书图片的URL,同时实现翻页功能爬取全部网页数据; (4)数据持久化存储:将全部解析的数据存储到 .CSV文件;将全部图书的图片存储到当前目录中“download”文件夹;将全部解析的数据存储到数据库( MySQL或MongoDB )。
圣诞节的圣诞树,有html型、有exe型,还有使用python型
打开压缩包第一个是动态生成樱花python需要下载python,第二个是圣诞树.ext类型是使桌面生成一颗圣诞树,但是每次开机时会自动生成,如果需要关闭可以右键将startup关闭勾选,第三个是html型直接点开即可,后面两个都是python类型。
spark课程设计任务
对数据文件data.csv在根据课程设计要求在IDEA中编写Spark程序并打包成jar包,并且将数据文件data.csv上传到HDFS中,提交jar包到Spark集群中运行。 data.csv里面包含餐厅数据,可以用记事本打开查看,主要包含以下13个字段,字段之间由逗号分隔: "所属年月","商家名称","主营类型","店铺URL","特色菜","累计评论数","累计销售人次","店铺评分","本月销量","本月销售额","城市","商家地址","电话" 课程设计要求完成以下任务,在IDEA中创建Maven项目,提供pom.xml文件给大家,完成以下任务。 一、将data.csv文件上传到hdfs的/cateringdata/目录下。 二、编写Spark程序,实现以下功能,并且将程序打包为jar包 1.去掉"本月销量","本月销售额"(第8列和第9列)的数据异常(数据为空字符串或者null或者为0),并且统计去掉了多少条;这一步清洗获得的数据要以逗号分割,存到hdfs的/foodsparktask1目录下; 2.去掉"店铺评分"数据为null的数据,并统计去掉了多少条; 3.去掉"店
迈德威视SDK同时驱动4个工业相机实时视频采集及显示
通过MDVS-SDK,分别注册4个回调函数,实现4个工业RGB相机同时视频采集及显示,代码基于Qt 5.12和Opencv3开发。其中显示部分只完成一个相机的实时显示。
vm的远程登录软件SecureCRTPortable和MobaXterm-Personal
打开压缩包第一个目录下MobaXterm_Personal_23.2.exe是一个远程登录软件,打开03.SecureCRTSecureFX目录,此目录下SecureCRTPortable.exe是另一个登录软件。 在用MobaXterm_Personal时,点击左上角的session中的ssh输入ip地址和名字即可连接设备;在用SecureCRTPortable时点击左上角第二个快速连接,点击协议ssh输入ip和用户名即可连接
typst Windows 安装包
typst Windows 安装包
typst Windows 安装包
typst Windows 安装包
typst Windows 安装包