From 11dc4410e7f1e44a7248e3b1380b347e2b780d9c Mon Sep 17 00:00:00 2001 From: Wael Nasreddine Date: Sat, 21 Mar 2026 00:15:08 -0700 Subject: [PATCH] fix: the PostgreSQL wrapper is incorrectly generated due to whitespace --- generator/templates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/templates.go b/generator/templates.go index 2780c36..d4af70e 100644 --- a/generator/templates.go +++ b/generator/templates.go @@ -54,10 +54,10 @@ var ( ` const wrapperTemplate = `// Code generated by sqlc-multi-db. DO NOT EDIT. -{{- if .Engine.IsPostgres}} +{{if .Engine.IsPostgres}} //go:build !js -{{end -}} +{{- end -}} package {{.PackageName}} import (