Files @ 124bd1706d79
Branch filter:

Location: NPO-Accounting/experimental-accounting-api/accounting/storage/__init__.py

Joar Wandborg
Added SQL storage backend

- Added Storage ABC
- Moved Ledger class to storage/ledgercli.py
- Added SQL requirements to requirements.txt

class Storage:
    '''
    ABC for accounting storage
    '''
    def __init__(self, *args, **kw):
        raise NotImplementedError()

    def get_transactions(self, *args, **kw):
        raise NotImplementedError()

    def get_transaction(self, *args, **kw):
        raise NotImplementedError()

    def get_account(self, *args, **kw):
        raise NotImplementedError()

    def get_accounts(self, *args, **kw):
        raise NotImplementedError()