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 at main · ubgo/sqlb

Expand file tree

/

exec

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

exec

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
exec.go
exec.go
 
 
exec_test.go
exec_test.go
 
 

README.md

Outline

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 01402775 — 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.