go-rds

command module
v0.0.0-...-ac35d28 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

go-rds

gormを使ったレプリケーションありのデータベースの接続等を扱ったものの サンプルです。

環境変数リスト

キー 説明 デフォルト値
DB_HOST データベースのホスト名を設定してください。 database
DB_HOST_R データベースのリーダーのホスト名を設定してください。
ない場合は、ライターと同じで問題ありません。
database
DB_PORT データベースのポートを設定してください。 3306
DB_USER データベースのユーザー名を指定してください。 app
DB_PASS データベースのパスワードを指定してください。 passwd
DB_NAME データベース名を指定してください。 test
DB_CHAR データベースの文字コードを指定してください。 utf8mb4_unicode_ci
DB_LOC データベースのロケーションを指定してください。 Asia/Tokyo

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
infrastructure
interfaces

Jump to

Keyboard shortcuts

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