Skip to content

Commit 591be92

Browse files
committed
fix(mssql): rename engine from sqlserver to mssql
Change the engine identifier from "sqlserver" to "mssql" for consistency with the package naming and industry conventions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 9d8dbd5 commit 591be92

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/authors/sqlc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ sql:
4646
- name: sqlserver
4747
schema: sqlserver/schema.sql
4848
queries: sqlserver/query.sql
49-
engine: sqlserver
49+
engine: mssql
5050
database:
5151
uri: "sqlserver://sa:MySecretPassword1!@localhost:1433?database=master"
5252
gen:

internal/compiler/engine.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ func NewCompiler(conf config.SQL, combo config.CombinedSettings, parserOpts opts
121121

122122
// MSSQL only supports database-only mode
123123
if conf.Database == nil {
124-
return nil, fmt.Errorf("sqlserver engine requires database configuration")
124+
return nil, fmt.Errorf("mssql engine requires database configuration")
125125
}
126126
if conf.Database.URI == "" && !conf.Database.Managed {
127-
return nil, fmt.Errorf("sqlserver engine requires database.uri or database.managed")
127+
return nil, fmt.Errorf("mssql engine requires database.uri or database.managed")
128128
}
129129
c.databaseOnlyMode = true
130130
// Create the MSSQL analyzer (implements Analyzer interface)

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const (
5454
EngineMySQL Engine = "mysql"
5555
EnginePostgreSQL Engine = "postgresql"
5656
EngineSQLite Engine = "sqlite"
57-
EngineMSSQL Engine = "sqlserver"
57+
EngineMSSQL Engine = "mssql"
5858
)
5959

6060
type Config struct {

0 commit comments

Comments
 (0)