# Path: axiom/store.py
# IN_MEMORY_DATABASE = ':memory:'
# STORE_SELF_ID = -1
#         _NEEDS_DEFAULT = object() # token for lookup failure
#                 T = mostRecent
#                 T = self.getOldVersionOf(typename, version)
# class NoEmptyItems(Exception):
# class AtomicFile(io.FileIO, object):
# class SchedulingService(Service):
# class BaseQuery:
# class _FakeItemForFilter:
# class ItemQuery(BaseQuery):
# class MultipleItemQuery(BaseQuery):
# class _DistinctQuery(object):
# class _MultipleItemDistinctQuery(_DistinctQuery):
# class AttributeQuery(BaseQuery):
# class Store(Empowered):
#         class FakeItem:
# def _mkdirIfNotExists(dirname):
#     def __init__(self, tempname, destpath):
#     def close(self):
#     def abort(self):
#     def __init__(self):
#     def startService(self):
#     def stopService(self):
# def storeServiceSpecialCase(st, pups):
# def _typeIsTotallyUnknown(typename, version):
#     def __init__(self, store, tableClass,
#                  comparison=None, limit=None,
#                  offset=None, sort=None):
#     def cloneQuery(self, limit=_noItem, sort=_noItem):
#     def __repr__(self):
#     def explain(self):
#     def _involvedTables(self):
#     def _computeFromClause(self, tables):
#     def _sqlAndArgs(self, verb, subject):
#     def _runQuery(self, verb, subject):
#     def locateCallSite(self):
#     def _selectStuff(self, verb='SELECT'):
#     def _massageData(self, row):
#     def distinct(self):
#     def __iter__(self):
#     def __init__(self, store):
# def _isColumnUnique(col):
#     def __init__(self, *a, **k):
#     def paginate(self, pagesize=20):
#         def _AND(a, b):
#     def _massageData(self, row):
#     def getColumn(self, attributeName, raw=False):
#     def count(self):
#     def deleteFromStore(self):
#             def itemsToDelete(attr):
#     def __init__(self, *a, **k):
#     def _involvedTables(self):
#     def _massageData(self, row):
#     def count(self):
#     def distinct(self):
#     def __init__(self, query):
#     def cloneQuery(self, limit=_noItem, sort=_noItem):
#     def __iter__(self):
#     def count(self):
#     def count(self):
#     def __init__(self,
#                  store,
#                  tableClass,
#                  comparison=None, limit=None,
#                  offset=None, sort=None,
#                  attribute=None,
#                  raw=False):
#     def _massageData(self, row):
#     def count(self):
#     def sum(self):
#     def average(self):
#     def max(self, default=_noDefault):
#     def min(self, default=_noDefault):
#     def _functionOnTarget(self, which, default):
# def _storeBatchServiceSpecialCase(*args, **kwargs):
# def _schedulerServiceSpecialCase(empowered, pups):
# def _diffSchema(diskSchema, memorySchema):
#     def _currentlyValidAsReferentFor(self, store):
#     def __init__(self, dbdir=None, filesdir=None, debug=False, parent=None,
#                  idInParent=None, journalMode=None):
#             def logUpgradeFailure(aFailure):
#     def _attachChild(self, child):
#     def attachToParent(self):
#     def _initSchema(self):
#     def _startup(self):
#     def _loadExistingIndexes(self):
#     def _initdb(self, dbfname):
#     def __repr__(self):
#     def findOrCreate(self, userItemClass, __ifnew=None, **attrs):
#     def newFilePath(self, *path):
#     def newTemporaryFilePath(self, *path):
#     def newFile(self, *path):
#     def newDirectory(self, *path):
#     def _loadTypeSchema(self):
#     def _checkTypeSchemaConsistency(self, actualType, onDiskSchema):
#     def _prepareOldVersionOf(self, typename, version, persistedSchema):
#     def whenFullyUpgraded(self):
#     def getOldVersionOf(self, typename, version):
#     def findUnique(self, tableClass, comparison=None, default=_noItem):
#     def findFirst(self, tableClass, comparison=None,
#                   offset=None, sort=None, default=None):
#     def query(self, tableClass, comparison=None,
#               limit=None, offset=None, sort=None):
#     def sum(self, summableAttribute, *a, **k):
#     def count(self, *a, **k):
#     def batchInsert(self, itemType, itemAttributes, dataRows):
#     def _loadedItem(self, itemClass, storeID, attrs):
#     def changed(self, item):
#     def checkpoint(self):
#     def transact(self, f, *a, **k):
#     def _begin(self):
#     def _setupTxnState(self):
#     def _commit(self):
#     def _postCommitHook(self):
#     def _rollback(self):
#     def revert(self):
#     def _inMemoryRollback(self):
#     def _cleanupTxnState(self):
#     def close(self, _report=True):
#     def avgms(self, l):
#     def _indexNameOf(self, tableClass, attrname):
#     def _tableNameOnlyFor(self, typename, version):
#     def _tableNameFor(self, typename, version):
#     def getTableName(self, tableClass):
#     def getShortColumnName(self, attribute):
#     def getColumnName(self, attribute):
#     def getTypeID(self, tableClass):
#     def _justCreateTable(self, tableClass):
#     def _maybeCreateTable(self, tableClass, key):
#     def _createIndexesFor(self, tableClass, extantIndexes):
#     def getItemByID(self, storeID, default=_noItem, autoUpgrade=True):
#     def querySchemaSQL(self, sql, args=()):
#     def querySQL(self, sql, args=()):
#     def _queryandfetch(self, sql, args):
#     def createSQL(self, sql, args=()):
#     def _execSQL(self, sql, args):
#     def executeSchemaSQL(self, sql, args=()):
#     def executeSQL(self, sql, args=()):
# def timeinto(l, f, *a, **k):


import sys
from axiom import store
from twisted.python import filepath
from __future__ import print_function


def main(storePath, itemID):

    assert 'axiom.test.itemtest' not in sys.modules, "Test is invalid."


# Path: axiom/store.py
# IN_MEMORY_DATABASE = ':memory:'
# STORE_SELF_ID = -1
#         _NEEDS_DEFAULT = object() # token for lookup failure
#                 T = mostRecent
#                 T = self.getOldVersionOf(typename, version)
# class NoEmptyItems(Exception):
# class AtomicFile(io.FileIO, object):
# class SchedulingService(Service):
# class BaseQuery:
# class _FakeItemForFilter:
# class ItemQuery(BaseQuery):
# class MultipleItemQuery(BaseQuery):
# class _DistinctQuery(object):
# class _MultipleItemDistinctQuery(_DistinctQuery):
# class AttributeQuery(BaseQuery):
# class Store(Empowered):
#         class FakeItem:
# def _mkdirIfNotExists(dirname):
#     def __init__(self, tempname, destpath):
#     def close(self):
#     def abort(self):
#     def __init__(self):
#     def startService(self):
#     def stopService(self):
# def storeServiceSpecialCase(st, pups):
# def _typeIsTotallyUnknown(typename, version):
#     def __init__(self, store, tableClass,
#                  comparison=None, limit=None,
#                  offset=None, sort=None):
#     def cloneQuery(self, limit=_noItem, sort=_noItem):
#     def __repr__(self):
#     def explain(self):
#     def _involvedTables(self):
#     def _computeFromClause(self, tables):
#     def _sqlAndArgs(self, verb, subject):
#     def _runQuery(self, verb, subject):
#     def locateCallSite(self):
#     def _selectStuff(self, verb='SELECT'):
#     def _massageData(self, row):
#     def distinct(self):
#     def __iter__(self):
#     def __init__(self, store):
# def _isColumnUnique(col):
#     def __init__(self, *a, **k):
#     def paginate(self, pagesize=20):
#         def _AND(a, b):
#     def _massageData(self, row):
#     def getColumn(self, attributeName, raw=False):
#     def count(self):
#     def deleteFromStore(self):
#             def itemsToDelete(attr):
#     def __init__(self, *a, **k):
#     def _involvedTables(self):
#     def _massageData(self, row):
#     def count(self):
#     def distinct(self):
#     def __init__(self, query):
#     def cloneQuery(self, limit=_noItem, sort=_noItem):
#     def __iter__(self):
#     def count(self):
#     def count(self):
#     def __init__(self,
#                  store,
#                  tableClass,
#                  comparison=None, limit=None,
#                  offset=None, sort=None,
#                  attribute=None,
#                  raw=False):
#     def _massageData(self, row):
#     def count(self):
#     def sum(self):
#     def average(self):
#     def max(self, default=_noDefault):
#     def min(self, default=_noDefault):
#     def _functionOnTarget(self, which, default):
# def _storeBatchServiceSpecialCase(*args, **kwargs):
# def _schedulerServiceSpecialCase(empowered, pups):
# def _diffSchema(diskSchema, memorySchema):
#     def _currentlyValidAsReferentFor(self, store):
#     def __init__(self, dbdir=None, filesdir=None, debug=False, parent=None,
#                  idInParent=None, journalMode=None):
#             def logUpgradeFailure(aFailure):
#     def _attachChild(self, child):
#     def attachToParent(self):
#     def _initSchema(self):
#     def _startup(self):
#     def _loadExistingIndexes(self):
#     def _initdb(self, dbfname):
#     def __repr__(self):
#     def findOrCreate(self, userItemClass, __ifnew=None, **attrs):
#     def newFilePath(self, *path):
#     def newTemporaryFilePath(self, *path):
#     def newFile(self, *path):
#     def newDirectory(self, *path):
#     def _loadTypeSchema(self):
#     def _checkTypeSchemaConsistency(self, actualType, onDiskSchema):
#     def _prepareOldVersionOf(self, typename, version, persistedSchema):
#     def whenFullyUpgraded(self):
#     def getOldVersionOf(self, typename, version):
#     def findUnique(self, tableClass, comparison=None, default=_noItem):
#     def findFirst(self, tableClass, comparison=None,
#                   offset=None, sort=None, default=None):
#     def query(self, tableClass, comparison=None,
#               limit=None, offset=None, sort=None):
#     def sum(self, summableAttribute, *a, **k):
#     def count(self, *a, **k):
#     def batchInsert(self, itemType, itemAttributes, dataRows):
#     def _loadedItem(self, itemClass, storeID, attrs):
#     def changed(self, item):
#     def checkpoint(self):
#     def transact(self, f, *a, **k):
#     def _begin(self):
#     def _setupTxnState(self):
#     def _commit(self):
#     def _postCommitHook(self):
#     def _rollback(self):
#     def revert(self):
#     def _inMemoryRollback(self):
#     def _cleanupTxnState(self):
#     def close(self, _report=True):
#     def avgms(self, l):
#     def _indexNameOf(self, tableClass, attrname):
#     def _tableNameOnlyFor(self, typename, version):
#     def _tableNameFor(self, typename, version):
#     def getTableName(self, tableClass):
#     def getShortColumnName(self, attribute):
#     def getColumnName(self, attribute):
#     def getTypeID(self, tableClass):
#     def _justCreateTable(self, tableClass):
#     def _maybeCreateTable(self, tableClass, key):
#     def _createIndexesFor(self, tableClass, extantIndexes):
#     def getItemByID(self, storeID, default=_noItem, autoUpgrade=True):
#     def querySchemaSQL(self, sql, args=()):
#     def querySQL(self, sql, args=()):
#     def _queryandfetch(self, sql, args):
#     def createSQL(self, sql, args=()):
#     def _execSQL(self, sql, args):
#     def executeSchemaSQL(self, sql, args=()):
#     def executeSQL(self, sql, args=()):
# def timeinto(l, f, *a, **k):


# Path: axiom/test/itemtestmain.py
import sys
from axiom import store
from twisted.python import filepath

from __future__ import print_function


def main(storePath, itemID):

    assert 'axiom.test.itemtest' not in sys.modules, "Test is invalid."


    st = store.Store(filepath.FilePath(storePath))