Registry / database / alexedwards-scs-postgresstore

alexedwards-scs-postgresstore

JSON →
library0.0.0-20251002162104-209de6e426degogounverified

Package postgresstore provides a PostgreSQL-backed session store for the SCS session management library.

go get github.com/alexedwards/scs/postgresstore
INSTALL
IMPORT
SIG · ALEXEDWARDS-SCS-PO
A
alexedwards-scs-postgresstore
databasegov0.0.0-20251002162104-209de6e426de
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

postgresstore
github.com/alexedwards/scs/postgresstore

Creates a session manager backed by a PostgreSQL store.

package main import ( "database/sql" "github.com/alexedwards/scs/v2" "github.com/alexedwards/scs/postgresstore" ) func main() { db, _ := sql.Open("postgres", "postgres://user:pass@localhost/db") store := postgresstore.New(db) sessionManager := scs.New() sessionManager.Store = store }
Debug
Known issues
gotchaRequires a properly initialized PostgreSQL database with the sessions table.
fix
Run the SQL migration script provided in the documentation to create the sessions table.
affects: >=0.0.0
Upgrade
Version history
0.0.0-20251002162104-209de6e426delatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
alexedwards-scs-postgresstore — go get alexedwards-scs-postgresstore · libregistry