Zurück zu Projekten
Full-Stack

structify

Go-Structs zu PostgreSQL-Schemas konvertieren – mit Web-Editor, Inline-Tags für Constraints, Indexes und Foreign Keys.

GoPostgreSQLNext.jsTypeScriptDocker

Features

  • Go-Structs mit db:-Tags zu SQL-DDL konvertieren
  • Constraints: CHECK, DEFAULT, ENUM
  • Indexes und Composite Indexes
  • Foreign Keys mit ON DELETE / ON UPDATE
  • Composite Primary Keys und Foreign Keys
  • Interaktiver Web-Editor mit Live-Generierung
  • Dokumentationsseite mit Try-it-Buttons
  • CI/CD mit GitHub Actions, SonarQube, Docker

Code-Beispiel

Go-Struct mit db:-Tags wird automatisch zu PostgreSQL-DDL konvertiert

type User struct {
	ID       int64  `db:"pk"`
	Username string `db:"unique"`
	Email    string `db:"check:length(email) > 0"`
	Status   string `db:"enum:active,inactive,banned"`
	Active   bool   `db:"default:true"`
}