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

Function addToDb

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

Source from the content-addressed store, hash-verified

73 exit(1)
74
75def addToDb(db, types):
76 with db:
77 doDbChecks(db)
78 for theType in types:
79 cur= db.cursor()
80 cur.execute("INSERT INTO ITEM_TYPE (type_id, name)"+
81 " values (%s, %s)",(theType['type_id'],theType['type_name']))
82 addAttrsToDb(db, theType['type_attrs'], theType['type_id'])
83
84
85def 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