Skip to content

ZODB data splitter that creates a database of databases and split data between separate files

Notifications You must be signed in to change notification settings

vir2alexport/ZODBuffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZODBuffer storage splitter for ZODB database.

Introduction

The ZODBuffer package provides ZODB storage splitter implementations that provides a split of a database file.

Table of contens

Installation

pip install git+https://github.com/qpaycm/ZODBuffer

Usage

The primary usage is ZODBuffer.ZODBuffer(objects, delimeter).
It is used as a splitter around a lower-level storage. From Python, it is constructed by passing another storage, as in from ZODB import FileStorage, DB

import ZODBuffer
# init ZODBuffer class by giving it JSON objects dict and delimeter of 1 which means you want to put each object in separate database file
zodBuffer = ZODBuffer.ZODBuffer(json.loads({'object1':{'cell1':'value', 'cell2':'value',...}, 'object2':{'cell1':'value', 'cell2':'value',...}...}), 1)
zodBuffer.CreateDatabases('mytestdb-', 'buffer', '[$]', 'RootOfRoots')	#	name	prefix	exclude		rootofrootsName

About

ZODB data splitter that creates a database of databases and split data between separate files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages