File tree Expand file tree Collapse file tree 5 files changed +53
-1
lines changed
internal/engine/postgresql Expand file tree Collapse file tree 5 files changed +53
-1
lines changed Original file line number Diff line number Diff line change 18
18
- uses : equinox-io/setup@master
19
19
- run : go test -bench . -json -benchmem -run=XXX ./...
20
20
21
+ windows :
22
+ name : release --platforms windows
23
+ runs-on : windows-latest
24
+ steps :
25
+ - uses : actions/checkout@v2
26
+ - name : Set up Go 1.14
27
+ uses : actions/setup-go@v2
28
+ with :
29
+ go-version : ' 1.14'
30
+ -
uses :
equinox-io/[email protected]
31
+ - name : equinox release
32
+ env :
33
+ EQUINOX_API_TOKEN : ${{ secrets.EQUINOX_API_TOKEN }}
34
+ EQUINOX_SIGNING_KEY : ${{ secrets.EQUINOX_SIGNING_KEY }}
35
+ run : go run scripts/release.go -draft windows_amd64
36
+
21
37
macos :
22
38
name : release --platforms darwin
23
39
runs-on : macos-latest
37
53
linux :
38
54
name : release --platforms linux
39
55
runs-on : ubuntu-latest
40
- needs : [macos, benchmark]
56
+ needs : [macos, windows, benchmark]
41
57
steps :
42
58
- uses : actions/checkout@v2
43
59
- name : Set up Go 1.14
Original file line number Diff line number Diff line change
1
+ // +build !windows
2
+
1
3
package postgresql
2
4
3
5
import (
Original file line number Diff line number Diff line change
1
+ // +build !windows
2
+
1
3
package postgresql
2
4
3
5
import (
Original file line number Diff line number Diff line change
1
+ // +build windows
2
+
3
+ package postgresql
4
+
5
+ import (
6
+ "errors"
7
+ "io"
8
+
9
+ "github.com/kyleconroy/sqlc/internal/metadata"
10
+ "github.com/kyleconroy/sqlc/internal/sql/ast"
11
+ )
12
+
13
+ func NewParser () * Parser {
14
+ return & Parser {}
15
+ }
16
+
17
+ type Parser struct {
18
+ }
19
+
20
+ func (p * Parser ) Parse (r io.Reader ) ([]ast.Statement , error ) {
21
+ return nil , errors .New ("the PostgreSQL engine does not support Windows" )
22
+ }
23
+
24
+ // https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-COMMENTS
25
+ func (p * Parser ) CommentSyntax () metadata.CommentSyntax {
26
+ return metadata.CommentSyntax {
27
+ Dash : true ,
28
+ SlashStar : true ,
29
+ }
30
+ }
Original file line number Diff line number Diff line change
1
+ // +build !windows
2
+
1
3
package postgresql
2
4
3
5
import (
You can’t perform that action at this time.
0 commit comments