fromIdent sets the builder dialect from the identifier format.
(ident string)
| 3333 | |
| 3334 | // fromIdent sets the builder dialect from the identifier format. |
| 3335 | func (b *Builder) fromIdent(ident string) { |
| 3336 | if strings.Contains(ident, `"`) { |
| 3337 | b.SetDialect(dialect.Postgres) |
| 3338 | } |
| 3339 | // otherwise, use the default. |
| 3340 | } |
| 3341 | |
| 3342 | // isIdent reports if the given string is a dialect identifier. |
| 3343 | func (b *Builder) isIdent(s string) bool { |
no test coverage detected