Documentation ¶
Overview ¶
Example ¶
conn := pg.Connect(&pg.Options{ User: "go-pg-test", Database: "datadog", }) // Wrap the connection with the APM hook. pgtrace.Wrap(conn) var user struct { Name string } _, err := conn.QueryOne(&user, "SELECT name FROM users") if err != nil { log.Fatal(err) }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.