Skip to content

Commit 27833be

Browse files
authored
feat: Add DO NOT EDIT comment to files (#17)
* feat: Add DO NOT EDIT comment to files * Update examples
1 parent cb1253f commit 27833be

File tree

8 files changed

+15
-1
lines changed

8 files changed

+15
-1
lines changed

examples/bun-mysql2/src/db/query_sql.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by sqlc. DO NOT EDIT.
2+
13
import mysql, { RowDataPacket } from "mysql2/promise";
24

35
type Client = mysql.Connection | mysql.Pool;

examples/bun-pg/src/db/query_sql.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by sqlc. DO NOT EDIT.
2+
13
import { QueryArrayConfig, QueryArrayResult } from "pg";
24

35
interface Client {

examples/bun-postgres/src/db/query_sql.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by sqlc. DO NOT EDIT.
2+
13
import { Sql } from "postgres";
24

35
export const getAuthorQuery = `-- name: GetAuthor :one

examples/node-better-sqlite3/src/db/query_sql.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by sqlc. DO NOT EDIT.
2+
13
import { Database } from "better-sqlite3";
24

35
export const getAuthorQuery = `-- name: GetAuthor :one

examples/node-mysql2/src/db/query_sql.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by sqlc. DO NOT EDIT.
2+
13
import mysql, { RowDataPacket } from "mysql2/promise";
24

35
type Client = mysql.Connection | mysql.Pool;

examples/node-pg/src/db/query_sql.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by sqlc. DO NOT EDIT.
2+
13
import { QueryArrayConfig, QueryArrayResult } from "pg";
24

35
interface Client {

examples/node-postgres/src/db/query_sql.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Code generated by sqlc. DO NOT EDIT.
2+
13
import { Sql } from "postgres";
24

35
export const getAuthorQuery = `-- name: GetAuthor :one

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function printNode(nodes: Node[]): string {
278278
ScriptKind.TS
279279
);
280280
const printer = createPrinter({ newLine: NewLineKind.LineFeed });
281-
let output = "";
281+
let output = "// Code generated by sqlc. DO NOT EDIT.\n\n";
282282
for (let node of nodes) {
283283
output += printer.printNode(EmitHint.Unspecified, node, resultFile);
284284
output += "\n\n";

0 commit comments

Comments
 (0)