本文整理汇总了Python中pystratum_mysql.StaticDataLayer.StaticDataLayer.execute_sp_singleton1方法的典型用法代码示例。如果您正苦于以下问题:Python StaticDataLayer.execute_sp_singleton1方法的具体用法?Python StaticDataLayer.execute_sp_singleton1怎么用?Python StaticDataLayer.execute_sp_singleton1使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pystratum_mysql.StaticDataLayer.StaticDataLayer
的用法示例。
在下文中一共展示了StaticDataLayer.execute_sp_singleton1方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: enk_reader_node_store_command_job
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def enk_reader_node_store_command_job(p_srv_id, p_uri_id, p_nod_id_parent, p_nod_name, p_nod_recursion_level, p_nod_dependency_level, p_nod_user_name, p_nod_command, p_nod_master):
"""
Stores a node of type "command job" and selects the ID of the new node.
:param int p_srv_id: The ID of the schedule revision.
smallint(5) unsigned
:param int p_uri_id: The ID of the URI of the node.
int(10) unsigned
:param int p_nod_id_parent: The ID of parent node of the node.
int(10) unsigned
:param str p_nod_name: The name of the node.
varchar(64) character set ascii collation ascii_general_ci
:param int p_nod_recursion_level: The recursion level (i.e. the number of parents).
int(11)
:param int p_nod_dependency_level: The dependency level (i.e. the number of dependencies from the parent input ports).
int(11)
:param str p_nod_user_name: The account under which the command must run.
varchar(32) character set utf8 collation utf8_general_ci
:param str p_nod_command: The command that must be executed (serialized array).
varchar(1000) character set utf8 collation utf8_general_ci
:param int p_nod_master:
tinyint(1)
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call enk_reader_node_store_command_job(%s, %s, %s, %s, %s, %s, %s, %s, %s)", p_srv_id, p_uri_id, p_nod_id_parent, p_nod_name, p_nod_recursion_level, p_nod_dependency_level, p_nod_user_name, p_nod_command, p_nod_master)
示例2: tst_magic_constant04
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def tst_magic_constant04():
"""
Test for magic constant.
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call tst_magic_constant04()")
示例3: enk_back_schedule_trigger
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def enk_back_schedule_trigger(p_sch_id):
"""
Triggers a schedule.
:param int p_sch_id:
smallint(5) unsigned
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call enk_back_schedule_trigger(%s)", p_sch_id)
示例4: enk_back_schedule_revision_create_run
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def enk_back_schedule_revision_create_run(p_srv_id):
"""
Creates a new run for schedule revision p_srv_id.
:param int p_srv_id:
smallint(5) unsigned
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call enk_back_schedule_revision_create_run(%s)", p_srv_id)
示例5: enk_back_schedule_get_current_xml
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def enk_back_schedule_get_current_xml(p_sch_id):
"""
Selects the XML definition of the current version of a schedule.
:param int p_sch_id: The ID of the schedule.
smallint(5) unsigned
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call enk_back_schedule_get_current_xml(%s)", p_sch_id)
示例6: enk_back_run_node_renew
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def enk_back_run_node_renew(p_rnd_id):
"""
xxx
:param int p_rnd_id:
int(11)
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call enk_back_run_node_renew(%s)", p_rnd_id)
示例7: enk_misc_insert_uri
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def enk_misc_insert_uri(p_uri_uri):
"""
Selects the ID of an URI. If the URI doesn't exists it will be inserted.
:param str p_uri_uri: The URI.
varchar(4000) character set ascii collation ascii_general_ci
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call enk_misc_insert_uri(%s)", p_uri_uri)
示例8: tst_test_max_allowed_packet
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def tst_test_max_allowed_packet(p_tmp_blob):
"""
Test for sending data larger than max_allowed_packet.
:param bytes p_tmp_blob: The BLOB larger than max_allowed_packet.
longblob
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call tst_test_max_allowed_packet(%s)", p_tmp_blob)
示例9: enk_reader_host_store_host
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def enk_reader_host_store_host(p_hst_name):
"""
Stores a host and selects the IF of the host.
:param str p_hst_name: The hostname.
varchar(64) character set utf8 collation utf8_general_ci
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call enk_reader_host_store_host(%s)", p_hst_name)
示例10: tst_test_singleton1a
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def tst_test_singleton1a(p_count):
"""
Test for designation type singleton1.
:param int p_count: The number of rows selected.
* 0 For a invalid test.
* 1 For a valid test.
* 2 For a invalid test.
int(11)
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call tst_test_singleton1a(%s)", p_count)
示例11: enk_reader_schedule_create_revision
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def enk_reader_schedule_create_revision(p_blb_id, p_node_name):
"""
Stores a node of type "schedule" and selects the ID of the new schedule revision.
If the schedule revision in ID is already loaded and up-to-date NULL is selected.
:param int p_blb_id: The ID of the blob of the XML definition of the schedule.
int(10) unsigned
:param str p_node_name: The name of the schedule.
varchar(64) character set ascii collation ascii_general_ci
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call enk_reader_schedule_create_revision(%s, %s)", p_blb_id, p_node_name)
示例12: enk_reader_port_store_output_port
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def enk_reader_port_store_output_port(p_nod_id, p_uri_id, p_prt_name):
"""
Stores a port of type "OutputPort" and selects the ID of the new port.
:param int p_nod_id: The ID of the node of the node of the output port.
int(10) unsigned
:param int p_uri_id: The ID of the URI of the output port.
int(10) unsigned
:param str p_prt_name: The name of the output port.
varchar(64) character set ascii collation ascii_general_ci
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call enk_reader_port_store_output_port(%s, %s, %s)", p_nod_id, p_uri_id, p_prt_name)
示例13: enk_blob_insert_blob
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def enk_blob_insert_blob(p_filename, p_mime_type, p_data):
"""
Inserts a BLOB and selects the ID of the BLOB.
:param str p_filename: The filename associated with the BLOB.
varchar(255) character set utf8 collation utf8_general_ci
:param str p_mime_type: The mime type of the data.
varchar(48) character set utf8 collation utf8_general_ci
:param bytes p_data: The data of the BLOB.
longblob
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call enk_blob_insert_blob(%s, %s, %s)", p_filename, p_mime_type, p_data)
示例14: tst_test_singleton1a_with_lob
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def tst_test_singleton1a_with_lob(p_count, p_blob):
"""
Test for designation type singleton1 with BLOB.
:param int p_count: The number of rows selected.
* 0 For a invalid test.
* 1 For a valid test.
* 2 For a invalid test.
int(11)
:param bytes p_blob: The BLOB.
blob
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call tst_test_singleton1a_with_lob(%s, %s)", p_count, p_blob)
示例15: enk_reader_node_store_schedule
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_singleton1 [as 别名]
def enk_reader_node_store_schedule(p_srv_id, p_uri_id, p_nod_name, p_nod_master):
"""
Stores a node of type "schedule" and selects the ID of the new node.
:param int p_srv_id: The ID of the schedule revision.
smallint(5) unsigned
:param int p_uri_id: The ID of the URI of the node.
int(10) unsigned
:param str p_nod_name: The name of the node.
varchar(64) character set ascii collation ascii_general_ci
:param int p_nod_master:
tinyint(1)
:rtype: *
"""
return StaticDataLayer.execute_sp_singleton1("call enk_reader_node_store_schedule(%s, %s, %s, %s)", p_srv_id, p_uri_id, p_nod_name, p_nod_master)