github.com/team-ide/go-dialect@v1.9.20/dialect/mapping.odbc.go (about)

     1  package dialect
     2  
     3  func NewMappingOdbc() (mapping *SqlMapping) {
     4  	mapping = &SqlMapping{
     5  		dialectType: TypeOdbc,
     6  
     7  		OwnerNamePackChar:  "\"",
     8  		TableNamePackChar:  "\"",
     9  		ColumnNamePackChar: "\"",
    10  		SqlValuePackChar:   "'",
    11  		SqlValueEscapeChar: "'",
    12  	}
    13  
    14  	for _, one := range postgresqlColumnTypeList {
    15  		mapping.AddColumnTypeInfo(one)
    16  	}
    17  
    18  	for _, one := range postgresqlIndexTypeList {
    19  		mapping.AddIndexTypeInfo(one)
    20  	}
    21  
    22  	return
    23  }
    24  
    25  var (
    26  	odbcIndexTypeList []*IndexTypeInfo
    27  )
    28  
    29  func appendOdbcIndexType(indexType *IndexTypeInfo) {
    30  	odbcIndexTypeList = append(odbcIndexTypeList, indexType)
    31  }
    32  
    33  func init() {
    34  
    35  }