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

Expand file tree

/

pg

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

pg

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
crypto
crypto
 
 
earth
earth
 
 
fuzzy
fuzzy
 
 
ltree
ltree
 
 
postgis
postgis
 
 
testdata
testdata
 
 
trgm
trgm
 
 
unaccent
unaccent
 
 
vector
vector
 
 
README.md
README.md
 
 
agg.go
agg.go
 
 
alter.go
alter.go
 
 
alter_test.go
alter_test.go
 
 
alterforms.go
alterforms.go
 
 
alterforms_test.go
alterforms_test.go
 
 
alterobjects.go
alterobjects.go
 
 
alterobjects_test.go
alterobjects_test.go
 
 
array.go
array.go
 
 
arrayshape_test.go
arrayshape_test.go
 
 
closedsets.go
closedsets.go
 
 
closedsets_test.go
closedsets_test.go
 
 
constraint_values_test.go
constraint_values_test.go
 
 
coverage_test.go
coverage_test.go
 
 
ddl_coverage_test.go
ddl_coverage_test.go
 
 
describe.go
describe.go
 
 
describe_test.go
describe_test.go
 
 
entry.go
entry.go
 
 
entry_test.go
entry_test.go
 
 
exclude.go
exclude.go
 
 
ext.go
ext.go
 
 
fts.go
fts.go
 
 
function.go
function.go
 
 
function_test.go
function_test.go
 
 
guards_test.go
guards_test.go
 
 
index.go
index.go
 
 
json.go
json.go
 
 
jsontable.go
jsontable.go
 
 
literal_test.go
literal_test.go
 
 
lock.go
lock.go
 
 
locktable.go
locktable.go
 
 
locktable_test.go
locktable_test.go
 
 
math.go
math.go
 
 
merge.go
merge.go
 
 
misc.go
misc.go
 
 
more.go
more.go
 
 
objectforms.go
objectforms.go
 
 
objectforms_test.go
objectforms_test.go
 
 
objects.go
objects.go
 
 
objects_test.go
objects_test.go
 
 
operatorshape_test.go
operatorshape_test.go
 
 
ops.go
ops.go
 
 
optionrank_gate_test.go
optionrank_gate_test.go
 
 
partition.go
partition.go
 
 
pg.go
pg.go
 
 
pg18.go
pg18.go
 
 
pg18_test.go
pg18_test.go
 
 
pg_test.go
pg_test.go
 
 
policy.go
policy.go
 
 
precedence_test.go
precedence_test.go
 
 
range.go
range.go
 
 
recursive.go
recursive.go
 
 
roles.go
roles.go
 
 
select.go
select.go
 
 
sequence.go
sequence.go
 
 
source.go
source.go
 
 
sqljson.go
sqljson.go
 
 
sqltype.go
sqltype.go
 
 
table.go
table.go
 
 
table_test.go
table_test.go
 
 
tableforms.go
tableforms.go
 
 
tableforms_test.go
tableforms_test.go
 
 
tableshape.go
tableshape.go
 
 
tableshape_test.go
tableshape_test.go
 
 
text.go
text.go
 
 
tier4.go
tier4.go
 
 
tier5.go
tier5.go
 
 
tier5_test.go
tier5_test.go
 
 
time.go
time.go
 
 
trigger.go
trigger.go
 
 
truncate.go
truncate.go
 
 
truncate_test.go
truncate_test.go
 
 
typedef.go
typedef.go
 
 
typedef_test.go
typedef_test.go
 
 
value_semantics_test.go
value_semantics_test.go
 
 
view.go
view.go
 
 
window.go
window.go
 
 
write.go
write.go
 
 
zerovalue_test.go
zerovalue_test.go
 
 

README.md

Outline

pg — PostgreSQL statements and constructs

Everything Postgres in one import. Statements start here, pg.Select, pg.Insert, pg.Update and pg.Delete, with the dialect in their type; and every Postgres construct that goes inside them is here too: arrays, JSONB, ranges, full-text search, DISTINCT ON, ON CONFLICT, MERGE, locking, and eight extension sub-packages built on the guarded constructors it exports.

A rendering test proves the text, and only execution proves the SQL. Running these constructs against a real Postgres 17 from contrib/driver-pgx found eleven whose rendering tests passed and whose SQL Postgres rejects. A new construct here is not done until it has an entry in that driver's catalogue. Extensions never edit this package — that is what the exported guarded constructors are for.

Full documentation

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