...
 
Commits (3)
  • Unknown's avatar
    · c5aada9b
    Unknown authored
    версия 0.0.7
    c5aada9b
  • Unknown's avatar
    · e544006e
    Unknown authored
    ! изменил название функции чтобы не пересекаться с новым idmapper
    e544006e
  • Unknown's avatar
    Merge branch 'feature-add-transaction' into develop · d958b8f1
    Unknown authored
    ! новая версия либы
    d958b8f1
......@@ -130,7 +130,7 @@ class IdMapperTntWriter(IdMapperWriter):
old_space = f"old_{self._space}"
new_space = f"tmp_{self._space}"
try:
self._connector.eval("function insertList(data, space_name) local log = require('log') "
self._connector.eval("function insertDataList(data, space_name) local log = require('log') "
"log.warn(type(data)) space = box.space[space_name] "
"for i,item in pairs(data) do space:insert(item) end end")
self._connector.eval('box.schema.space.create(\'' + new_space + '\', {if_not_exists = true, '
......@@ -145,7 +145,7 @@ class IdMapperTntWriter(IdMapperWriter):
min_count = min(count, self._max_items)
offset = 0
while count > offset:
self._connector.call('insertList', [items_list[offset:offset + min_count], new_space])
self._connector.call('insertDataList', [items_list[offset:offset + min_count], new_space])
offset = offset + min_count
try:
......
......@@ -8,7 +8,7 @@ def get_requirements():
setup(
name='idmapper',
version='0.0.6',
version='0.0.8',
packages=['idmapper', ],
url='https://gitlab.itnap.ru/open-source/py-id-mapper',
license='',
......