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

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

        return self._connection
예제 #2
0
    def connection(self, name=None):
        if self._connection:
            return self._connection

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

        return self._connection
예제 #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
예제 #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
예제 #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