func For(name string) Dialect {
	if name == "" {
		drivers := sql.Drivers()
		if len(drivers) > 0 {
			name = drivers[0]
		}
	}
	name = strings.TrimSpace(strings.ToLower(name))

	d := dialects[name]
	if d == nil {
		d = defaultDialect
	}

	return d
}
// For returns a dialect for the specified database driver.
// If name is blank, then the dialect returned is for the first
// driver returned by sql.Drivers(). If the driver name is
// unknown, the default dialect is returned.
//
// Supported dialects include:
//
//  name      alternative names
//  ----      -----------------
//  mssql
//  mysql
//  postgres  pq, postgresql
//  sqlite3   sqlite
//  ql        ql-mem
For returns a dialect for the specified database driver.
If name is blank, then the dialect returned is for the first
driver returned by sql.Drivers(). If the driver name is
unknown, the default dialect is returned.

Supported dialects include.

name      alternative names
mssql
mysql
postgres  pq, postgresql
sqlite3   sqlite
ql        ql-mem
// For returns a dialect for the specified database driver . // If name is blank then the dialect returned is for the first // driver returned by sql . Drivers () . If the driver name is // unknown the default dialect is returned . // // Supported dialects include : // // name alternative names // ---- ----------------- // mssql // mysql // postgres pq postgresql // sqlite3 sqlite // ql ql - mem
func For(name string) Dialect {
	if name == "" {
		drivers := sql.Drivers()
		if len(drivers) > 0 {
			name = drivers[0]
		}
	}
	name = strings.TrimSpace(strings.ToLower(name))
	d := dialects[name]
	if d == nil {
		d = defaultDialect
	}
	return d
}
func For ( name string ) Dialect { if name == " " { drivers := sql . Drivers ( ) if len ( drivers ) > 0 { name = drivers [ 0 ] } } name = strings . TrimSpace ( strings . ToLower ( name ) ) d := dialects [ name ] if d == nil { d = defaultDialect } return d }
For returns a dialect for the specified database driver.
For returns a dialect for the specified database driver .