def connection(self, name=None):
        if self._connection:
            return self._connection

        self._connection = SQLiteConnection(SQLiteConnector().connect({'database': ':memory:'}))

        return self._connection
Exemplo n.º 2
0
    def connection(self, name=None):
        if self._connection:
            return self._connection

        self._connection = SQLiteConnection(SQLiteConnector().connect(
            {"database": ":memory:"}))

        return self._connection
Exemplo n.º 3
0
    def connection(self, name=None):
        if self._connection:
            return self._connection

        self._connection = SQLiteConnection(SQLiteConnector().connect(
            {'database': ':memory:'}),
                                            config={'name': u'test'})

        self._prepare(self._connection)

        return self._connection
Exemplo n.º 4
0
    def connection(self, name=None):
        if self._connection:
            return self._connection

        self._connection = SQLiteConnection(SQLiteConnector().connect({
            'database':
            ':memory:',
            'foreign_keys':
            False
        }))

        return self._connection
Exemplo n.º 5
0
    def connection(self, name=None):
        if self._connection:
            return self._connection

        self._connection = SQLiteConnection(SQLiteConnector().connect({
            "database":
            ":memory:",
            "foreign_keys":
            False
        }))

        return self._connection