def __init__(self, host, port, store, db, schema=None, **kwargs):
self.host, self.port, self.store, self.db  = host, port, store, db<EOL>self.uri_str = "<STR_LIT>"+ self.store +"<STR_LIT:/>"<EOL>self.uri_db  = "<STR_LIT>"+ self.store +"<STR_LIT:/>"+ self.db +"<STR_LIT:/>"<EOL>self.uri_q   = "<STR_LIT>"<EOL>self.pool    = urllib3.connectionpool.HTTPConnectionPool(<EOL>self.host, port=self.port,<EOL>timeout=<NUM_LIT:3>, maxsize=<NUM_LIT:20>,<EOL>headers={"<STR_LIT>":"<STR_LIT>", "<STR_LIT>": "<STR_LIT>"})<EOL>"<STR_LIT>"<EOL>for d in ('<STR_LIT>','<STR_LIT>'):<EOL><INDENT>setattr(self, d, kwargs.get(d) == True)<EOL><DEDENT>"<STR_LIT>"<EOL>if isinstance(schema, Schema):<EOL><INDENT>self.schema = schema<EOL><DEDENT>elif isinstance(schema, tuple):<EOL><INDENT>self.schema = Schema(schema)<EOL><DEDENT>else:<EOL><INDENT>self.schema = None<EOL>if schema is None: return<EOL>logging.warning("<STR_LIT>" % type(schema))<EOL><DEDENT>
Assuming the datomic REST service was started this way:

        > bin/rest -p 8888 mem datomic:mem://

        Then get a connection for database name 'test' like this:

        >>> db = DB("localhost", 8888, "mem", "test", schema=S)