Documentation
¶
Index ¶
- func NewClickhouseDbqDataProfiler(cnn driver.Conn, logger *slog.Logger) dbqcore.DbqDataProfiler
- func NewMysqlDbqDataProfiler(db *sql.DB, logger *slog.Logger) dbqcore.DbqDataProfiler
- func NewPostgresqlDbqDataProfiler(db *sql.DB, logger *slog.Logger) dbqcore.DbqDataProfiler
- type BaseProfiler
- type ClickhouseDbqDataProfiler
- func (c *ClickhouseDbqDataProfiler) GetBlankCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (int64, error)
- func (c *ClickhouseDbqDataProfiler) GetColumns(ctx context.Context, databaseName string, tableName string) ([]*dbqcore.ColumnInfo, error)
- func (c *ClickhouseDbqDataProfiler) GetMostFrequentValue(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*string, error)
- func (c *ClickhouseDbqDataProfiler) GetNullCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (uint64, error)
- func (c *ClickhouseDbqDataProfiler) GetNumericStats(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*dbqcore.NumericStats, error)
- func (c *ClickhouseDbqDataProfiler) GetSampleData(ctx context.Context, dataset string) ([]map[string]interface{}, error)
- func (c *ClickhouseDbqDataProfiler) GetTotalRows(ctx context.Context, dataset string) (uint64, error)
- func (c *ClickhouseDbqDataProfiler) IsNumericType(dataType string) bool
- func (c *ClickhouseDbqDataProfiler) IsStringType(dataType string) bool
- func (c *ClickhouseDbqDataProfiler) ProfileDataset(ctx context.Context, dataset string, sample bool, maxConcurrent int, ...) (*dbqcore.TableMetrics, error)
- type MysqlDbqDataProfiler
- func (p *MysqlDbqDataProfiler) GetBlankCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (int64, error)
- func (p *MysqlDbqDataProfiler) GetColumns(ctx context.Context, schemaName string, tableName string) ([]*dbqcore.ColumnInfo, error)
- func (p *MysqlDbqDataProfiler) GetMostFrequentValue(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*string, error)
- func (p *MysqlDbqDataProfiler) GetNullCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (uint64, error)
- func (p *MysqlDbqDataProfiler) GetNumericStats(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*dbqcore.NumericStats, error)
- func (p *MysqlDbqDataProfiler) GetSampleData(ctx context.Context, dataset string) ([]map[string]interface{}, error)
- func (p *MysqlDbqDataProfiler) GetTotalRows(ctx context.Context, dataset string) (uint64, error)
- func (p *MysqlDbqDataProfiler) IsNumericType(dataType string) bool
- func (p *MysqlDbqDataProfiler) IsStringType(dataType string) bool
- func (p *MysqlDbqDataProfiler) ProfileDataset(ctx context.Context, dataset string, sample bool, maxConcurrent int, ...) (*dbqcore.TableMetrics, error)
- type PostgresqlDbqDataProfiler
- func (p *PostgresqlDbqDataProfiler) GetBlankCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (int64, error)
- func (p *PostgresqlDbqDataProfiler) GetColumns(ctx context.Context, schemaName string, tableName string) ([]*dbqcore.ColumnInfo, error)
- func (p *PostgresqlDbqDataProfiler) GetMostFrequentValue(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*string, error)
- func (p *PostgresqlDbqDataProfiler) GetNullCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (uint64, error)
- func (p *PostgresqlDbqDataProfiler) GetNumericStats(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*dbqcore.NumericStats, error)
- func (p *PostgresqlDbqDataProfiler) GetSampleData(ctx context.Context, dataset string) ([]map[string]interface{}, error)
- func (p *PostgresqlDbqDataProfiler) GetTotalRows(ctx context.Context, dataset string) (uint64, error)
- func (p *PostgresqlDbqDataProfiler) IsNumericType(dataType string) bool
- func (p *PostgresqlDbqDataProfiler) IsStringType(dataType string) bool
- func (p *PostgresqlDbqDataProfiler) ProfileDataset(ctx context.Context, dataset string, sample bool, maxConcurrent int, ...) (*dbqcore.TableMetrics, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMysqlDbqDataProfiler ¶ added in v0.3.0
func NewPostgresqlDbqDataProfiler ¶ added in v0.2.0
Types ¶
type BaseProfiler ¶ added in v0.2.0
type BaseProfiler struct {
// contains filtered or unexported fields
}
func NewBaseProfiler ¶ added in v0.2.0
func NewBaseProfiler(profiler dbqcore.DbqDataProfiler, logger *slog.Logger) *BaseProfiler
func (*BaseProfiler) ProfileDataset ¶ added in v0.2.0
func (p *BaseProfiler) ProfileDataset(ctx context.Context, dataset string, sample bool, maxConcurrent int, collectErrors bool) (*dbqcore.TableMetrics, error)
type ClickhouseDbqDataProfiler ¶
type ClickhouseDbqDataProfiler struct {
// contains filtered or unexported fields
}
func (*ClickhouseDbqDataProfiler) GetBlankCount ¶ added in v0.2.0
func (c *ClickhouseDbqDataProfiler) GetBlankCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (int64, error)
func (*ClickhouseDbqDataProfiler) GetColumns ¶ added in v0.2.0
func (c *ClickhouseDbqDataProfiler) GetColumns(ctx context.Context, databaseName string, tableName string) ([]*dbqcore.ColumnInfo, error)
func (*ClickhouseDbqDataProfiler) GetMostFrequentValue ¶ added in v0.2.0
func (c *ClickhouseDbqDataProfiler) GetMostFrequentValue(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*string, error)
func (*ClickhouseDbqDataProfiler) GetNullCount ¶ added in v0.2.0
func (c *ClickhouseDbqDataProfiler) GetNullCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (uint64, error)
func (*ClickhouseDbqDataProfiler) GetNumericStats ¶ added in v0.2.0
func (c *ClickhouseDbqDataProfiler) GetNumericStats(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*dbqcore.NumericStats, error)
func (*ClickhouseDbqDataProfiler) GetSampleData ¶ added in v0.2.0
func (*ClickhouseDbqDataProfiler) GetTotalRows ¶ added in v0.2.0
func (*ClickhouseDbqDataProfiler) IsNumericType ¶ added in v0.2.0
func (c *ClickhouseDbqDataProfiler) IsNumericType(dataType string) bool
IsNumericType checks if a ClickHouse data type string represents a numeric type.
func (*ClickhouseDbqDataProfiler) IsStringType ¶ added in v0.2.0
func (c *ClickhouseDbqDataProfiler) IsStringType(dataType string) bool
IsStringType checks if a ClickHouse data type is a string type.
func (*ClickhouseDbqDataProfiler) ProfileDataset ¶
func (c *ClickhouseDbqDataProfiler) ProfileDataset(ctx context.Context, dataset string, sample bool, maxConcurrent int, collectErrors bool) (*dbqcore.TableMetrics, error)
type MysqlDbqDataProfiler ¶ added in v0.3.0
type MysqlDbqDataProfiler struct {
// contains filtered or unexported fields
}
func (*MysqlDbqDataProfiler) GetBlankCount ¶ added in v0.3.0
func (p *MysqlDbqDataProfiler) GetBlankCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (int64, error)
func (*MysqlDbqDataProfiler) GetColumns ¶ added in v0.3.0
func (p *MysqlDbqDataProfiler) GetColumns(ctx context.Context, schemaName string, tableName string) ([]*dbqcore.ColumnInfo, error)
func (*MysqlDbqDataProfiler) GetMostFrequentValue ¶ added in v0.3.0
func (p *MysqlDbqDataProfiler) GetMostFrequentValue(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*string, error)
func (*MysqlDbqDataProfiler) GetNullCount ¶ added in v0.3.0
func (p *MysqlDbqDataProfiler) GetNullCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (uint64, error)
func (*MysqlDbqDataProfiler) GetNumericStats ¶ added in v0.3.0
func (p *MysqlDbqDataProfiler) GetNumericStats(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*dbqcore.NumericStats, error)
func (*MysqlDbqDataProfiler) GetSampleData ¶ added in v0.3.0
func (*MysqlDbqDataProfiler) GetTotalRows ¶ added in v0.3.0
func (*MysqlDbqDataProfiler) IsNumericType ¶ added in v0.3.0
func (p *MysqlDbqDataProfiler) IsNumericType(dataType string) bool
func (*MysqlDbqDataProfiler) IsStringType ¶ added in v0.3.0
func (p *MysqlDbqDataProfiler) IsStringType(dataType string) bool
func (*MysqlDbqDataProfiler) ProfileDataset ¶ added in v0.3.0
func (p *MysqlDbqDataProfiler) ProfileDataset(ctx context.Context, dataset string, sample bool, maxConcurrent int, collectErrors bool) (*dbqcore.TableMetrics, error)
type PostgresqlDbqDataProfiler ¶ added in v0.2.0
type PostgresqlDbqDataProfiler struct {
// contains filtered or unexported fields
}
func (*PostgresqlDbqDataProfiler) GetBlankCount ¶ added in v0.2.0
func (p *PostgresqlDbqDataProfiler) GetBlankCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (int64, error)
func (*PostgresqlDbqDataProfiler) GetColumns ¶ added in v0.2.0
func (p *PostgresqlDbqDataProfiler) GetColumns(ctx context.Context, schemaName string, tableName string) ([]*dbqcore.ColumnInfo, error)
func (*PostgresqlDbqDataProfiler) GetMostFrequentValue ¶ added in v0.2.0
func (p *PostgresqlDbqDataProfiler) GetMostFrequentValue(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*string, error)
func (*PostgresqlDbqDataProfiler) GetNullCount ¶ added in v0.2.0
func (p *PostgresqlDbqDataProfiler) GetNullCount(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (uint64, error)
func (*PostgresqlDbqDataProfiler) GetNumericStats ¶ added in v0.2.0
func (p *PostgresqlDbqDataProfiler) GetNumericStats(ctx context.Context, dataset string, column *dbqcore.ColumnInfo) (*dbqcore.NumericStats, error)
func (*PostgresqlDbqDataProfiler) GetSampleData ¶ added in v0.2.0
func (*PostgresqlDbqDataProfiler) GetTotalRows ¶ added in v0.2.0
func (*PostgresqlDbqDataProfiler) IsNumericType ¶ added in v0.2.0
func (p *PostgresqlDbqDataProfiler) IsNumericType(dataType string) bool
func (*PostgresqlDbqDataProfiler) IsStringType ¶ added in v0.2.0
func (p *PostgresqlDbqDataProfiler) IsStringType(dataType string) bool
func (*PostgresqlDbqDataProfiler) ProfileDataset ¶ added in v0.2.0
func (p *PostgresqlDbqDataProfiler) ProfileDataset(ctx context.Context, dataset string, sample bool, maxConcurrent int, collectErrors bool) (*dbqcore.TableMetrics, error)
Click to show internal directories.
Click to hide internal directories.