Skip to content

Commit b5ce7c8

Browse files
committed
Databases refactoring.
1 parent 43aac5a commit b5ce7c8

18 files changed

+2453
-1485
lines changed

THIRD_PARTY.txt

Lines changed: 27 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
** apache-arrow-1.0.0; version 1.0.0 -- https://arrow.apache.org/
22
** boto3; version 1.12.49 -- https://github.com/boto/boto3/
33
** botocore; version 1.15.49 -- https://github.com/boto/botocore/
4+
** redshift_connector; version 2.0.711 -- https://github.com/aws/amazon-redshift-python-driver
45

56
Apache License
67

@@ -329,12 +330,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
329330
** pymysql; version 0.10.0 -- https://pymysql.readthedocs.io/
330331
Copyright (c) 2010, 2013 PyMySQL contributors
331332
All rights reserved.
332-
** sqlalchemy-redshift; version 0.7.0 -- https://github.com/sqlalchemy-redshift/sqlalchemy-redshift
333-
Copyright (c) 2013 Matt George
334-
All rights reserved.
335-
** sqlalchemy; version 1.3.10 -- https://www.sqlalchemy.org/
336-
Copyright 2005-2020 SQLAlchemy authors and contributors <see AUTHORS file>.
337-
All rights reserved.
333+
338334

339335
Permission is hereby granted, free of charge, to any person obtaining a copy
340336
of this software and associated documentation files (the "Software"), to deal
@@ -355,53 +351,30 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
355351
THE SOFTWARE.
356352

357353
-----
354+
** pg8000; version 0.16.6 -- https://github.com/tlocke/pg8000
355+
Copyright (c) 2007-2009, Mathieu Fenniak
356+
All rights reserved.
358357

359-
psycopg2 and the LGPL
360-
---------------------
361-
362-
psycopg2 is free software: you can redistribute it and/or modify it
363-
under the terms of the GNU Lesser General Public License as published
364-
by the Free Software Foundation, either version 3 of the License, or
365-
(at your option) any later version.
366-
367-
psycopg2 is distributed in the hope that it will be useful, but WITHOUT
368-
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
369-
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
370-
License for more details.
371-
372-
In addition, as a special exception, the copyright holders give
373-
permission to link this program with the OpenSSL library (or with
374-
modified versions of OpenSSL that use the same license as OpenSSL),
375-
and distribute linked combinations including the two.
376-
377-
You must obey the GNU Lesser General Public License in all respects for
378-
all of the code used other than OpenSSL. If you modify file(s) with this
379-
exception, you may extend this exception to your version of the file(s),
380-
but you are not obligated to do so. If you do not wish to do so, delete
381-
this exception statement from your version. If you delete this exception
382-
statement from all source files in the program, then also delete it here.
383-
384-
You should have received a copy of the GNU Lesser General Public License
385-
along with psycopg2 (see the doc/ directory.)
386-
If not, see <https://www.gnu.org/licenses/>.
387-
388-
389-
Alternative licenses
390-
--------------------
391-
392-
The following BSD-like license applies (at your option) to the files following
393-
the pattern ``psycopg/adapter*.{h,c}`` and ``psycopg/microprotocol*.{h,c}``:
394-
395-
Permission is granted to anyone to use this software for any purpose,
396-
including commercial applications, and to alter it and redistribute it
397-
freely, subject to the following restrictions:
398-
399-
1. The origin of this software must not be misrepresented; you must not
400-
claim that you wrote the original software. If you use this
401-
software in a product, an acknowledgment in the product documentation
402-
would be appreciated but is not required.
403-
404-
2. Altered source versions must be plainly marked as such, and must not
405-
be misrepresented as being the original software.
358+
Redistribution and use in source and binary forms, with or without
359+
modification, are permitted provided that the following conditions are
360+
met:
406361

407-
3. This notice may not be removed or altered from any source distribution.
362+
* Redistributions of source code must retain the above copyright notice,
363+
this list of conditions and the following disclaimer.
364+
* Redistributions in binary form must reproduce the above copyright notice,
365+
this list of conditions and the following disclaimer in the documentation
366+
and/or other materials provided with the distribution.
367+
* The name of the author may not be used to endorse or promote products
368+
derived from this software without specific prior written permission.
369+
370+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
371+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
372+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
373+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
374+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
375+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
376+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
377+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
378+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
379+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
380+
POSSIBILITY OF SUCH DAMAGE.

awswrangler/__init__.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,40 @@
77

88
import logging as _logging
99

10-
from awswrangler import athena, catalog, cloudwatch, db, emr, exceptions, quicksight, s3, sts # noqa
10+
from awswrangler import ( # noqa
11+
athena,
12+
catalog,
13+
cloudwatch,
14+
emr,
15+
exceptions,
16+
mysql,
17+
postgresql,
18+
quicksight,
19+
redshift,
20+
s3,
21+
sts,
22+
)
1123
from awswrangler.__metadata__ import __description__, __license__, __title__, __version__ # noqa
1224
from awswrangler._config import config # noqa
1325

1426
__all__ = [
1527
"athena",
1628
"catalog",
1729
"cloudwatch",
18-
"db",
1930
"emr",
2031
"exceptions",
2132
"quicksight",
2233
"s3",
2334
"sts",
35+
"redshift",
36+
"mysql",
37+
"postgresql",
2438
"config",
2539
"__description__",
2640
"__license__",
2741
"__title__",
2842
"__version__",
2943
]
3044

45+
3146
_logging.getLogger("awswrangler").addHandler(_logging.NullHandler())

0 commit comments

Comments
 (0)