GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — sqlb/exec/README.md at main · ubgo/sqlb

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
9 lines (5 loc) · 894 Bytes
/

README.md

Copy path

File metadata and controls

9 lines (5 loc) · 894 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

exec — running a statement

DBTX, One and Each. It takes an interface that both *sql.DB and *sql.Tx satisfy, so it has no driver and no opinion about one.

A Query is not safe to share between goroutines, and this is the layer that says so. It holds pointers into the caller's variables, so two goroutines executing one query interleave each other's rows silently. One and Each refuse an overlapping execution with ErrQueryInUse; the guard is inherited by every statement derived from the builder. It is detection, not prevention.

Full documentation

The page for this package is docs/exec/README.md, with runnable snippets — every one of them copied from a test whose expected output go test checks. The documentation index is ../docs/README.md and the repository README is ../README.md.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.