Skip to content

Commit a1d0f49

Browse files
vasfvitordreyfus92
andauthored
fix: remove extra backtick in sql guide (tauri-apps#2038)
* fix ```````` * Update sql.mdx --------- Co-authored-by: Paul Valladares <[email protected]>
1 parent 73a656b commit a1d0f49

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/content/docs/features/sql.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ import Database from '@tauri-apps/plugin-sql';
9090
const db = await Database.load('mysql://user:pass@host/database');
9191
await db.execute('INSERT INTO ...');
9292

93-
````
93+
```
9494
</TabItem>
9595
<TabItem label="PostgreSQL">
9696
```javascript
@@ -99,7 +99,7 @@ import Database from "@tauri-apps/plugin-sql";
9999
const db = await Database.load("postgres://postgres:password@localhost/test");
100100
await db.execute("INSERT INTO ...");
101101

102-
````
102+
```
103103

104104
</TabItem>
105105
</Tabs>
@@ -122,7 +122,7 @@ const result = await db.execute(
122122
[todos.title, todos.status, todos.id],
123123
);
124124

125-
````
125+
```
126126
</TabItem>
127127
<TabItem label="MySQL">
128128
Use "?" when substituting query data
@@ -136,7 +136,7 @@ const result = await db.execute(
136136
"UPDATE todos SET title = ?, status = ? WHERE id = ?",
137137
[todos.title, todos.status, todos.id],
138138
);
139-
````
139+
```
140140

141141
</TabItem>
142142
<TabItem label="PostgreSQL">
@@ -152,7 +152,7 @@ const result = await db.execute(
152152
[todos.title, todos.status, todos.id],
153153
);
154154

155-
````
155+
```
156156
</TabItem>
157157
</Tabs>
158158

@@ -175,7 +175,7 @@ let migration = Migration {
175175
sql: "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);",
176176
kind: MigrationKind::Up,
177177
};
178-
````
178+
```
179179

180180
### Adding Migrations to the Plugin Builder
181181

src/content/docs/zh-cn/features/sql.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ import Database from '@tauri-apps/plugin-sql';
9191
const db = await Database.load('mysql://user:pass@host/database');
9292
await db.execute('INSERT INTO ...');
9393

94-
````
94+
```
9595
</TabItem>
9696
<TabItem label="PostgreSQL">
9797
```javascript
@@ -100,7 +100,7 @@ import Database from "@tauri-apps/plugin-sql";
100100
const db = await Database.load("postgres://postgres:password@localhost/test");
101101
await db.execute("INSERT INTO ...");
102102

103-
````
103+
```
104104

105105
</TabItem>
106106
</Tabs>
@@ -123,7 +123,7 @@ const result = await db.execute(
123123
[todos.title, todos.status, todos.id],
124124
);
125125

126-
````
126+
```
127127
</TabItem>
128128
<TabItem label="MySQL">
129129
在替换查询数据时使用 "?" 语法
@@ -137,7 +137,7 @@ const result = await db.execute(
137137
"UPDATE todos SET title = ?, status = ? WHERE id = ?",
138138
[todos.title, todos.status, todos.id],
139139
);
140-
````
140+
```
141141

142142
</TabItem>
143143
<TabItem label="PostgreSQL">
@@ -153,7 +153,7 @@ const result = await db.execute(
153153
[todos.title, todos.status, todos.id],
154154
);
155155

156-
````
156+
```
157157
</TabItem>
158158
</Tabs>
159159

@@ -177,7 +177,7 @@ let migration = Migration {
177177
sql: "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);",
178178
kind: MigrationKind::Up,
179179
};
180-
````
180+
```
181181

182182
### 向插件构建器添加迁移
183183

0 commit comments

Comments
 (0)