Skip to content

Latest commit

History

History
41 lines (27 loc) 路 693 Bytes

CLI.md

File metadata and controls

41 lines (27 loc) 路 693 Bytes

Command line tool (sqlgen)

Syntax

Use the following syntax to run sqlgen commands from your terminal window:

sqlgen [command] [flags]

where command, and flags are:

  • command: Specifies the operation that you want to perform.
  • flags: Specifies optional flags.

Cheat Sheet

  • Create a configuration file sqlgen.yml in current directory.
sqlgen init
  • Check sqlgen version.
sqlgen version
  • Generate necessary code for specific location, glob is support.
# sqlgen generate [source]
sqlgen generate ./examples/*.go

# or
sqlgen -c config.yml # this will load `config.yml`

# or
sqlgen # this will load `sqlgen.yml`