We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a153d1 commit 46ac931Copy full SHA for 46ac931
sqle/driver/v2/driver_interface.go
@@ -315,6 +315,17 @@ type SQLObjectOps struct {
315
Sql SQLInfo
316
}
317
318
+func NewSQLObjectOps(sql string) *SQLObjectOps {
319
+ return &SQLObjectOps{
320
+ ObjectOps: []*SQLObjectOp{},
321
+ Sql: SQLInfo{Sql: sql},
322
+ }
323
+}
324
+
325
+func (s *SQLObjectOps) AddObjectOp(o ...*SQLObjectOp) {
326
+ s.ObjectOps = append(s.ObjectOps, o...)
327
328
329
type SQLObjectOp struct {
330
Op SQLOp // 对象操作
331
Object *SQLObject // 对象
@@ -335,6 +346,7 @@ const (
335
346
SQLObjectTypeTable SQLObjectType = "Table"
336
347
SQLObjectTypeSchema SQLObjectType = "Schema"
337
348
SQLObjectTypeInstance SQLObjectType = "Instance"
349
+ SQLObjectTypeServer SQLObjectType = "Server"
338
350
)
339
351
340
352
type SQLInfo struct {
0 commit comments