complex

command
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 6 Imported by: 0

README

Complex Example - Advanced SQL Features

This example demonstrates advanced SQL features: joins, CTEs, aggregations, and sqlc macros.

Features Demonstrated

  • Many-to-many relationships (posts <-> tags)
  • CTEs (Common Table Expressions)
  • JOINs (INNER, LEFT)
  • Aggregations (COUNT, GROUP BY)
  • sqlc macros (slice, arg)
  • Complex queries with subqueries

Schema

  • authors - Blog authors
  • posts - Blog posts with foreign key to authors
  • tags - Available tags
  • post_tags - Many-to-many join table

Running

cd examples/complex
db-catalyst
go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL