mirror of
https://github.com/hanzoai/o11y.git
synced 2026-10-15 12:58:33 +00:00
Full rebrand of the SigNoz observability platform: - Go module: github.com/SigNoz/signoz → github.com/hanzoai/o11y - Frontend: @signozhq/* → @hanzo/o11y-*, posthog-js → @hanzo/insights - Docker: signoz/* → ghcr.io/hanzoai/o11y* - ClickHouse → Hanzo Datastore (hanzoai/datastore) - Env vars: SIGNOZ_* → HANZO_* - DB tables: signoz_* → o11y_* - All branding, URLs, docs updated - 2172 files changed
29 lines
543 B
Go
29 lines
543 B
Go
package sqlitesqlschema
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/hanzoai/o11y/pkg/sqlschema"
|
|
)
|
|
|
|
type Formatter struct {
|
|
sqlschema.Formatter
|
|
}
|
|
|
|
func (formatter Formatter) SQLDataTypeOf(dataType sqlschema.DataType) string {
|
|
if dataType == sqlschema.DataTypeNumeric {
|
|
return "REAL"
|
|
}
|
|
|
|
return strings.ToUpper(dataType.String())
|
|
}
|
|
|
|
func (formatter Formatter) DataTypeOf(dataType string) sqlschema.DataType {
|
|
switch strings.ToUpper(dataType) {
|
|
case "REAL":
|
|
return sqlschema.DataTypeNumeric
|
|
}
|
|
|
|
return formatter.Formatter.DataTypeOf(dataType)
|
|
}
|