mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-05-18 00:45:37 +08:00
19 lines
331 B
Go
19 lines
331 B
Go
|
|
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()
|
||
|
|
}
|