mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
10 lines
144 B
Go
10 lines
144 B
Go
package main
|
|||
|
|||
import "database/sql"
|
|||
|
|||
func querySafe(dsn string) {
|
|||
db, _ := sql.Open("postgres", dsn)
|
|||
defer db.Close()
|
|||
db.Query("SELECT 1")
|
|||
}
|