AllDialects returns all supported SQL dialect identifiers. This includes both fully implemented dialects (with dialect-specific keywords) and placeholder dialects that currently use only the base keyword set. Example: for _, d := range keywords.AllDialects() { fmt.Println(d) }
()
| 141 | // fmt.Println(d) |
| 142 | // } |
| 143 | func AllDialects() []SQLDialect { |
| 144 | return []SQLDialect{ |
| 145 | DialectGeneric, |
| 146 | DialectPostgreSQL, |
| 147 | DialectMySQL, |
| 148 | DialectMariaDB, |
| 149 | DialectSQLServer, |
| 150 | DialectOracle, |
| 151 | DialectSQLite, |
| 152 | DialectSnowflake, |
| 153 | DialectBigQuery, |
| 154 | DialectRedshift, |
| 155 | DialectClickHouse, |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | // GetCompoundKeywords returns the compound keywords map. |
| 160 | // Compound keywords are multi-word SQL keywords like "GROUP BY", "ORDER BY", |
no outgoing calls