lookbook/vendor/github.com/jackc/pgx/v5/pgconn
soup fc625fb9cf
Initial lookbook implementation
Pinterest-style visual bookmarking app with:
- URL metadata extraction (OG/Twitter meta, oEmbed fallback)
- Image caching in Postgres with 480px thumbnails
- Multi-tag filtering with Ctrl/Cmd for OR mode
- Fuzzy tag suggestions and inline tag editing
- Browser console auth() with first-use password setup
- Brutalist UI with Commit Mono font and Pico CSS
- Light/dark mode via browser preference
2026-01-16 21:14:23 -05:00
..
ctxwatch Initial lookbook implementation 2026-01-16 21:14:23 -05:00
internal/bgreader Initial lookbook implementation 2026-01-16 21:14:23 -05:00
auth_scram.go Initial lookbook implementation 2026-01-16 21:14:23 -05:00
config.go Initial lookbook implementation 2026-01-16 21:14:23 -05:00
defaults.go Initial lookbook implementation 2026-01-16 21:14:23 -05:00
defaults_windows.go Initial lookbook implementation 2026-01-16 21:14:23 -05:00
doc.go Initial lookbook implementation 2026-01-16 21:14:23 -05:00
errors.go Initial lookbook implementation 2026-01-16 21:14:23 -05:00
krb5.go Initial lookbook implementation 2026-01-16 21:14:23 -05:00
pgconn.go Initial lookbook implementation 2026-01-16 21:14:23 -05:00
README.md Initial lookbook implementation 2026-01-16 21:14:23 -05:00

pgconn

Package pgconn is a low-level PostgreSQL database driver. It operates at nearly the same level as the C library libpq. It is primarily intended to serve as the foundation for higher level libraries such as https://github.com/jackc/pgx. Applications should handle normal queries with a higher level library and only use pgconn directly when required for low-level access to PostgreSQL functionality.

Example Usage

pgConn, err := pgconn.Connect(context.Background(), os.Getenv("DATABASE_URL"))
if err != nil {
	log.Fatalln("pgconn failed to connect:", err)
}
defer pgConn.Close(context.Background())

result := pgConn.ExecParams(context.Background(), "SELECT email FROM users WHERE id=$1", [][]byte{[]byte("123")}, nil, nil, nil)
for result.NextRow() {
	fmt.Println("User 123 has email:", string(result.Values()[0]))
}
_, err = result.Close()
if err != nil {
	log.Fatalln("failed reading result:", err)
}

Testing

See CONTRIBUTING.md for setup instructions.