Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use data instead of row #170

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion de-DE/guide/database/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ await ctx.database.get('schedule', {
```ts
// 向 schedule 表中添加一行数据,data 是要添加的数据行
// 返回值是添加的行的完整数据 (包括自动填充的 id 和默认属性等)
await ctx.database.create('schedule', row)
await ctx.database.create('schedule', data)
```

如果你想要批量插入数据,可以使用下面介绍的 `database.upsert()` 方法。
Expand Down
2 changes: 1 addition & 1 deletion en-US/guide/database/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ await ctx.database.get('schedule', {
```ts
// 向 schedule 表中添加一行数据,data 是要添加的数据行
// 返回值是添加的行的完整数据 (包括自动填充的 id 和默认属性等)
await ctx.database.create('schedule', row)
await ctx.database.create('schedule', data)
```

如果你想要批量插入数据,可以使用下面介绍的 `database.upsert()` 方法。
Expand Down
2 changes: 1 addition & 1 deletion fr-FR/guide/database/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ await ctx.database.get('schedule', {
```ts
// 向 schedule 表中添加一行数据,data 是要添加的数据行
// 返回值是添加的行的完整数据 (包括自动填充的 id 和默认属性等)
await ctx.database.create('schedule', row)
await ctx.database.create('schedule', data)
```

如果你想要批量插入数据,可以使用下面介绍的 `database.upsert()` 方法。
Expand Down
2 changes: 1 addition & 1 deletion ja-JP/guide/database/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ await ctx.database.get('schedule', {
```ts
// 向 schedule 表中添加一行数据,data 是要添加的数据行
// 返回值是添加的行的完整数据 (包括自动填充的 id 和默认属性等)
await ctx.database.create('schedule', row)
await ctx.database.create('schedule', data)
```

如果你想要批量插入数据,可以使用下面介绍的 `database.upsert()` 方法。
Expand Down
2 changes: 1 addition & 1 deletion ru-RU/guide/database/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ await ctx.database.get('schedule', {
```ts
// 向 schedule 表中添加一行数据,data 是要添加的数据行
// 返回值是添加的行的完整数据 (包括自动填充的 id 和默认属性等)
await ctx.database.create('schedule', row)
await ctx.database.create('schedule', data)
```

如果你想要批量插入数据,可以使用下面介绍的 `database.upsert()` 方法。
Expand Down
2 changes: 1 addition & 1 deletion zh-CN/guide/database/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ await ctx.database.get('schedule', {
```ts
// 向 schedule 表中添加一行数据,data 是要添加的数据行
// 返回值是添加的行的完整数据 (包括自动填充的 id 和默认属性等)
await ctx.database.create('schedule', row)
await ctx.database.create('schedule', data)
```

如果你想要批量插入数据,可以使用下面介绍的 `database.upsert()` 方法。
Expand Down
2 changes: 1 addition & 1 deletion zh-TW/guide/database/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ await ctx.database.get('schedule', {
```ts
// 向 schedule 表中添加一行数据,data 是要添加的数据行
// 返回值是添加的行的完整数据 (包括自动填充的 id 和默认属性等)
await ctx.database.create('schedule', row)
await ctx.database.create('schedule', data)
```

如果你想要批量插入数据,可以使用下面介绍的 `database.upsert()` 方法。
Expand Down
Loading