MCPcopy Create free account
hub / github.com/klauspost/password / ExampleNewPostgresql

Function ExampleNewPostgresql

drivers/sqlpw/postgres_test.go:90–104  ·  view source on GitHub ↗

Example of using a Postgres database Uses 'pwtesttable' in the 'testschema' schema, and reads/adds to the "pass" column. Table can be created like this: `CREATE TABLE ` + table + ` ("`+ column +`" VARCHAR(64) PRIMARY KEY);` For Postgres to ignore duplicate inserts, you can use a rule like this:

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

NewPostgresqlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…