github.com/kotovmak/go-admin@v1.1.1/modules/db/dialect/mysql.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  type mysql struct {
     8  	commonDialect
     9  }
    10  
    11  func (mysql) GetName() string {
    12  	return "mysql"
    13  }
    14  
    15  func (mysql) ShowColumns(table string) string {
    16  	return "show columns in " + table
    17  }
    18  
    19  func (mysql) ShowTables() string {
    20  	return "show tables"
    21  }