Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sql generator in bulk

License

NotificationsYou must be signed in to change notification settings

miyataka/sqlgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Reference

SQLGen is a command-line tool written in Go that helps you generate SQL queries efficiently.

Features

  • Generate basic SQL queries for PostgreSQL and MySQL

Installation

To install SQLGen, you need to have Go installed on your machine. Then, you can use the following command to install SQLGen:

# postgresgo install github.com/miyataka/sqlgen/cmd/psqlgen@latest# mysqlgo install github.com/miyataka/sqlgen/cmd/mysqlgen@latest

Usage

After installing SQLGen, you can use it from the command line. Here are some examples of how to use SQLGen:

# Generate SQL queries for PostgreSQLpsqlgen --dsn="postgres://user:password@localhost:5432/dbname"# Generate SQL queries for MySQLmysqlgen --dsn="user:password@tcp(localhost:3306)/dbname"

When using with sqlc, you can generate comment for sqlc with just--sqlc flag:

# Generate SQL queries for PostgreSQL with comments for sqlcpsqlgen --dsn="postgres://user:password@localhost:5432/dbname" --sqlc# Generate SQL queries for MySQL with comments for sqlcmysqlgen --dsn="user:password@tcp(localhost:3306)/dbname" --sqlc

Contributing

We welcome contributions to SQLGen! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License.

About

sql generator in bulk

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp