Skip to content

Commit

Permalink
Merge pull request #117 from GuoXiCheng/dev-c
Browse files Browse the repository at this point in the history
update docs
  • Loading branch information
GuoXiCheng authored Oct 23, 2024
2 parents d262ec0 + df46eab commit ebcb6ab
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export default defineConfig(
text: "后端",
items: [{ text: "NodeJS", link: "/backend/nodejs/about-nodejs" }],
},
{
text: "数据库",
items: [{ text: "SQLite", link: "/database/sqlite/introduction/what-is-sqlite" }],
},
{
text: "云原生",
items: [
Expand Down
7 changes: 7 additions & 0 deletions src/.vitepress/sidebars/sqlite.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/database/sqlite:
- text: SQLite 介绍
items:
- text: 什么是 SQLite
link: /database/sqlite/introduction/what-is-sqlite
- text: 安装 SQLite
link: /database/sqlite/introduction/install-sqlite
23 changes: 23 additions & 0 deletions src/database/sqlite/introduction/install-sqlite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 安装 SQLite

## 在 Windows 上安装 SQLite

访问 SQLite 的[下载页面](https://www.sqlite.org/download.html),从 _Precompiled Binaries for Windows_ 下载适用于 Windows 的预编译二进制文件:_sqlite-dll-win-x64-xxx0000.zip__sqlite-tools-win-x64-xxx0000.zip_

创建文件夹 `C:\sqlite`,并将下载的两个文件解压到该文件夹。

添加 `C:\sqlite``PATH` 环境变量

打开命令提示符,输入 `sqlite3`,如果看到以下输出,则说明安装成功:

```bash
C:\sqlite>sqlite3
SQLite version 3.47.0 2024-10-21 16:30:22
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
```

继续输入命令 `.open test.db` 可以创建一个数据库文件。

输入 `.quit` 退出 SQLite 命令行。
3 changes: 3 additions & 0 deletions src/database/sqlite/introduction/what-is-sqlite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 什么是 SQLite

SQLite 是一个实现了自给自足、无服务器、零配置、事务性 SQL 数据库引擎。

0 comments on commit ebcb6ab

Please sign in to comment.