go-tablelist-codegen

module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 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
  • Run go run github.com/Siroshun09/go-tablelist-codegen/cmd/mysql@<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
  • --host <host>
  • --port <port>
  • --user <username>
  • --password <password>
  • --database <database name>
  • --sslmode <sslmode> (Optional)
    • Default: disable
  • --debug <true/false> (Optional)
    • Prints stacktrace on error
    • Default: false

License

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

Copyright © 2025, Siroshun09

Directories

Path Synopsis
cmd
mysql command

Jump to

Keyboard shortcuts

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