Ejemplo n.º 1
0
    def run(self):
        from ext.sys.database import db, drop_all

        print "Tables binded :"
        for table in db.get_tables_for_bind() :
            print "#    %s" % table
        print "DB Engine :      %s" % db.get_engine( db.app )
        print "Dropping Tables. Hang on.."
        print "Drop all result :    %s" % drop_all()
        print "==== all db dropped ====="
Ejemplo n.º 2
0
    def run(self):
        from ext.sys.database import db, create_all

        print dir(db)
        return
        
        print "Tables binded :"
        for table in db.get_tables_for_bind() :
            print "#    %s" % table
        print "DB Engine :      %s" % db.get_engine( db.app )
        print "Creating Tables. Hang on.."
        print "Create all result :  %s" % create_all()
        print "==== all db created ====="