schema-builder

command
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

README

Schema Builder

This example demonstrates how to use the schema builder to create and modify database tables.

Features Demonstrated

  • Creating new tables with various column types
  • Adding columns to existing tables
  • Dropping columns from tables
  • Adding indexes (unique and non-unique)
  • Dropping tables
  • Using default values and nullable columns
  • Timestamps and soft deletes

Running the Example

cd examples/schema-builder
go run main.go

Prerequisites

  • SQLite database (or modify the DSN to use your preferred database)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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