Did I find the right examples for you? yes no

All Samples(33)  |  Call(18)  |  Derive(0)  |  Import(15)

        def Connection(type, *args, **kwargs):
    return get_backend_cls(type)(*args, **kwargs)
        


src/o/h/oh-mainline-HEAD/vendor/packages/ghettoq/ghettoq/tests/test_redis.py   oh-mainline(Download)
import unittest
 
from anyjson import serialize, deserialize
 
from ghettoq.simple import Connection, Empty
 
 
def create_connection(database):
    return Connection("redis", host="localhost", database=database)

src/o/h/oh-mainline-HEAD/vendor/packages/ghettoq/ghettoq/tests/test_mongodb.py   oh-mainline(Download)
import unittest
 
from anyjson import serialize, deserialize
 
from ghettoq.simple import Connection, Empty
 
 
def create_connection(database):
    return Connection("mongodb", host="localhost", database=database)

src/o/h/oh-mainline-HEAD/vendor/packages/ghettoq/ghettoq/tests/test_couchdb.py   oh-mainline(Download)
import unittest
 
from anyjson import serialize, deserialize
 
from ghettoq.simple import Connection, Empty
 
 
def create_connection(database):
    return Connection("couchdb", host="localhost", database=database)

src/g/h/ghettoq-0.4.5/ghettoq/tests/test_redis.py   ghettoq(Download)
import unittest
 
from anyjson import serialize, deserialize
 
from ghettoq.simple import Connection, Empty
 
 
def create_connection(database):
    return Connection("redis", host="localhost", database=database)

src/g/h/ghettoq-0.4.5/ghettoq/tests/test_mongodb.py   ghettoq(Download)
import unittest
 
from anyjson import serialize, deserialize
 
from ghettoq.simple import Connection, Empty
 
 
def create_connection(database):
    return Connection("mongodb", host="localhost", database=database)

src/g/h/ghettoq-0.4.5/ghettoq/tests/test_couchdb.py   ghettoq(Download)
import unittest
 
from anyjson import serialize, deserialize
 
from ghettoq.simple import Connection, Empty
 
 
def create_connection(database):
    return Connection("couchdb", host="localhost", database=database)

src/g/h/ghettoq-HEAD/ghettoq/tests/test_redis.py   ghettoq(Download)
import unittest
 
from anyjson import serialize, deserialize
 
from ghettoq.simple import Connection, Empty
 
 
def create_connection(database):
    return Connection("redis", host="localhost", database=database)

src/g/h/ghettoq-HEAD/ghettoq/tests/test_mongodb.py   ghettoq(Download)
import unittest
 
from anyjson import serialize, deserialize
 
from ghettoq.simple import Connection, Empty
 
 
def create_connection(database):
    return Connection("mongodb", host="localhost", database=database)

src/g/h/ghettoq-HEAD/ghettoq/tests/test_couchdb.py   ghettoq(Download)
import unittest
 
from anyjson import serialize, deserialize
 
from ghettoq.simple import Connection, Empty
 
 
def create_connection(database):
    return Connection("couchdb", host="localhost", database=database)

src/o/h/oh-mainline-HEAD/vendor/packages/ghettoq/ghettoq/tests/test_beanstalk.py   oh-mainline(Download)
import unittest
 
from anyjson import serialize, deserialize
 
from ghettoq.simple import Connection, Empty
 
 
def create_connection():
    return Connection("beanstalk", host="localhost")

  1 | 2  Next