Did I find the right examples for you? yes no

All Samples(17)  |  Call(12)  |  Derive(0)  |  Import(5)

src/s/i/simple-db-migrate-2.0.0/simple_db_migrate/oracle.py   simple-db-migrate(Download)
 
from core import Migration
from core.exceptions import MigrationException
from helpers import Utils
from getpass import getpass
            cursor.close()
            conn.close()
            raise MigrationException(("error executing migration: %s" % e), curr_statement)
 
    def __change_db_version(self, version, migration_file_name, sql_up, sql_down, up=True, execution_log=None, label_version=None):
        except Exception, e:
            conn.rollback()
            raise MigrationException(("error logging migration: %s" % e), migration_file_name)
        finally:
            conn.close()

src/s/i/simple-db-migrate-2.0.0/simple_db_migrate/mysql.py   simple-db-migrate(Download)
from core import Migration
from core.exceptions import MigrationException
from helpers import Utils
 
class MySQL(object):
        except Exception, e:
            db.rollback()
            raise MigrationException("error executing migration: %s" % e, curr_statement)
        finally:
            db.close()
        except Exception, e:
            db.rollback()
            raise MigrationException("error logging migration: %s" % e, migration_file_name)
        finally:
            db.close()

src/s/i/simple-db-migrate-2.0.0/simple_db_migrate/mssql.py   simple-db-migrate(Download)
from core import Migration
from core.exceptions import MigrationException
from helpers import Utils
 
class MSSQL(object):
        except Exception, e:
            db.cancel()
            raise MigrationException("error executing migration: %s" % e, curr_statement)
        finally:
            db.close()
        except Exception, e:
            db.cancel()
            raise MigrationException("error logging migration: %s" % e, migration_file_name)
        finally:
            db.close()

src/s/i/simple-virtuoso-migrate-0.8.3/simple_virtuoso_migrate/virtuoso.py   simple-virtuoso-migrate(Download)
# -*- coding: utf-8 -*-
 
from core.exceptions import MigrationException
from git import Git
from helpers import Utils
                _, stderr_value_rollback = self._run_isql(file_down, True)
                if len(stderr_value_rollback) > 0:
                    raise MigrationException("\nerror executing migration "
                                        "statement: %s\n\nRollback done "
                                        "partially: error executing rollback "
                                        "statement: %s" % (stderr_value,
                                                        stderr_value_rollback))
                else:
                    raise MigrationException("\nerror executing migration "
            except BadSyntax, e:
                e._str = e._str.decode('utf-8')
                raise MigrationException("Error parsing graph %s" % unicode(e))
 
            forward_insert, backward_delete = (

src/s/i/simple-virtuoso-migrate-HEAD/simple_virtuoso_migrate/virtuoso.py   simple-virtuoso-migrate(Download)
# -*- coding: utf-8 -*-
 
from core.exceptions import MigrationException
from git import Git
from helpers import Utils
                _, stderr_value_rollback = self._run_isql(file_down, True)
                if len(stderr_value_rollback) > 0:
                    raise MigrationException("\nerror executing migration "
                                        "statement: %s\n\nRollback done "
                                        "partially: error executing rollback "
                                        "statement: %s" % (stderr_value,
                                                        stderr_value_rollback))
                else:
                    raise MigrationException("\nerror executing migration "
            except BadSyntax, e:
                e._str = e._str.decode('utf-8')
                raise MigrationException("Error parsing graph %s" % unicode(e))
 
            forward_insert, backward_delete = (