Skip to content

Commit

Permalink
rtfd
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Jan 13, 2015
1 parent 3bbe05e commit 28e9251
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions py/db.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@

from . import utilities

try:
from . import apsw
apsw_Connection = apsw.Connection
except ImportError:
from .mock_module import Mock
apsw = Mock()
apsw_Connection = utilities.Dummy

from . import utilities
from .core import SQLiteDB, Facet, FacetError, LarchError, QuerySetSimpleCO
from .exceptions import NoResultsError, TooManyResultsError
from . import logging
Expand Down Expand Up @@ -76,7 +79,7 @@



class DB(utilities.FrozenClass, Facet, apsw.Connection):
class DB(utilities.FrozenClass, Facet, apsw_Connection):

sql_alts = property(Facet.qry_alts , None, None, _docstring_sql_alts )
sql_idco = property(Facet.qry_idco , None, None, _docstring_sql_idco )
Expand Down
1 change: 1 addition & 0 deletions py/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
except ImportError:
from .mock_module import Mock
apsw = Mock()
class Dummy(): pass


TemporaryBucket = []
Expand Down

0 comments on commit 28e9251

Please sign in to comment.