Versions in this module Expand all Collapse all v1 v1.0.1 Mar 9, 2021 Changes in this version + const PROFILE_RECORD_ID + const TABLE_COLUMN_NAME_ID + const TABLE_COLUMN_PROFILE_PREFIX + const TABLE_CUSTOM_COLUMN_NAMES + const TABLE_CUSTOM_COLUMN_NAME_ID + const TABLE_CUSTOM_COLUMN_PROFILE_PREFIX + type ColumnProfileData struct + type CustomColumnDefition struct + ColumnDefinition string + ColumnName string + type ProfileDefinition struct + CustomProfileTables []TableDefinition + FullProfileTables []string + type ProfileRecord struct + ID int + ProfileDate time.Time + type ProfileStore struct + UsePascalCase bool + func NewProfileStore(dbConn db.DBConn) *ProfileStore + func (p *ProfileStore) NewProfile() (int, error) + func (p *ProfileStore) RecordTableProfile(tableNameID int, rowCount int, tableSize int64, profileID int) (int, error) + func (p *ProfileStore) RegisterTable(tableName string) (int, error) + func (p *ProfileStore) RegisterTableColumn(tableNameID int, columnTypeID int, columnName string) (int, error) + func (p *ProfileStore) RegisterTableColumnType(columnDataType string) (int, error) + func (p *ProfileStore) RegisterTableCustomColumn(tableNameID int, columnTypeID int, columnName string, columnDefinition string) (int, error) + func (p *ProfileStore) ScaffoldProfileStore() error + func (p *ProfileStore) StoreColumnProfileData(columnNamesID int, columnType string, profileID int, ...) error + func (p *ProfileStore) StoreCustomColumnProfileData(columnNamesID int, columnType *sql.ColumnType, profileID int, ...) error + type Profiler struct + func NewProfiler(targetDBConn db.DBConn, profileDBConn db.DBConn) *Profiler + func NewProfilerWithOptions(targetDBConn db.DBConn, profileDBConn db.DBConn, options ProfilerOptions) *Profiler + func (p *Profiler) ProfileTablesByName(tableNames []string) error + func (p *Profiler) RunProfile(profile ProfileDefinition) error + type ProfilerOptions struct + UsePascalCase bool + type TableColumnName struct + ID int + TableColumnName string + TableColumnTypeID int + TableNameID int + type TableColumnType struct + ID int + TableColumnType string + type TableCustomColumnName struct + CustomColumnDefinition string + ID int + TableColumnName string + TableColumnTypeID int + TableNameID int + type TableDefinition struct + Columns []string + CustomColumns []CustomColumnDefition + TableName string + type TableName struct + ID int + TableName string + type TableProfile struct + ID int + ProfileRecordID int + TableNameID int + TableRowCount int + TableSize int64