Help us shape the future of Go! Take the 2026 Go Developer Survey

contains

command
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Measurement probe for the `contains` operator (specs/CONTRACT-CONTAINS.md). Not part of the build: run with

$env:COMPAT_POSTGRES_DSN='postgres://postgres:***@host:5434/postgres?sslmode=disable'
go run ./experiments/contains

It talks to real SQLite (modernc) and real PostgreSQL (pgx) and prints the raw measurements that decide T1 (instr/strpos equivalence on the hostile corpus), T2 (which catalog contexts accept instr/strpos and whether they are deterministic for an index), T3 (non-text operands) and the red-team cases (empty needle, NULL on either side, nested not/or, column-as-needle). The DSN password is never printed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL