struct Apps::DBSettings

Included Modules

Defined in:

pb-Apps/CATS_Login.pb.cr

Constant Summary

FIELDS = {1 => {name: :db_host, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :db_port, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 3 => {name: :db_name, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 4 => {name: :db_user, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 5 => {name: :db_pass, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(db_host : String, db_port : String, db_name : String, db_user : String, db_pass : String) #

def self.new(buf : Protobuf::Buffer) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def db_host : String #

def db_host=(db_host : String) #

def db_name : String #

def db_name=(db_name : String) #

def db_pass : String #

def db_pass=(db_pass : String) #

def db_port : String #

def db_port=(db_port : String) #

def db_user : String #

def db_user=(db_user : String) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #