12345678910111213141516171819202122232425262728293031 |
- //go:build windows
- // +build windows
- package postgresql
- import (
- "errors"
- "io"
- "github.com/kyleconroy/sqlc/internal/metadata"
- "github.com/kyleconroy/sqlc/internal/sql/ast"
- )
- func NewParser() *Parser {
- return &Parser{}
- }
- type Parser struct {
- }
- func (p *Parser) Parse(r io.Reader) ([]ast.Statement, error) {
- return nil, errors.New("the PostgreSQL engine does not support Windows")
- }
- // https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-COMMENTS
- func (p *Parser) CommentSyntax() metadata.CommentSyntax {
- return metadata.CommentSyntax{
- Dash: true,
- SlashStar: true,
- }
- }
|