Hi, forced to eating my dogfood after some time and found i need
something better, here is the better version -- looks complicated, but
i cant see better..
class CommonDatabase(object):
def duplicateToDisk(self, target_file):
connection = self.engine.connect() #this is in my instance
Hmm :)
I am looking for the same thing, I used to do it with sql, but I hoped
to make it more orm
Here is how i do it for sqlite
def duplicateToDisk(self, file):
'''Tohle ulozi databazi, ktera byla pouze v pameti, na disk'''
cur = self.connection()
import os
if os.path.exists(f