sqlc-dev / sqlc

Generate type-safe code from SQL
https://sqlc.dev
MIT License
13.54k stars 809 forks source link

Documentation missing for sql_driver #3582

Closed YvanDaSilva closed 3 hours ago

YvanDaSilva commented 2 months ago

Version

1.27.0

What happened?

Missing configuration entry for driver change. https://docs.sqlc.dev/en/stable/reference/config.html#go

Driver changes can be required by sqlc, such as when using :copyfrom https://docs.sqlc.dev/en/stable/howto/insert.html#using-copyfrom

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

{
  "version": "2",
  "sql": [{
    "schema": "schema.sql",
    "queries": "query.sql",
    "engine": "mysql",
    "gen": {
      "go": {
        "out": "db",
        "sql_driver": "github.com/go-sql-driver/mysql"
      }
    }
  }]
}

Playground URL

No response

What operating system are you using?

No response

What database engines are you using?

No response

What type of code are you generating?

No response