mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-05-18 00:45:37 +08:00
refactor: 移除antlr4减小包体积&ai助手优化
This commit is contained in:
18
server/internal/db/dbm/sqlparser/oracle/oracle.go
Normal file
18
server/internal/db/dbm/sqlparser/oracle/oracle.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package oracle
|
||||
|
||||
import (
|
||||
"mayfly-go/internal/db/dbm/sqlparser/sqlstmt"
|
||||
"mayfly-go/pkg/logx"
|
||||
)
|
||||
|
||||
type OracleParser struct {
|
||||
}
|
||||
|
||||
func (*OracleParser) Parse(stmt string) (sqlstmt.Stmt, error) {
|
||||
defer func() {
|
||||
if e := recover(); e != nil {
|
||||
logx.ErrorTrace("oracle sql parser err: ", e)
|
||||
}
|
||||
}()
|
||||
return NewParser(stmt).Parse()
|
||||
}
|
||||
Reference in New Issue
Block a user