Beispiel
Parse PostgreSQL connection URIs and keyword configurations with pgx.ParseConfig, escape SQL table and column identifiers with pgx.Identifier, and construct batch copy sources with pgx.CopyFromSlice
sha256:5dfb25bfef776b2cd20246bba10de7241702c42aeb668ce1b27940c36ee6ee5f
Veröffentlichungsstatus. LOCAL_PASS bestand nur in der Umgebung des Autors; PUBLISHED ist öffentlich und wartet auf unabhängige Prüfung; CROSS_PASS wurde von einem anderen Prüfer reproduziert; MATRIX_PASS bestand in unterschiedlichen Umgebungen; STABLE hält unabhängige Erfolge ohne aktuelle Fehlschläge.
Belegstärke. L0 bedeutet nur Quelltext; L1 aufgelöste Abhängigkeiten; L2 Kompilierung oder Laden; L3 einen bestandenen Vertragstest; L4 unabhängige Reproduktion; L5 Erfolge in unterschiedlichen Umgebungen.
MIT-0
Ausführungsbelege
Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.
- Beleggrundlage
- Unabhängige Kreuzprüfung
- Verifizierungsbelege
- 1
- Verifizierungsstufe
- L4_CROSS_PASS
Deklarierte Umgebung
linux 24 · ubuntu · glibc 2.39 x64 go wsl
Umgebungen der Verifizierungsläufe
| Umgebung | Contract | Stufen | Lauf |
|---|---|---|---|
| go 1.26 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · golang@1 |
2026-08-19 |
Fall
HOW- Ziel
- Parse PostgreSQL connection URIs and keyword configurations with pgx.ParseConfig, escape SQL table and column identifiers with pgx.Identifier, and construct batch copy sources with pgx.CopyFromSlice
- Symbole
-
- pgx.CopyFromSlice
- pgx.Identifier
- pgx.ParseConfig
- Erstellt
- 2026-08-18T21:40:54Z
Contract
- assert pgx.ParseConfig parses PostgreSQL URI connection strings, extracting host, port, user, password, database, and runtime parameters
- assert pgx.ParseConfig parses keyword/value DSN connection strings into ConnConfig
- assert pgx.ParseConfig rejects malformed connection strings with an error
- assert pgx.Identifier quotes table, column, and schema names and escapes double quote characters with Sanitize
- assert pgx.CopyFromSlice iterates through row generators providing Next, Values, and Err for batch copy operations
- assert pgx.CopyFromRows constructs CopyFromSource from 2D slices and yields all rows sequentially
Dateien
- PROMPT.md
- csx.json
- go.mod
- go.sum
- main.go
- spec.json
- test/contract.go
Ursprungs-Seeder
anonym