Welcome Guest ( Log In | Register )

欢迎访问本站。游客仅能浏览首页新闻、版块主题、维基条目与资源信息,需登录后方可获得内容发布、话题讨论、维基编辑与资源下载等权限。若无账号请先完成注册流程。
 
Reply to this topicStart new topic
> Mathematica中启用Sqlite扩展
ayaka
2018-11-01, 23:36
Post #1


主物质者
Group Icon
 43
   2

Group: Sinker
Posts: 83
Joined: 2013-07-09
Member No.: 54960


默认情况下,Mathematica连接Sqlite的时候是没有开启扩展功能的。
欲开启扩展功能,需设置Sqlite的JDBC的enable_load_extension属性(xerial)

代码如下

```
OpenSQLConnection[
JDBC["SQLite", "filename"],
"Properties" -> {"enable_load_extension" -> "true"}];
```

Mathematica does not have extensions enabled when connecting to Sqlite by default.
To enable the extension, you need to enable enable_load_extension property of JDBC.

```
OpenSQLConnection[
JDBC["SQLite", "filename"],
"Properties" -> {"enable_load_extension" -> "true"}];
```


This post has been edited by ayaka: 2018-11-01, 23:36
TOP
Fast ReplyReply to this topicStart new topic
 


Time is now: 2018-12-12, 22:41