github.com/kotovmak/go-admin@v1.1.1/modules/db/dialect/mssql.go (about) 1 // Copyright 2019 GoAdmin Core Team. All rights reserved. 2 // Use of this source code is governed by a Apache-2.0 style 3 // license that can be found in the LICENSE file. 4 5 package dialect 6 7 import "fmt" 8 9 type mssql struct { 10 commonDialect 11 } 12 13 func (mssql) GetName() string { 14 return "mssql" 15 } 16 17 func (mssql) ShowColumns(table string) string { 18 return fmt.Sprintf("select column_name, data_type from information_schema.columns where table_name = '%s'", table) 19 } 20 21 func (mssql) ShowTables() string { 22 return "select * from information_schema.TABLES" 23 }