Skip to content

Commit c6892c9

Browse files
committed
update docs
1 parent cd65768 commit c6892c9

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

README-zh.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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) 一样。

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
Clojure bindings for [CozoDb](https://www.cozodb.org).
66

77
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).
119

1210
## Usage
1311

@@ -21,7 +19,7 @@ described in the tutorial with an in-browser DB [here](https://www.cozodb.org/wa
2119
(close db)
2220
```
2321

24-
For more information, see the docs.
22+
For more information, see the built-in docs.
2523

2624
## Dependency
2725

cozo-clj.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<module type="JAVA_MODULE" version="4">
33
<component name="BuildSystem">
44
<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" />
66
</component>
77
<component name="NewModuleRootManager">
88
<output url="file://$MODULE_DIR$/target/classes" />

0 commit comments

Comments
 (0)