sqlboiler

command
v0.0.0-...-4cf218f Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 7 Imported by: 0

README

sqlboiler

Overview

Sample code using sqlboiler to access database.

Getting Started

  1. Uncomment

Check this comment

  1. Start mysql container
docker-compose up -d mysql
  1. Run the code
go run sqlboiler/main.go
If you want to generate code
  1. Install packages
go install github.com/volatiletech/sqlboiler/v4@v4.14.2
go install github.com/volatiletech/sqlboiler/v4/drivers/sqlboiler-mysql@v4.14.2
  1. Change directory
cd sqlboiler
  1. Generate code
sqlboiler mysql --output entity --pkgname entity --add-soft-deletes

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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