uptrace / bun

SQL-first Golang ORM
https://bun.uptrace.dev
BSD 2-Clause "Simplified" License
3.46k stars 206 forks source link

Documentation Pgx section update #997

Closed msavic-dev22 closed 1 month ago

msavic-dev22 commented 1 month ago

The code example in Pgx section is outdated. Currently there is this code:

config, err := pgx.ParseConfig("postgres://postgres:@localhost:5432/test?sslmode=disable")
if err != nil {
    panic(err)
}
config.PreferSimpleProtocol = true

but PreferSimpleProtocol does not exists. Instead it should be:

config, err := pgx.ParseConfig("postgres://postgres:@localhost:5432/test?sslmode=disable")
if err != nil {
    panic(err)
}
config.DefaultQueryExecMode = pgx.QueryExecModeSimpleProtocol
codeliger commented 1 month ago

@vmihailenco It looks like the link to contribute to the docs is broken. There is no way for us to make PR to update documentation

vmihailenco commented 1 month ago

Thanks, the documentation will be updated on the next deploy.