github.com/kaydxh/golang@v0.0.131/pkg/database/mysql/mysql.proto (about) 1 syntax = "proto3"; 2 3 package go.pkg.database.mysql; 4 import "google/protobuf/duration.proto"; 5 6 option go_package = "github.com/kaydxh/go.pkg.database.mysql;mysql"; 7 8 message Mysql { 9 bool enabled = 1; 10 string address = 2; 11 string username = 3; 12 string password = 4; 13 string db_name = 5; 14 15 int32 max_connections = 6; 16 int32 max_idle_connections = 7; 17 18 google.protobuf.Duration dial_timeout = 8; 19 google.protobuf.Duration read_timeout = 9; 20 // https://github.com/go-sql-driver/mysql#writetimeout 21 google.protobuf.Duration write_timeout = 10; 22 google.protobuf.Duration max_life_time = 11; 23 24 google.protobuf.Duration max_wait_duration = 12; 25 google.protobuf.Duration fail_after_duration = 13; 26 bool interpolate_params = 14; 27 }