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

Function addToDb

python/seldon/shell/attr_schema_utils.py:82–89  ·  view source on GitHub ↗
(db, types)

Source from the content-addressed store, hash-verified

80 exit(1)
81
82def addToDb(db, types):
83 with db:
84 doDbChecks(db)
85 for theType in types:
86 cur= db.cursor()
87 cur.execute("INSERT INTO ITEM_TYPE (type_id, name)"+
88 " values (%s, %s)",(theType['type_id'],theType['type_name']))
89 addAttrsToDb(db, theType['type_attrs'], theType['type_id'])
90
91
92def validateValueType(valType):

Callers 1

create_schemaFunction · 0.70

Calls 3

doDbChecksFunction · 0.70
addAttrsToDbFunction · 0.70
executeMethod · 0.65

Tested by

no test coverage detected