def get_connection(self):
        """
        use the first connection available
        :rtype: Connection
        """

        klass = self.entities.keys()
        if not klass:
            message = 'No classed found. Did you add entities to the Seeder?'
            raise SeederException(message)
        klass = list(klass)[0]

        return klass.objects._db
def get_connection(self):
        """
        use the first connection available
        :rtype: Connection
        """

        klass = self.entities.keys()
        if not klass:
            message = 'No classed found. Did you add entities to the Seeder?'
            raise SeederException(message)
        klass = list(klass)[0]

        return klass.objects._db
def get_connection ( self ) : klass = self . entities . keys ( ) if not klass : message = 'No classed found. Did you add entities to the Seeder?' raise SeederException ( message ) klass = list ( klass ) [ 0 ] return klass . objects . _db
use the first connection available
        :rtype: Connection
use the first connection available : rtype : Connection