本文整理汇总了Python中pystratum_mysql.StaticDataLayer.StaticDataLayer.execute_sp_none方法的典型用法代码示例。如果您正苦于以下问题:Python StaticDataLayer.execute_sp_none方法的具体用法?Python StaticDataLayer.execute_sp_none怎么用?Python StaticDataLayer.execute_sp_none使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pystratum_mysql.StaticDataLayer.StaticDataLayer
的用法示例。
在下文中一共展示了StaticDataLayer.execute_sp_none方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: enk_back_controller_init
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def enk_back_controller_init():
"""
Sets the database in a predictable state. Must be called by the controller when the controller starts.
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call enk_back_controller_init()")
示例2: tst_test_none
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def tst_test_none(p_count):
"""
Test for designation type none.
:param int p_count: The number of iterations.
bigint(20)
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call tst_test_none(%s)", p_count)
示例3: enk_back_schedule_delete
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def enk_back_schedule_delete(p_sch_id):
"""
Deletes an entire schedule.
:param int p_sch_id:
smallint(5) unsigned
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call enk_back_schedule_delete(%s)", p_sch_id)
示例4: enk_back_node_dynamic_add_dependencies
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def enk_back_node_dynamic_add_dependencies(p_nod_id_outer_worker, p_nod_id_inner_worker):
"""
:param int p_nod_id_outer_worker:
int(10) unsigned
:param int p_nod_id_inner_worker:
int(10) unsigned
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call enk_back_node_dynamic_add_dependencies(%s, %s)", p_nod_id_outer_worker, p_nod_id_inner_worker)
示例5: tst_test_none_with_lob
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def tst_test_none_with_lob(p_count, p_blob):
"""
Test for designation type none with BLOB.
:param int p_count: The number of iterations.
bigint(20)
:param bytes p_blob: The BLOB.
blob
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call tst_test_none_with_lob(%s, %s)", p_count, p_blob)
示例6: enk_reader_dependency_store_dependency
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def enk_reader_dependency_store_dependency(p_prt_id_dependant, p_prt_id_predecessor):
"""
Stores a dependency between two ports.
:param int p_prt_id_dependant: The ID of the dependant port
int(10) unsigned
:param int p_prt_id_predecessor: The ID of the predecessor port.
int(10) unsigned
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call enk_reader_dependency_store_dependency(%s, %s)", p_prt_id_dependant, p_prt_id_predecessor)
示例7: enk_back_counting_resource_update_consumpted
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def enk_back_counting_resource_update_consumpted(p_rsc_id, p_rsc_amount_consumpted):
"""
Updates the amount consumpted of a counting resource.
:param int p_rsc_id: The ID of the counting resource.
int(11)
:param int p_rsc_amount_consumpted: The amount consumpted.
bigint(20)
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call enk_back_counting_resource_update_consumpted(%s, %s)", p_rsc_id, p_rsc_amount_consumpted)
示例8: enk_back_read_write_lock_resource_update_consumpted
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def enk_back_read_write_lock_resource_update_consumpted(p_rsc_id, p_rws_id_consumpted):
"""
Updates the RW lock status of a RW lock resource.
:param int p_rsc_id: The ID of the RW resource.
int(11)
:param int p_rws_id_consumpted: The ID of the consumption.
tinyint(3) unsigned
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call enk_back_read_write_lock_resource_update_consumpted(%s, %s)", p_rsc_id, p_rws_id_consumpted)
示例9: enk_back_run_update_status
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def enk_back_run_update_status(p_run_id, p_run_datetime_start, p_run_datetime_stop):
"""
Update the status of a run.
:param int p_run_id: The ID of the run.
int(10) unsigned
:param str p_run_datetime_start: The start datetime of the run.
datetime
:param str p_run_datetime_stop: The stop datetime of the run.
datetime
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call enk_back_run_update_status(%s, %s, %s)", p_run_id, p_run_datetime_start, p_run_datetime_stop)
示例10: enk_back_run_node_update_log
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def enk_back_run_node_update_log(p_rnd_id, p_blb_id, p_rnd_size_log):
"""
Updates a node with metadata about the STDOUT.
:param int p_rnd_id: The ID of the run node.
int(11)
:param int p_blb_id: The ID of the BLOB with the log.
int(10) unsigned
:param int p_rnd_size_log: The total log size.
bigint(20) unsigned
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call enk_back_run_node_update_log(%s, %s, %s)", p_rnd_id, p_blb_id, p_rnd_size_log)
示例11: tst_parameter_types01
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def tst_parameter_types01(p_param00, p_param01, p_param02, p_param03, p_param04, p_param05, p_param06, p_param07, p_param08, p_param09, p_param10, p_param11, p_param12, p_param13, p_param14, p_param15, p_param16, p_param17, p_param26, p_param27):
"""
Test for all possible types of parameters excluding LOB's.
:param int p_param00: Test parameter 00.
int(11)
:param int p_param01: Test parameter 01.
smallint(6)
:param int p_param02: Test parameter 02.
tinyint(4)
:param int p_param03: Test parameter 03.
mediumint(9)
:param int p_param04: Test parameter 04.
bigint(20)
:param float p_param05: Test parameter 05.
decimal(10,2)
:param float p_param06: Test parameter 06.
float
:param float p_param07: Test parameter 07.
double
:param int p_param08: Test parameter 08.
bit(8)
:param str p_param09: Test parameter 09.
date
:param str p_param10: Test parameter 10.
datetime
:param str p_param11: Test parameter 11.
timestamp
:param str p_param12: Test parameter 12.
time
:param int p_param13: Test parameter 13.
year(4)
:param str p_param14: Test parameter 14.
char(10) character set utf8 collation utf8_general_ci
:param str p_param15: Test parameter 15.
varchar(10) character set utf8 collation utf8_general_ci
:param bytes p_param16: Test parameter 16.
binary(10)
:param bytes p_param17: Test parameter 17.
varbinary(10)
:param str p_param26: Test parameter 26.
enum('a','b') character set utf8 collation utf8_general_ci
:param str p_param27: Test parameter 27.
set('a','b') character set utf8 collation utf8_general_ci
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call tst_parameter_types01(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", p_param00, p_param01, p_param02, p_param03, p_param04, p_param05, p_param06, p_param07, p_param08, p_param09, p_param10, p_param11, p_param12, p_param13, p_param14, p_param15, p_param16, p_param17, p_param26, p_param27)
示例12: tst_parameter_types03
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def tst_parameter_types03(p_param14, p_param15, p_param16, p_param17):
"""
Test for all possible types of parameters with maximum length.
:param str p_param14: Test parameter 14.
char(255) character set utf8 collation utf8_general_ci
:param str p_param15: Test parameter 15.
varchar(4096) character set utf8 collation utf8_general_ci
:param bytes p_param16: Test parameter 16.
binary(255)
:param bytes p_param17: Test parameter 17.
varbinary(4096)
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call tst_parameter_types03(%s, %s, %s, %s)", p_param14, p_param15, p_param16, p_param17)
示例13: enk_reader_node_store_schedule_addendum
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def enk_reader_node_store_schedule_addendum(p_srv_id, p_nod_id_activate, p_nod_id_arrest, p_nod_id_schedule):
"""
Stores additional information of a schedule revision 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_nod_id_activate: The ID of the activate node of the schedule.
int(10) unsigned
:param int p_nod_id_arrest: The ID of the arrest node of the schedule.
int(10) unsigned
:param int p_nod_id_schedule: The ID of the schedule node it self.
int(10) unsigned
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call enk_reader_node_store_schedule_addendum(%s, %s, %s, %s)", p_srv_id, p_nod_id_activate, p_nod_id_arrest, p_nod_id_schedule)
示例14: enk_back_run_node_update_status
# 需要导入模块: from pystratum_mysql.StaticDataLayer import StaticDataLayer [as 别名]
# 或者: from pystratum_mysql.StaticDataLayer.StaticDataLayer import execute_sp_none [as 别名]
def enk_back_run_node_update_status(p_rnd_id, p_rst_id, p_rnd_datetime_start, p_rnd_datetime_stop, p_rnd_exit_status):
"""
Marks node @a p_rnd_id as stopped with status @a p_rst_id.
:param int p_rnd_id:
int(11)
:param int p_rst_id:
tinyint(3) unsigned
:param str p_rnd_datetime_start:
datetime
:param str p_rnd_datetime_stop:
datetime
:param int p_rnd_exit_status:
int(11)
:rtype: int
"""
return StaticDataLayer.execute_sp_none("call enk_back_run_node_update_status(%s, %s, %s, %s, %s)", p_rnd_id, p_rst_id, p_rnd_datetime_start, p_rnd_datetime_stop, p_rnd_exit_status)