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

Expand file tree

/

stmt

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

stmt

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
alias_collision_test.go
alias_collision_test.go
 
 
binding.go
binding.go
 
 
clause.go
clause.go
 
 
clone.go
clone.go
 
 
clone_test.go
clone_test.go
 
 
constants.go
constants.go
 
 
engine.go
engine.go
 
 
engine_precedence_test.go
engine_precedence_test.go
 
 
escape_test.go
escape_test.go
 
 
guard_test.go
guard_test.go
 
 
inline_test.go
inline_test.go
 
 
layers.go
layers.go
 
 
option.go
option.go
 
 
ordering_test.go
ordering_test.go
 
 
query.go
query.go
 
 
recursive_test.go
recursive_test.go
 
 
select.go
select.go
 
 
setop_arity_test.go
setop_arity_test.go
 
 
shape_test.go
shape_test.go
 
 
stmt_test.go
stmt_test.go
 
 
subquery.go
subquery.go
 
 
typestate_internal_test.go
typestate_internal_test.go
 
 
value_semantics_test.go
value_semantics_test.go
 
 
write.go
write.go
 
 
writebuilders_test.go
writebuilders_test.go
 
 

README.md

Outline

stmt — statements, clauses and Query

SELECT, INSERT, UPDATE and DELETE, the clause slots that let a package outside this module add a clause, and the Query a statement builds to.

A builder method returns a derived statement and never writes to its receiver. base.Where(x) leaves base alone, so deriving several queries from one template is safe by construction rather than by remembering Clone. And a write cannot be built until it is complete: an unfiltered UPDATE has no Build method at all, so it does not compile. Both are pinned by tests that were verified by breaking them.

Full documentation

The page for this package is docs/stmt/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.