Skip to content

Commit 0e5546d

Browse files
authored
Merge pull request #49 from qiaoyuang/main
Add the information about linkerOpts into doc 'Getting Start'
2 parents d2912d1 + 3b11e66 commit 0e5546d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

sqllin-dsl/doc/getting-start-cn.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## 在 Gradle 中使用 Maven 引入
66

7-
_sqllin-dsl__sqllin-driver_ 以及 _sqllin-processor_ 依赖添加到你的 build.gradle.kts:
7+
_sqllin-dsl__sqllin-driver_ 以及 _sqllin-processor_ 依赖添加到你的 `build.gradle.kts`
88

99
```kotlin
1010
plugins {
@@ -41,6 +41,8 @@ dependencies {
4141
add("kspCommonMainMetadata", "com.ctrip.kotlin:sqllin-processor:$sqllinVersion")
4242
}
4343
```
44+
> 注意:如果你想将 SQLlin 的依赖添加到你的 Kotlin/Native 可执行程序工程,有时你需要正确添加对 SQLite 的 `linkerOpts` 到你的
45+
> `build.gradle.kts`。你可以参考 [issue #48](https://github.com/ctripcorp/SQLlin/issues/48) 来获取更多信息。
4446
4547
## 创建数据库
4648

sqllin-dsl/doc/getting-start.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
**Welcome to use SQLlin !!!**
66

7-
## Installation via Maven in Gradle
7+
## Installation via Maven with Gradle
88

9-
Add the _sqllin-dsl_, _sqllin-driver_ and _sqllin-processor_ dependencies in your build.gradle.kts:
9+
Add the _sqllin-dsl_, _sqllin-driver_ and _sqllin-processor_ dependencies into your `build.gradle.kts`:
1010

1111
```kotlin
1212
plugins {
@@ -44,6 +44,9 @@ dependencies {
4444
}
4545
```
4646

47+
> Note: If you want to add dependiences of SQLlin into your Kotlin/Native exectable program project, sometimes you need to add the `linkerOpts`
48+
> of SQLite into your `build.gradle.kts` correctly. You can refer to [issue #48](https://github.com/ctripcorp/SQLlin/issues/48) to get more information.
49+
4750
## Creating the Database
4851

4952
You can create the `Database` instance in sample:

0 commit comments

Comments
 (0)