|
1 | 1 | /* |
2 | | - Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
3 | | - |
4 | | - Licensed under the Apache License, Version 2.0 (the "License"). |
5 | | - You may not use this file except in compliance with the License. |
6 | | - You may obtain a copy of the License at |
7 | | - |
8 | | - http://www.apache.org/licenses/LICENSE-2.0 |
9 | | - |
10 | | - Unless required by applicable law or agreed to in writing, software |
11 | | - distributed under the License is distributed on an "AS IS" BASIS, |
12 | | - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | | - See the License for the specific language governing permissions and |
14 | | - limitations under the License. |
15 | | -*/ |
16 | | - |
17 | | -import { AbstractConnectionPlugin } from "../abstract_connection_plugin"; |
| 2 | + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"). |
| 5 | + * You may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +import { AbstractConnectionPlugin } from "../../abstract_connection_plugin"; |
18 | 18 | import { |
19 | 19 | HostInfo, |
20 | 20 | FailoverError, |
21 | 21 | HostRole |
22 | | -} from "../"; |
23 | | -import { PluginService } from "../plugin_service"; |
24 | | -import { HostListProviderService } from "../host_list_provider_service"; |
25 | | -import { OldConnectionSuggestionAction } from "../old_connection_suggestion_action"; |
26 | | -import { HostChangeOptions } from "../host_change_options"; |
27 | | -import { WrapperProperties } from "../wrapper_property"; |
28 | | -import { Messages } from "../utils/messages"; |
29 | | -import { logger } from "../../logutils"; |
30 | | -import { SqlMethodUtils } from "../utils/sql_method_utils"; |
31 | | -import { ClientWrapper } from "../client_wrapper"; |
32 | | -import { getWriter, logAndThrowError } from "../utils/utils"; |
33 | | -import { CanReleaseResources } from "../can_release_resources"; |
34 | | -import { PoolClientWrapper } from "../pool_client_wrapper"; |
| 22 | +} from "../../index"; |
| 23 | +import { PluginService } from "../../plugin_service"; |
| 24 | +import { HostListProviderService } from "../../host_list_provider_service"; |
| 25 | +import { OldConnectionSuggestionAction } from "../../old_connection_suggestion_action"; |
| 26 | +import { HostChangeOptions } from "../../host_change_options"; |
| 27 | +import { WrapperProperties } from "../../wrapper_property"; |
| 28 | +import { Messages } from "../../utils/messages"; |
| 29 | +import { logger } from "../../../logutils"; |
| 30 | +import { SqlMethodUtils } from "../../utils/sql_method_utils"; |
| 31 | +import { ClientWrapper } from "../../client_wrapper"; |
| 32 | +import { getWriter, logAndThrowError } from "../../utils/utils"; |
| 33 | +import { CanReleaseResources } from "../../can_release_resources"; |
| 34 | +import { PoolClientWrapper } from "../../pool_client_wrapper"; |
35 | 35 |
|
36 | 36 | export class ReadWriteSplittingPlugin extends AbstractConnectionPlugin implements CanReleaseResources { |
37 | 37 | private static readonly subscribedMethods: Set<string> = new Set(["initHostProvider", "connect", "notifyConnectionChanged", "query"]); |
|
0 commit comments