go-tablelist-codegen

module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0

README

go-tablelist-codegen

Release GitHub Workflow Status GitHub

A Go library to generate structs that define table and column names in the database.

Usage

CLI
  • MySQL: go run github.com/Siroshun09/go-tablelist-codegen/cmd/mysql@<version> <flags>
  • PostgreSQL: go run github.com/Siroshun09/go-tablelist-codegen/cmd/postgresql@<version> <flags>
  • SQLite: go run github.com/Siroshun09/go-tablelist-codegen/cmd/sqlite@<version> <flags>
Library
go get github.com/Siroshun09/go-tablelist-codegen

Flags

  • --package-name <package name>
  • --output <output filepath> (Optional)
    • If not specified, the codegen prints the generated code to stdout
  • --debug <true/false> (Optional)
    • Prints stacktrace on error
    • Default: false
For MySQL and PostgreSQL
  • --host <host>
  • --port <port>
  • --user <username>
  • --password <password>
  • --database <database name>
  • --sslmode <sslmode> (Optional)
    • Default: disable
For SQLite
  • --schema-file <schema filepath>

License

This project is under the Apache License version 2.0. Please see LICENSE for more info.

Copyright © 2025-2026, Siroshun09

Directories

Path Synopsis
cmd
mysql command
postgresql command
sqlite command

Jump to

Keyboard shortcuts

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