File tree 3 files changed +32
-5
lines changed 3 files changed +32
-5
lines changed Original file line number Diff line number Diff line change
1
+ # cozo-clj
2
+
3
+ [ ![ java] ( https://img.shields.io/maven-central/v/io.github.cozodb/cozo-clj )] ( https://mvnrepository.com/artifact/io.github.cozodb/cozo-clj )
4
+
5
+ [ Cozo 数据库] ( https://www.cozodb.org ) 的 Clojure 库。
6
+
7
+ 本文叙述的是如何安装设置库本身。有关如何使用 CozoDB(CozoScript)的信息,见 [ 文档] ( https://docs.cozodb.org/zh_CN/latest/index.html ) 。
8
+
9
+ ## 使用方法
10
+
11
+ ``` clojure
12
+ (in-ns 'cozo-clj.core)
13
+
14
+ (def db (open-db ))
15
+
16
+ (println (query db " ?[] <- [[1,2,3]]" ))
17
+
18
+ (close db)
19
+ ```
20
+
21
+ 更多信息见库内置的文档。
22
+
23
+ ## 依赖
24
+
25
+ 本库通过 ` io.github.cozodb/cozo-lib-java ` 库来调用原生 Cozo 库。
26
+
27
+ ## 由于网络原因无法下载原生库,怎么办?
28
+
29
+ 和在 [ Java 中的解决办法] ( https://gitee.com/cozodb/cozo-lib-java#%E7%94%B1%E4%BA%8E%E7%BD%91%E7%BB%9C%E5%8E%9F%E5%9B%A0%E6%97%A0%E6%B3%95%E4%B8%8B%E8%BD%BD%E5%8E%9F%E7%94%9F%E5%BA%93%E6%80%8E%E4%B9%88%E5%8A%9E ) 一样。
Original file line number Diff line number Diff line change 5
5
Clojure bindings for [ CozoDb] ( https://www.cozodb.org ) .
6
6
7
7
This document describes how to set up Cozo for use in Clojure.
8
- To learn how to use CozoDB (CozoScript), follow
9
- the [ tutorial] ( https://docs.cozodb.org/en/latest/tutorial.html ) . You can run all the queries
10
- described in the tutorial with an in-browser DB [ here] ( https://www.cozodb.org/wasm-demo/ ) .
8
+ To learn how to use CozoDB (CozoScript), read the [ docs] ( https://docs.cozodb.org/en/latest/index.html ) .
11
9
12
10
## Usage
13
11
@@ -21,7 +19,7 @@ described in the tutorial with an in-browser DB [here](https://www.cozodb.org/wa
21
19
(close db)
22
20
```
23
21
24
- For more information, see the docs.
22
+ For more information, see the built-in docs.
25
23
26
24
## Dependency
27
25
Original file line number Diff line number Diff line change 2
2
<module type =" JAVA_MODULE" version =" 4" >
3
3
<component name =" BuildSystem" >
4
4
<option name =" buildSystemId" value =" LEININGEN" />
5
- <option name =" displayName" value =" io.github.cozodb/cozo-clj:0.3 .0" />
5
+ <option name =" displayName" value =" io.github.cozodb/cozo-clj:0.4 .0" />
6
6
</component >
7
7
<component name =" NewModuleRootManager" >
8
8
<output url =" file://$MODULE_DIR$/target/classes" />
You can’t perform that action at this time.
0 commit comments