321 'default': '', |
321 'default': '', |
322 'help': 'set to "Trusted_Connection" if you are using SQLServer and ' |
322 'help': 'set to "Trusted_Connection" if you are using SQLServer and ' |
323 'want trusted authentication for the database connection', |
323 'want trusted authentication for the database connection', |
324 'group': 'native-source', 'level': 2, |
324 'group': 'native-source', 'level': 2, |
325 }), |
325 }), |
|
326 ('db-statement-timeout', |
|
327 {'type': 'int', |
|
328 'default': 0, |
|
329 'help': 'sql statement timeout, in milliseconds (postgres only)', |
|
330 'group': 'native-source', 'level': 2, |
|
331 }), |
326 ) |
332 ) |
327 |
333 |
328 def __init__(self, repo, source_config, *args, **kwargs): |
334 def __init__(self, repo, source_config, *args, **kwargs): |
329 SQLAdapterMixIn.__init__(self, source_config) |
335 SQLAdapterMixIn.__init__(self, source_config, repairing=repo.config.repairing) |
330 self.authentifiers = [LoginPasswordAuthentifier(self)] |
336 self.authentifiers = [LoginPasswordAuthentifier(self)] |
331 if repo.config['allow-email-login']: |
337 if repo.config['allow-email-login']: |
332 self.authentifiers.insert(0, EmailPasswordAuthentifier(self)) |
338 self.authentifiers.insert(0, EmailPasswordAuthentifier(self)) |
333 AbstractSource.__init__(self, repo, source_config, *args, **kwargs) |
339 AbstractSource.__init__(self, repo, source_config, *args, **kwargs) |
334 # sql generator |
340 # sql generator |