Skip to content

Commit 0d59f19

Browse files
igalklebanovjadejr
andcommitted
rename truncate constant.
Co-authored-by: jadejr <150508125+jadejr@users.noreply.github.com>
1 parent ee1dc82 commit 0d59f19

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

site/docs/getting-started/Summary.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ const dialectSpecificCodeSnippets: Record<Dialect, string> = {
4747
pglite: postgresqlCodeSnippet,
4848
}
4949

50-
const postgresqlTruncateSnippet = `await sql\`truncate table \${sql.table('person')}\`.execute(db)`
50+
const truncateTableSnippet = `await sql\`truncate table \${sql.table('person')}\`.execute(db)`
5151

5252
const dialectSpecificTruncateSnippets: Record<Dialect, string> = {
53-
postgresql: postgresqlTruncateSnippet,
54-
mysql: postgresqlTruncateSnippet,
55-
mssql: postgresqlTruncateSnippet,
53+
postgresql: truncateTableSnippet,
54+
mysql: truncateTableSnippet,
55+
mssql: truncateTableSnippet,
5656
sqlite: `await sql\`delete from \${sql.table('person')}\`.execute(db)`,
57-
pglite: postgresqlTruncateSnippet,
57+
pglite: truncateTableSnippet,
5858
}
5959

6060
export function Summary(props: PropsWithDialect) {

0 commit comments

Comments
 (0)