Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit27833be

Browse files
authored
feat: Add DO NOT EDIT comment to files (#17)
* feat: Add DO NOT EDIT comment to files* Update examples
1 parentcb1253f commit27833be

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
importmysql,{RowDataPacket}from"mysql2/promise";
24

35
typeClient=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
interfaceClient{

‎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
exportconstgetAuthorQuery=`-- 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
exportconstgetAuthorQuery=`-- 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
importmysql,{RowDataPacket}from"mysql2/promise";
24

35
typeClient=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
interfaceClient{

‎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
exportconstgetAuthorQuery=`-- 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
constprinter=createPrinter({newLine:NewLineKind.LineFeed});
281-
letoutput="";
281+
letoutput="// Code generated by sqlc. DO NOT EDIT.\n\n";
282282
for(letnodeofnodes){
283283
output+=printer.printNode(EmitHint.Unspecified,node,resultFile);
284284
output+="\n\n";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp