Example #1
0
 def __init__(self, force=False, view=None, filename=None):
     assert isinstance(force, bool)
     self.force = force
     assert view is None or isinstance(view, str)
     self.view = view
     assert filename is None or isinstance(filename, str)
     if filename is None:
         self.filename = '{}.ra'.format('views' if self.view is None else self.view)
     else:
         self.filename = sqlstr_to_str(filename)
Example #2
0
 def __init__(self, filename):
     assert isinstance(filename, str)
     self.filename = sqlstr_to_str(filename)