schema-builder

command
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: AGPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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