2991 return buf.String()
2992}
2993
2994func TestReadRaw(t *testing.T) {2995 type TestModel struct {
2996 Id int64
2997 Name string
2180}
2181
2182// GenerateSpecifyIndex return a specifying index clause
2183func (d *dbBase) GenerateSpecifyIndex(tableName string, useIndex int, indexes []string) string {2184 var s []string
2185 Q := d.TableQuote()
2186 for _, index := range indexes {
2170}
2171
2172// not implement.
2173func (d *dbBase) ShowColumnsQuery(table string) string {2174 panic(ErrNotImplement)
2175}
2176
2160}
2161
2162// not implement.
2163func (d *dbBase) OperatorSQL(operator string) string {2164 panic(ErrNotImplement)
2165}
2166
2088}
2089
2090// sync auto key
2091func (d *dbBase) setval(ctx context.Context, db dbQuerier, mi *models.ModelInfo, autoFields []string) error {2092 return nil
2093}
2094
Unused parameters in functions or methods should be replaced with _
(underscore) or removed.
Functions or methods with unused parameters can be a symptom of unfinished
refactoring or a bug. If an unused parameter is present, it should be named _
(underscore) to avoid raising this issue and better readability.
func abc(unused string) {
fmt.Println("Not using any passed params.")
}
func abc(_ string) {
fmt.Println("Not using any passed params.")
}
func abc() {
fmt.Println("Not using any passed params.")
}