Documentation ¶
Index ¶
- func CreateConfigFile(specifiedPath string) error
- func ParsePast(str string) (string, error)
- type Config
- type ConnectionConfig
- type DB
- type DatabaseAccessPoint
- type DatabaseAccessPointHub
- type DatabaseAccessPointOnSSH
- type DatabaseConnection
- func (c *DatabaseConnection) Close()
- func (c *DatabaseConnection) Ping() error
- func (c *DatabaseConnection) SelectDateRelatedColumnValues(table string, stmtInWhereIn string, ignoreColumns []string) ([]string, [][]string, error)
- func (c *DatabaseConnection) SelectDateRelatedColumnValuesNowAndToBeUpdated(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ...) ([]string, [][]string, [][]string, error)
- func (c *DatabaseConnection) SelectDateRelatedColumnValuesToBeUpdated(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ...) ([]string, [][]string, error)
- func (c *DatabaseConnection) SelectDateRelatedColumns(table string, ignoreColumns []string) ([]string, error)
- func (c *DatabaseConnection) SelectPrimaryKeyColumns(table string) ([]string, error)
- func (c *DatabaseConnection) SelectToUpdate(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ...) ([]string, [][]string, []string, [][]string, [][]string, error)
- func (c *DatabaseConnection) SelectToUpdateQueryBuilder(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ...) (string, []string, error)
- func (c *DatabaseConnection) SelectToUpdateToString(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ...) (string, error)
- func (c *DatabaseConnection) Update(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ...) error
- func (c *DatabaseConnection) UpdateQueryBuilder(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ...) (string, error)
- type QueryBuilderSourceForColumnValues
- type QueryBuilderSourceForSchemaInformation
- type QueryBuilderSourcePartOfInterval
- type QueryBuilderSourceToUpdate
- type SSH
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfigFile ¶
Types ¶
type Config ¶
type Config struct { DefaultConnection string `yaml:"default_connection"` Connections []ConnectionConfig }
func LoadConfig ¶
func (*Config) FindConnection ¶
func (c *Config) FindConnection(targetConnectionName string) (*ConnectionConfig, error)
type ConnectionConfig ¶
type ConnectionConfig struct { Name string Driver string Hostname string Port string Username string Password string Database string SSHKeyPath string SSHHost string SSHPort string SSHUser string SSHPassphrase string }
func (*ConnectionConfig) CreateDatabaseConnection ¶
func (connection *ConnectionConfig) CreateDatabaseConnection() (*DatabaseConnection, error)
func (*ConnectionConfig) Override ¶
func (connection *ConnectionConfig) Override(prioritizedConnection *ConnectionConfig, overridePort bool, overrideSSHPort bool) (*ConnectionConfig, error)
func (*ConnectionConfig) ToString ¶
func (connection *ConnectionConfig) ToString() string
type DatabaseAccessPoint ¶
type DatabaseAccessPoint struct { Username string Password string Host string Port int Schema string }
func (*DatabaseAccessPoint) CreateDatabaseConnection ¶
func (dap *DatabaseAccessPoint) CreateDatabaseConnection() (*DatabaseConnection, error)
type DatabaseAccessPointHub ¶
type DatabaseAccessPointHub interface {
CreateDatabaseConnection() (*DatabaseConnection, error)
}
type DatabaseAccessPointOnSSH ¶
func (*DatabaseAccessPointOnSSH) CreateDatabaseConnection ¶
func (dapOnSsh *DatabaseAccessPointOnSSH) CreateDatabaseConnection() (*DatabaseConnection, error)
type DatabaseConnection ¶
type DatabaseConnection struct {
// contains filtered or unexported fields
}
func (*DatabaseConnection) Close ¶
func (c *DatabaseConnection) Close()
func (*DatabaseConnection) Ping ¶
func (c *DatabaseConnection) Ping() error
func (*DatabaseConnection) SelectDateRelatedColumnValues ¶
func (*DatabaseConnection) SelectDateRelatedColumnValuesNowAndToBeUpdated ¶
func (c *DatabaseConnection) SelectDateRelatedColumnValuesNowAndToBeUpdated(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ignoreColumns []string) ([]string, [][]string, [][]string, error)
func (*DatabaseConnection) SelectDateRelatedColumnValuesToBeUpdated ¶
func (c *DatabaseConnection) SelectDateRelatedColumnValuesToBeUpdated(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ignoreColumns []string) ([]string, [][]string, error)
func (*DatabaseConnection) SelectDateRelatedColumns ¶
func (c *DatabaseConnection) SelectDateRelatedColumns(table string, ignoreColumns []string) ([]string, error)
func (*DatabaseConnection) SelectPrimaryKeyColumns ¶
func (c *DatabaseConnection) SelectPrimaryKeyColumns(table string) ([]string, error)
func (*DatabaseConnection) SelectToUpdate ¶
func (*DatabaseConnection) SelectToUpdateQueryBuilder ¶
func (c *DatabaseConnection) SelectToUpdateQueryBuilder(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ignoreColumns []string) (string, []string, error)
func (*DatabaseConnection) SelectToUpdateToString ¶
func (c *DatabaseConnection) SelectToUpdateToString(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ignoreColumns []string) (string, error)
func (*DatabaseConnection) Update ¶
func (c *DatabaseConnection) Update(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ignoreColumns []string) error
func (*DatabaseConnection) UpdateQueryBuilder ¶
func (c *DatabaseConnection) UpdateQueryBuilder(table string, interval QueryBuilderSourcePartOfInterval, stmtInWhereIn string, ignoreColumns []string) (string, error)
type QueryBuilderSourceForColumnValues ¶
type QueryBuilderSourceForColumnValues struct { QueryBuilderSourceForSchemaInformation // contains filtered or unexported fields }
type QueryBuilderSourceForSchemaInformation ¶
type QueryBuilderSourceForSchemaInformation struct {
// contains filtered or unexported fields
}
type QueryBuilderSourcePartOfInterval ¶
type QueryBuilderSourcePartOfInterval struct {
// contains filtered or unexported fields
}
func ParseInterval ¶
func ParseInterval(past string, future string) (*QueryBuilderSourcePartOfInterval, error)
type QueryBuilderSourceToUpdate ¶
type QueryBuilderSourceToUpdate struct { QueryBuilderSourceForColumnValues QueryBuilderSourcePartOfInterval }
Click to show internal directories.
Click to hide internal directories.