File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -62,30 +62,6 @@ func isCTASQuery(query string) bool {
6262 return getQueryType (query ) == queryTypeCTAS
6363}
6464
65- // QueryType represents the type of SQL query
66- type QueryType int
67-
68- const (
69- QueryTypeUnknown QueryType = iota
70- QueryTypeDDL
71- QueryTypeSelect
72- QueryTypeCTAS
73- )
74-
75- // GetQueryType determines the type of the query
76- func GetQueryType (query string ) QueryType {
77- switch {
78- case ddlQueryPattern .MatchString (query ):
79- return QueryTypeDDL
80- case ctasQueryPattern .MatchString (query ):
81- return QueryTypeCTAS
82- case selectQueryPattern .MatchString (query ):
83- return QueryTypeSelect
84- default :
85- return QueryTypeUnknown
86- }
87- }
88-
8965type conn struct {
9066 athena * athena.Client
9167 db string
You can’t perform that action at this time.
0 commit comments