MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / addToDb

Function addToDb

scripts/add_attr_schema.py:73–80  ·  view source on GitHub ↗
(types)

Source from the content-addressed store, hash-verified

71 exit(1)
72
73def addToDb(types):
74 with db:
75 doDbChecks()
76 for theType in types:
77 cur= db.cursor()
78 cur.execute("INSERT INTO ITEM_TYPE (type_id, name)"+
79 " values (%s, %s)",(theType['type_id'],theType['type_name']))
80 addAttrsToDb(theType['type_attrs'], theType['type_id'])
81
82
83def validateValueType(valType):

Callers 1

add_attr_schema.pyFile · 0.70

Calls 3

doDbChecksFunction · 0.70
addAttrsToDbFunction · 0.70
executeMethod · 0.65

Tested by

no test coverage detected