def __init__(self, dburl, record_types=None, schemafile=None,<EOL>schemasql=None, encoder=JSONEncoder):
self._db = None<EOL>self.dburl = dburl<EOL>self.record_types = record_types<EOL>self.encoder = encoder<EOL>if schemafile:  <EOL><INDENT>schemasql = open(schemafile).read()<EOL><DEDENT>if schemasql:<EOL><INDENT>self._create_schema(schemasql)<EOL><DEDENT>
Create new TStore object.
- dburl: e.g. pg://user:pass@host/dbname

Optional parameters:
- record_types: list of acceptable record types
- encoder: a custom JSON encoder if you use custom types
- schemasql: string containing SQL to create schema
- schemafile: file containing SQL to create schema
  (takes precendence over schemasql)

>>> import getpass
>>> s = TStore('pg://' + getpass.getuser() + ':@/test')