# README
###Example
Config file with all database properties
A config file which as all DB defined. This config has 2 database in it; first is mysql , and second is scylla
databases:
configs:
master:
type: mysql
user: user_1
password: password_1
url: [localhost]
port: 1234
db: test_1
scylla:
type: scylla
user: user_2
password: password_2
url: [localhost]
port: 12345
db: test_2
Code
type mainConfig struct {
Databases Configs `yaml:"databases"`
}
var err error
configs := testParsingConfig{}
err = gox.ReadYaml("./config.yaml", &configs)
assert.NoError(t, err)
assert.Equal(t, 2, len(configs.Databases.Configs))
# Functions
Get the registered database.
No description provided by the author
No description provided by the author
Register database to plugin store.
# Constants
All operations supported in database.
All operations supported in database.
All operations supported in database.
All operations supported in database.
All operations supported in database.
All operations supported in database.
All operations supported in database.
All operations supported in database.
# Structs
No description provided by the author
No description provided by the author
Error to represent a fail to insert.
Error when we do not find any record.
# Interfaces
No description provided by the author
Provides all database operations.
Execute a operation e.g.
Execute one or many records in a single batch.
Insert operation to provide persist functionality.
Select operation to fetch single or all records based on the query.