File tree Expand file tree Collapse file tree 1 file changed +4
-22
lines changed
Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Original file line number Diff line number Diff line change 11package api
22
33import (
4- "bytes"
54 "context"
6- "fmt"
7- "path/filepath"
8- "regexp"
9- "strconv"
10- "strings"
11- "time"
125
136 "github.com/sqlc-dev/sqlc/internal/cmd"
147)
@@ -19,25 +12,14 @@ type Options struct {
1912 Options * cmd.Options
2013}
2114
22- type Diagnostic struct {
23- File string
24- Line int
25- Column int
26- Severity string // "error" | "warning" | "info"
27- Message string
28- Raw string
29- }
30-
31- type Report struct {
32- Stdout string
33- Stderr string
34- Diagnostics []Diagnostic
35- }
36-
3715func Generate (ctx context.Context , opt Options ) (map [string ]string , error ) {
3816 return cmd .Generate (ctx , opt .Dir , opt .Filename , opt .Options )
3917}
4018
4119func Verify (ctx context.Context , opt Options ) error {
4220 return cmd .Verify (ctx , opt .Dir , opt .Filename , opt .Options )
4321}
22+
23+ func Vet (ctx context.Context , opt Options ) error {
24+ return cmd .Vet (ctx , opt .Dir , opt .Filename , opt .Options )
25+ }
You can’t perform that action at this time.
0 commit comments