MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / ddl

Function ddl

src/sdk/python/fesql-auto-test-python/util/fesql_util.py:162–173  ·  view source on GitHub ↗
(executor, dbName: str, sql: str)

Source from the content-addressed store, hash-verified

160 return fesqlResult
161
162def ddl(executor, dbName: str, sql: str):
163 log.info("ddl sql:"+sql)
164 fesqlResult = FesqlResult()
165 try:
166 executor.execute(sql)
167 fesqlResult.ok = True
168 fesqlResult.msg = "ok"
169 except Exception as e:
170 fesqlResult.ok = False
171 fesqlResult.msg = str(e)
172 log.info("ddl result:"+str(fesqlResult))
173 return fesqlResult
174
175def getColumnData(rs,schema,index):
176 obj = None

Callers 2

sqlFunction · 0.85
createAndInsertFunction · 0.85

Calls 2

FesqlResultClass · 0.90
executeMethod · 0.45

Tested by

no test coverage detected