(table string)
| 115 | } |
| 116 | |
| 117 | func dropTable(table string) { |
| 118 | count, err := db.GetCount( |
| 119 | ctx, |
| 120 | "SELECT COUNT(*) FROM all_tables WHERE owner = ? And table_name= ?", TestDBName, strings.ToUpper(table), |
| 121 | ) |
| 122 | if err != nil { |
| 123 | gtest.Fatal(err) |
| 124 | } |
| 125 | |
| 126 | if count == 0 { |
| 127 | return |
| 128 | } |
| 129 | if _, err := db.Exec(ctx, fmt.Sprintf("DROP TABLE %s", table)); err != nil { |
| 130 | gtest.Fatal(err) |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | func createTable(table ...string) (name string) { |
| 135 | if len(table) > 0 { |
no test coverage detected
searching dependent graphs…