module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Feb 15, 2025
License: Apache-2.0
Opens a new window with license information.
README
¶
go-tablelist-codegen

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)
--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
¶
cmd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.