This commit is contained in:
@@ -11,12 +11,12 @@ from asyncpg import exceptions
|
||||
@cython.final
|
||||
cdef class ConnectionSettings(pgproto.CodecContext):
|
||||
|
||||
def __cinit__(self):
|
||||
def __cinit__(self, conn_key):
|
||||
self._encoding = 'utf-8'
|
||||
self._is_utf8 = True
|
||||
self._settings = {}
|
||||
self._codec = codecs.lookup('utf-8')
|
||||
self._data_codecs = DataCodecConfig()
|
||||
self._data_codecs = DataCodecConfig(conn_key)
|
||||
|
||||
cdef add_setting(self, str name, str val):
|
||||
self._settings[name] = val
|
||||
|
||||
Reference in New Issue
Block a user