Skip to content

Commit a7d1332

Browse files
committed
rename path to backends instead of backend
1 parent ae32595 commit a7d1332

File tree

13 files changed

+537
-12
lines changed

13 files changed

+537
-12
lines changed

aws_advanced_python_wrapper/sql_alchemy_connection_provider.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def accepts_host_info(self, host_info: HostInfo, props: Properties) -> bool:
8888
if self._accept_url_func:
8989
return self._accept_url_func(host_info, props)
9090
url_type = SqlAlchemyPooledConnectionProvider._rds_utils.identify_rds_type(host_info.host)
91-
return url_type in (RdsUrlType.RDS_INSTANCE, RdsUrlType.RDS_WRITER_CLUSTER)
91+
return RdsUrlType.RDS_INSTANCE == url_type
9292

9393
def accepts_strategy(self, role: HostRole, strategy: str) -> bool:
9494
return strategy == SqlAlchemyPooledConnectionProvider._LEAST_CONNECTIONS or strategy in self._accepted_strategies
@@ -137,6 +137,7 @@ def connect(
137137

138138
if queue_pool is None:
139139
raise AwsWrapperError(Messages.get_formatted("SqlAlchemyPooledConnectionProvider.PoolNone", host_info.url))
140+
140141
return queue_pool.connect()
141142

142143
# The pool key should always be retrieved using this method, because the username

aws_advanced_python_wrapper/tortoise/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# Register AWS MySQL backend
1818
DB_LOOKUP["aws-mysql"] = {
19-
"engine": "aws_advanced_python_wrapper.tortoise.backend.mysql",
19+
"engine": "aws_advanced_python_wrapper.tortoise.backends.mysql",
2020
"vmap": {
2121
"path": "database",
2222
"hostname": "host",

0 commit comments

Comments
 (0)