Exemple #1
0
 def executescript(self, script):
     """Same as :meth:`python:sqlite3.Connection.executescript`."""
     if self.debug:
         self.debug.write("Executing script with {} chars: {}".format(
             len(script), clipped_repr(script, 100),
         ))
     self.con.executescript(script)
Exemple #2
0
 def executescript(self, script):
     if self.debug:
         self.debug.write("Executing script with {} chars: {}".format(
             len(script),
             clipped_repr(script, 100),
         ))
     self.con.executescript(script)
Exemple #3
0
def test_clipped_repr(text, numchars, result):
    assert clipped_repr(text, numchars) == result