Skip to content
/ docs Public
forked from withastro/docs

Commit

Permalink
i18n(fr): Update guides/astro-db from withastro#8478
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Bonnet <[email protected]>
  • Loading branch information
thomasbnt committed Jun 25, 2024
1 parent 1437553 commit b32b74d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/content/docs/fr/guides/astro-db.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const Author = defineTable({
const Comment = defineTable({
columns: {
authorId: column.number({ references: () => Author.columns.id }),
content: column.text(),
body: column.text(),
}
});
```
Expand All @@ -141,10 +141,10 @@ L'exemple suivant définit deux lignes de données de développement pour une ta
import { db, Comment } from 'astro:db';

export default async function() {
await db.insert(Comment).values([
{ authorId: 1, body: "J'espère que vous aimerez Astro DB !" },
{ authorId: 2, body: 'Profitez !'},
])
await db.insert(Author).values([
{ id: 1, name: "Kasim" },
{ id: 2, name: "Mina" },
]);
}
```

Expand Down

0 comments on commit b32b74d

Please sign in to comment.