add FormatBytes for dialect
This commit is contained in:
parent
4bcb0fbd6a
commit
e649ef538f
|
@ -29,6 +29,7 @@ type Dialect interface {
|
||||||
DB() *DB
|
DB() *DB
|
||||||
DBType() DbType
|
DBType() DbType
|
||||||
SqlType(*Column) string
|
SqlType(*Column) string
|
||||||
|
FormatBytes(b []byte) string
|
||||||
|
|
||||||
QuoteStr() string
|
QuoteStr() string
|
||||||
AndStr() string
|
AndStr() string
|
||||||
|
@ -90,6 +91,10 @@ func (b *Base) DBType() DbType {
|
||||||
return b.Uri.DbType
|
return b.Uri.DbType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (b *Base) FormatBytes(bs []byte) string {
|
||||||
|
return fmt.Sprintf("0x%x", bs)
|
||||||
|
}
|
||||||
|
|
||||||
func (b *Base) DriverName() string {
|
func (b *Base) DriverName() string {
|
||||||
return b.driverName
|
return b.driverName
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue