{"id":53518,"library":"data-dog-go-txdb","title":"Go txdb","description":"Single-transaction database/sql driver for testing database interactions within a transaction.","status":"active","version":"0.2.1","language":"go","source_language":null,"source_url":"https://github.com/DATA-DOG/go-txdb","tags":["database","testing","transaction","sql"],"install":[{"cmd":"go get github.com/DATA-DOG/go-txdb","lang":"bash","label":"Install github.com/DATA-DOG/go-txdb"}],"dependencies":[],"imports":[{"symbol":"txdb","correct":"github.com/DATA-DOG/go-txdb"}],"quickstart":{"code":"package main\n\nimport (\n\t\"database/sql\"\n\t\"github.com/DATA-DOG/go-txdb\"\n)\n\nfunc init() {\n\ttxdb.Register(\"txdb\", \"mysql\", \"user:pass@/dbname\")\n}\n\nfunc main() {\n\tdb, _ := sql.Open(\"txdb\", \"identifier\")\n\tdefer db.Close()\n}","lang":"go","description":"Register and open a transaction-based database connection."},"warnings":[{"fix":"Use for testing only; do not use in production.","message":"Each connection uses a single transaction; changes are rolled back after the connection closes.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'databas':10,15 'database/sql':6 'driver':7 'go':1 'interact':11 'singl':4 'single-transact':3 'sql':18 'test':9,16 'transact':5,14,17 'txdb':2 'within':12","created_at":"2026-06-15T07:42:34.717077+00:00","updated_at":"2026-06-15T07:42:34.717077+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/DATA-DOG/go-txdb","github":"https://github.com/DATA-DOG/go-txdb","docs":"https://pkg.go.dev/github.com/DATA-DOG/go-txdb#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}