diff --git a/.gitignore b/.gitignore index 45dd5253d7b2..7dc8a4fa6e5d 100644 --- a/.gitignore +++ b/.gitignore @@ -122,5 +122,8 @@ distribution/lib/Standard/Examples/*/data/scratch_file distribution/lib/Standard/Examples/*/data/image.png distribution/editions distribution/lib/Standard/Table/*/polyglot/ +distribution/lib/Standard/Database/*/polyglot/ distribution/lib/Standard/Examples/*/data/spreadsheet.xls distribution/lib/Standard/Examples/*/data/spreadsheet.xlsx + +test/Database_Tests/data/redshift_credentials.json diff --git a/RELEASES.md b/RELEASES.md index 621dd63b2645..f0d9c3b71599 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -5,6 +5,11 @@ does not seem to freeze the compiler ([#1972](https://github.com/enso-org/enso/pull/1972)). +## Libraries + +- Added support for Amazon Redshift in the database library + ([#1985](https://github.com/enso-org/enso/pull/1985)). + # Enso 0.2.27 (2021-08-23) ## Libraries diff --git a/build.sbt b/build.sbt index 710adcda2376..a55c79a6af81 100644 --- a/build.sbt +++ b/build.sbt @@ -1588,8 +1588,11 @@ lazy val `std-database` = project Compile / packageBin / artifactPath := `database-polyglot-root` / "std-database.jar", libraryDependencies ++= Seq( - "org.xerial" % "sqlite-jdbc" % "3.34.0", - "org.postgresql" % "postgresql" % "42.2.19" + "org.xerial" % "sqlite-jdbc" % "3.34.0", + "org.postgresql" % "postgresql" % "42.2.19", + "com.amazon.redshift" % "redshift-jdbc42" % "2.0.0.7", + "com.amazonaws" % "aws-java-sdk-core" % "1.12.58", + "com.amazonaws" % "aws-java-sdk-redshift" % "1.12.58" ), Compile / packageBin := Def.task { val result = (Compile / packageBin).value @@ -1597,7 +1600,8 @@ lazy val `std-database` = project .copyDependencies( `database-polyglot-root`, Some("std-database.jar"), - ignoreScalaLibrary = true + ignoreScalaLibrary = true, + unpackedDeps = Set("aws-java-sdk-core", "httpclient") ) .value result diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/NOTICE b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/NOTICE index d6ac524b01e5..0323fcb76c5e 100644 --- a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/NOTICE +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/NOTICE @@ -1,6 +1,71 @@ Enso Copyright 2020 - 2021 New Byte Order sp. z o. o. +'redshift-jdbc42', licensed under the Apache License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `com.amazon.redshift.redshift-jdbc42-2.0.0.7`. + + +'aws-java-sdk-core', licensed under the Apache License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `com.amazonaws.aws-java-sdk-core-1.12.58`. + + +'aws-java-sdk-redshift', licensed under the Apache License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `com.amazonaws.aws-java-sdk-redshift-1.12.58`. + + +'jmespath-java', licensed under the Apache License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `com.amazonaws.jmespath-java-1.12.58`. + + +'jackson-annotations', licensed under the The Apache Software License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `com.fasterxml.jackson.core.jackson-annotations-2.12.3`. + + +'jackson-core', licensed under the The Apache Software License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `com.fasterxml.jackson.core.jackson-core-2.12.3`. + + +'jackson-databind', licensed under the The Apache Software License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `com.fasterxml.jackson.core.jackson-databind-2.12.3`. + + +'jackson-dataformat-cbor', licensed under the The Apache Software License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `com.fasterxml.jackson.dataformat.jackson-dataformat-cbor-2.12.3`. + + +'commons-codec', licensed under the Apache License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `commons-codec.commons-codec-1.15`. + + +'commons-logging', licensed under the The Apache Software License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `commons-logging.commons-logging-1.1.3`. + + +'joda-time', licensed under the Apache 2, is distributed with the Database. +The license information can be found along with the copyright notices. +Copyright notices related to this dependency can be found in the directory `joda-time.joda-time-2.8.1`. + + +'httpclient', licensed under the Apache License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `org.apache.httpcomponents.httpclient-4.5.13`. + + +'httpcore', licensed under the Apache License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `org.apache.httpcomponents.httpcore-4.4.13`. + + 'checker-qual', licensed under the The MIT License, is distributed with the Database. The license information can be found along with the copyright notices. Copyright notices related to this dependency can be found in the directory `org.checkerframework.checker-qual-3.5.0`. @@ -15,3 +80,8 @@ Copyright notices related to this dependency can be found in the directory `org. The license information can be found along with the copyright notices. Copyright notices related to this dependency can be found in the directory `org.xerial.sqlite-jdbc-3.34.0`. + +'ion-java', licensed under the The Apache License, Version 2.0, is distributed with the Database. +The license file can be found at `licenses/APACHE2.0`. +Copyright notices related to this dependency can be found in the directory `software.amazon.ion.ion-java-1.0.2`. + diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazon.redshift.redshift-jdbc42-2.0.0.7/NOTICES b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazon.redshift.redshift-jdbc42-2.0.0.7/NOTICES new file mode 100644 index 000000000000..dd59caa7a847 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazon.redshift.redshift-jdbc42-2.0.0.7/NOTICES @@ -0,0 +1,41 @@ +Copyright (C) 2005 + +Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER + +Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER. + +Copyright (c) 2003, PostgreSQL Global Development Group + +Copyright (c) 2004, Open Cloud Limited. + +Copyright (c) 2004, PostgreSQL Global Development Group + +Copyright (c) 2004, PostgreSQL Global Development Group. + +Copyright (c) 2005, PostgreSQL Global Development Group + +Copyright (c) 2006, PostgreSQL Global Development Group + +Copyright (c) 2007, PostgreSQL Global Development Group + +Copyright (c) 2008, PostgreSQL Global Development Group + +Copyright (c) 2009, PostgreSQL Global Development Group + +Copyright (c) 2011, PostgreSQL Global Development Group + +Copyright (c) 2012, PostgreSQL Global Development Group + +Copyright (c) 2014, PostgreSQL Global Development Group + +Copyright (c) 2015, PostgreSQL Global Development Group + +Copyright (c) 2016, PostgreSQL Global Development Group + +Copyright (c) 2017, PostgreSQL Global Development Group + +Copyright (c) 2018, PostgreSQL Global Development Group + +Copyright (c) 2019, PostgreSQL Global Development Group + +Copyright (c) 2020, PostgreSQL Global Development Group diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazon.redshift.redshift-jdbc42-2.0.0.7/THIRD_PARTY_LICENSES b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazon.redshift.redshift-jdbc42-2.0.0.7/THIRD_PARTY_LICENSES new file mode 100644 index 000000000000..533bd91c6031 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazon.redshift.redshift-jdbc42-2.0.0.7/THIRD_PARTY_LICENSES @@ -0,0 +1,67 @@ + --License Start-- + BSD-2-Clause License: + + Copyright (c) 1997, PostgreSQL Global Development Group + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + --License End-- + +This product includes software that is licensed under the Apache License, +Version 2.0 (listed below). + +--License Start-- +AWS SDK for Java +Copyright © 2015, Amazon Web Services, Inc. or its affiliates. All rights +reserved. + +Apache Commons Codec +Copyright © 2002-2014 The Apache Software Foundation + +Apache Commons Logging +Copyright © 2001-2014 The Apache Software Foundation + +Apache HttpComponents Client +Copyright © 1999-2012 The Apache Software Foundation + +Apache HttpComponents Core +Copyright © 1999-2012 The Apache Software Foundation + +Jackson +Copyright © 2009-2011 FasterXML, LLC + +Joda-Time +Copyright © 2005–2015 Joda.org. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +License for the specific language governing permissions and limitations +under the License. +--License End-- \ No newline at end of file diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazonaws.aws-java-sdk-core-1.12.58/NOTICES b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazonaws.aws-java-sdk-core-1.12.58/NOTICES new file mode 100644 index 000000000000..899aa1d1fa0c --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazonaws.aws-java-sdk-core-1.12.58/NOTICES @@ -0,0 +1,45 @@ +Copyright (c) 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright (c) 2016-2019. Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright (c) 2016. Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright (c) 2019. Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights + +Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2011-2021 Amazon Technologies, Inc. + +Copyright 2011-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2012-2021 Amazon Technologies, Inc. + +Copyright 2012-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2013-2021 Amazon Technologies, Inc. + +Copyright 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2014-2021 Amazon Technologies, Inc. + +Copyright 2014-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2015-2021 Amazon Technologies, Inc. + +Copyright 2015-2021 Amazon.com, Inc. or its affiliates. All Rights + +Copyright 2015-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2018-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2019-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Portions copyright 2006-2009 James Murty. Please see LICENSE.txt diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazonaws.aws-java-sdk-redshift-1.12.58/NOTICES b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazonaws.aws-java-sdk-redshift-1.12.58/NOTICES new file mode 100644 index 000000000000..a67dfda32356 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazonaws.aws-java-sdk-redshift-1.12.58/NOTICES @@ -0,0 +1 @@ +Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazonaws.jmespath-java-1.12.58/NOTICES b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazonaws.jmespath-java-1.12.58/NOTICES new file mode 100644 index 000000000000..344e9b779625 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.amazonaws.jmespath-java-1.12.58/NOTICES @@ -0,0 +1 @@ +Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-annotations-2.12.3/NOTICES b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-annotations-2.12.3/NOTICES new file mode 100644 index 000000000000..f8c21f8bcbb0 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-annotations-2.12.3/NOTICES @@ -0,0 +1,2 @@ +See https://github.com/FasterXML/jackson-annotations for more information + diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-core-2.12.3/NOTICE b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-core-2.12.3/NOTICE new file mode 100644 index 000000000000..d226e890daa8 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-core-2.12.3/NOTICE @@ -0,0 +1,17 @@ +# Jackson JSON processor + +Jackson is a high-performance, Free/Open Source JSON processing library. +It was originally written by Tatu Saloranta (tatu.saloranta@iki.fi), and has +been in development since 2007. +It is currently developed by a community of developers. + +## Licensing + +Jackson 2.x core and extension components are licensed under Apache License 2.0 +To find the details that apply to this artifact see the accompanying LICENSE file. + +## Credits + +A list of contributors may be found from CREDITS(-2.x) file, which is included +in some artifacts (usually source distributions); but is always available +from the source code management (SCM) system project uses. diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-core-2.12.3/NOTICES b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-core-2.12.3/NOTICES new file mode 100644 index 000000000000..19b15f0b67b4 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-core-2.12.3/NOTICES @@ -0,0 +1 @@ +Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-databind-2.12.3/NOTICE b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-databind-2.12.3/NOTICE new file mode 100644 index 000000000000..d226e890daa8 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.core.jackson-databind-2.12.3/NOTICE @@ -0,0 +1,17 @@ +# Jackson JSON processor + +Jackson is a high-performance, Free/Open Source JSON processing library. +It was originally written by Tatu Saloranta (tatu.saloranta@iki.fi), and has +been in development since 2007. +It is currently developed by a community of developers. + +## Licensing + +Jackson 2.x core and extension components are licensed under Apache License 2.0 +To find the details that apply to this artifact see the accompanying LICENSE file. + +## Credits + +A list of contributors may be found from CREDITS(-2.x) file, which is included +in some artifacts (usually source distributions); but is always available +from the source code management (SCM) system project uses. diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.dataformat.jackson-dataformat-cbor-2.12.3/CREDITS-2.x.txt b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.dataformat.jackson-dataformat-cbor-2.12.3/CREDITS-2.x.txt new file mode 100644 index 000000000000..762524a73e07 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/com.fasterxml.jackson.dataformat.jackson-dataformat-cbor-2.12.3/CREDITS-2.x.txt @@ -0,0 +1,35 @@ +Here are people who have contributed to development of this project +(version numbers in brackets indicate release in which the problem was fixed) + +Tatu Saloranta, tatu.saloranta@iki.fi: author + +Clinton Gormley (clintongormley@github) + +* Suggested [#5]: Support binary (byte[]) Object keys (assuming UTF-8 encoding) + (2.4.3) +* Suggested [#6]: Support 'self-describe' CBOR tag + (2.4.3) + +mbaril@github) + +* Reported #9, suggested fix, contributed unit test: Infinite loop when trying + to write binary data using CBORGenerator + (2.5.1) + +Steve Gury (stevegury@github) + +* Reported #13, suggested fix: Bug in boundary checking in the CBORParser + (2.6.2) + +Adrien Grand (jpountz@github) + +* Reported #15: CBORParser.getNumberType returns DOUBLE even if the generator + has been fed with a float + (2.6.5) + +philipa@githubL + +* Requested #20: Add a public `finishToken()` + (2.7.2) +* Requested #22: CBORGenerator.copyCurrentStructure() and copyCurrentEvent() do not copy tags + (2.7.2) \ No newline at end of file diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-codec.commons-codec-1.15/NOTICE.txt b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-codec.commons-codec-1.15/NOTICE.txt new file mode 100644 index 000000000000..9899d2108a84 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-codec.commons-codec-1.15/NOTICE.txt @@ -0,0 +1,17 @@ +Apache Commons Codec +Copyright 2002-2020 The Apache Software Foundation + +This product includes software developed at +The Apache Software Foundation (https://www.apache.org/). + +src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java +contains test data from http://aspell.net/test/orig/batch0.tab. +Copyright (C) 2002 Kevin Atkinson (kevina@gnu.org) + +=============================================================================== + +The content of package org.apache.commons.codec.language.bm has been translated +from the original php source code available at http://stevemorse.org/phoneticinfo.htm +with permission from the original authors. +Original source copyright: +Copyright (c) 2008 Alexander Beider & Stephen P. Morse. diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-codec.commons-codec-1.15/NOTICES b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-codec.commons-codec-1.15/NOTICES new file mode 100644 index 000000000000..6ab681a5b3bd --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-codec.commons-codec-1.15/NOTICES @@ -0,0 +1 @@ +Some portions of this file Copyright (c) 2004-2006 Intel Corportation diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-logging.commons-logging-1.1.3/NOTICE.txt b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-logging.commons-logging-1.1.3/NOTICE.txt new file mode 100644 index 000000000000..556bd03951d4 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-logging.commons-logging-1.1.3/NOTICE.txt @@ -0,0 +1,6 @@ +Apache Commons Logging +Copyright 2003-2014 The Apache Software Foundation + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). + diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-logging.commons-logging-1.1.3/NOTICES b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-logging.commons-logging-1.1.3/NOTICES new file mode 100644 index 000000000000..8cd8d66408c4 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/commons-logging.commons-logging-1.1.3/NOTICES @@ -0,0 +1 @@ +this work for additional information regarding copyright ownership. diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/joda-time.joda-time-2.8.1/LICENSE.txt b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/joda-time.joda-time-2.8.1/LICENSE.txt new file mode 100644 index 000000000000..75b52484ea47 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/joda-time.joda-time-2.8.1/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/joda-time.joda-time-2.8.1/NOTICE.txt b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/joda-time.joda-time-2.8.1/NOTICE.txt new file mode 100644 index 000000000000..ac95834168d8 --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/joda-time.joda-time-2.8.1/NOTICE.txt @@ -0,0 +1,5 @@ +============================================================================= += NOTICE file corresponding to section 4d of the Apache License Version 2.0 = +============================================================================= +This product includes software developed by +Joda.org (http://www.joda.org/). diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/joda-time.joda-time-2.8.1/NOTICES b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/joda-time.joda-time-2.8.1/NOTICES new file mode 100644 index 000000000000..6821c00ea6db --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/joda-time.joda-time-2.8.1/NOTICES @@ -0,0 +1,19 @@ +Copyright 2001-2005 Stephen Colebourne + +Copyright 2001-2006 Stephen Colebourne + +Copyright 2001-2007 Stephen Colebourne + +Copyright 2001-2009 Stephen Colebourne + +Copyright 2001-2010 Stephen Colebourne + +Copyright 2001-2011 Stephen Colebourne + +Copyright 2001-2012 Stephen Colebourne + +Copyright 2001-2013 Stephen Colebourne + +Copyright 2001-2014 Stephen Colebourne + +Copyright 2001-2015 Stephen Colebourne diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/licenses/APACHE2.0 b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/licenses/APACHE2.0 new file mode 100644 index 000000000000..261eeb9e9f8b --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/licenses/APACHE2.0 @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/org.apache.httpcomponents.httpclient-4.5.13/NOTICE b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/org.apache.httpcomponents.httpclient-4.5.13/NOTICE new file mode 100644 index 000000000000..f3c91e72f38c --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/org.apache.httpcomponents.httpclient-4.5.13/NOTICE @@ -0,0 +1,8 @@ + +Apache HttpClient +Copyright 1999-2020 The Apache Software Foundation + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). + + diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/org.apache.httpcomponents.httpcore-4.4.13/NOTICE b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/org.apache.httpcomponents.httpcore-4.4.13/NOTICE new file mode 100644 index 000000000000..c8575b4d0acb --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/org.apache.httpcomponents.httpcore-4.4.13/NOTICE @@ -0,0 +1,8 @@ + +Apache HttpCore +Copyright 2005-2020 The Apache Software Foundation + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). + + diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/software.amazon.ion.ion-java-1.0.2/NOTICES b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/software.amazon.ion.ion-java-1.0.2/NOTICES new file mode 100644 index 000000000000..6ab9746f539a --- /dev/null +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/THIRD-PARTY/software.amazon.ion.ion-java-1.0.2/NOTICES @@ -0,0 +1,27 @@ + + +Copyright (c) 2007 Amazon.com, Inc. All rights reserved. + +Copyright (c) 2007-2013 Amazon.com, Inc. All rights reserved. + +Copyright (c) 2016 Amazon.com, Inc. All rights reserved. + +Copyright 2007-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2008-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2009-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2013-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2014-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2015-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Copyright 2016-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/data/empty.ini b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/data/empty.ini new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Connection/Connection.enso b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Connection/Connection.enso index 449ed773dd7c..872fca5387c9 100644 --- a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Connection/Connection.enso +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Connection/Connection.enso @@ -269,6 +269,13 @@ create_jdbc_connection url properties = here.wrap_sql_errors <| java_props = Properties.new properties.each pair-> java_props.setProperty pair.first pair.second + ## This is a workaround for the Redshift driver - it looks for an ini file + by looking at the jar file location, which is not available in the Graal + class loader. This block may be removed when migrated to a Graal version + with https://github.com/oracle/graal/issues/3744 fixed. + if url.starts_with 'jdbc:redshift:' && (java_props.getProperty 'IniFile' . is_nothing) then + path = Enso_Project.data/'empty.ini' . absolute . path + java_props.setProperty 'IniFile' path dialect = Dialect.supported_dialects.find (d -> url.starts_with "jdbc:"+d.name) . map_error (_ -> Unsupported_Dialect url) java_connection = JDBCProxy.getConnection url java_props resource = Managed_Resource.register java_connection here.close_connection diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Connection/Database.enso b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Connection/Database.enso index f406a0b75acd..e899c30afe2e 100644 --- a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Connection/Database.enso +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Connection/Database.enso @@ -15,7 +15,7 @@ from Standard.Database.Connection.Connection import all for authentication. Supported properties depend on the database engine that the connection is made to. Optional. - Currently SQLite and PostgreSQL databases are supported. + Currently SQLite, PostgreSQL and Amazon Redshift are supported. ? Finding the URL The exact URL depends on the database engine. For SQLite the expected o @@ -32,11 +32,13 @@ from Standard.Database.Connection.Connection import all are allowed; - `postgresql://host/` - which will connect to the same database as the username on a specified host, the `host`` is defined as above. + For Redshift, the URL can be found in the cluster management section in the + AWS admin console. connect : Text -> Nothing | Text -> Nothing | Text -> Vector -> Connection ! Sql_Error connect url user=Nothing password=Nothing custom_properties=[] = full_url = if url.starts_with "jdbc:" then url else "jdbc:"+url user_prop = if user.is_nothing then [] else [["user", user]] - pass_prop = if user.is_nothing then [] else [["password", password]] + pass_prop = if password.is_nothing then [] else [["password", password]] properties = user_prop + pass_prop + custom_properties Connection.create_jdbc_connection full_url properties diff --git a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Data/Dialect.enso b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Data/Dialect.enso index b44ae5f06a9b..ff15575e3396 100644 --- a/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Data/Dialect.enso +++ b/distribution/lib/Standard/Database/0.2.28-SNAPSHOT/src/Data/Dialect.enso @@ -97,9 +97,16 @@ sqlite = dialect = Base_Generator.base_dialect . extend_with my_mappings Dialect "sqlite" (query -> Base_Generator.generate_query dialect query . build) +## PRIVATE + + The dialect for Redshift connections. +redshift : Dialect +redshift = case here.postgresql of + Dialect _ builder -> Dialect "redshift" builder + ## PRIVATE A vector of SQL dialects supported by the Database library. supported_dialects : Vector Dialect -supported_dialects = [here.postgresql, here.sqlite] +supported_dialects = [here.postgresql, here.sqlite, here.redshift] diff --git a/std-bits/database/src/main/java/org/enso/database/JDBCProxy.java b/std-bits/database/src/main/java/org/enso/database/JDBCProxy.java index c990f956d77f..bb861450effe 100644 --- a/std-bits/database/src/main/java/org/enso/database/JDBCProxy.java +++ b/std-bits/database/src/main/java/org/enso/database/JDBCProxy.java @@ -20,7 +20,8 @@ public class JDBCProxy { * * @return an array of JDBC drivers that are currently registered */ - public static Object[] getDrivers() { + public static Object[] getDrivers() throws SQLException { + initialize(); return DriverManager.drivers().toArray(); } @@ -43,5 +44,8 @@ private static void initialize() throws SQLException { if (!org.postgresql.Driver.isRegistered()) { org.postgresql.Driver.register(); } + if (!com.amazon.redshift.jdbc.Driver.isRegistered()) { + com.amazon.redshift.jdbc.Driver.register(); + } } } diff --git a/test/Database_Tests/src/Common_Spec.enso b/test/Database_Tests/src/Common_Spec.enso index 4ae0abbde9e0..38350006b4bb 100644 --- a/test/Database_Tests/src/Common_Spec.enso +++ b/test/Database_Tests/src/Common_Spec.enso @@ -14,45 +14,45 @@ spec prefix connection pending=Nothing = clean_table name = Panic.recover <| sql = 'DROP TABLE "' + name + '"' Panic.rethrow <| connection.execute_update sql - t1 = make_table "T1" ["A", "B", "C"] ["INT", "INT", "INT"] + t1 = make_table "T1" ["a", "b", "c"] ["INT", "INT", "INT"] t1.insert [1, 2, 3] t1.insert [4, 5, 6] Test.group prefix+"Basic Table Access" pending=pending <| Test.specify "should allow to materialize tables and columns into local memory" <| df = t1.to_dataframe - a = t1.at 'A' . to_dataframe - df.at 'A' . to_vector . should_equal [1, 4] + a = t1.at 'a' . to_dataframe + df.at 'a' . to_vector . should_equal [1, 4] a.to_vector . should_equal [1, 4] Test.specify "should allow to materialize columns directly into a Vector" <| - v = t1.at 'A' . to_vector + v = t1.at 'a' . to_vector v . should_equal [1, 4] Test.specify "should preserve indexes when materializing tables" <| # TODO add multi indexes when implemented - df = t1.set_index 'A' . to_dataframe - df.at 'B' . to_vector . should_equal [2, 5] - df.columns.map .name . should_equal ['B', 'C'] + df = t1.set_index 'a' . to_dataframe + df.at 'b' . to_vector . should_equal [2, 5] + df.columns.map .name . should_equal ['b', 'c'] ix = df.index - ix.name . should_equal 'A' + ix.name . should_equal 'a' ix.to_vector . should_equal [1, 4] Test.specify "should preserve indexes when materializing columns" <| # TODO add multi indexes when implemented - b = t1.set_index 'A' . at 'B' + b = t1.set_index 'a' . at 'b' col = b . to_dataframe col.to_vector . should_equal [2, 5] ix = col.index - ix.name . should_equal 'A' + ix.name . should_equal 'a' ix.to_vector . should_equal [1, 4] ix2 = b.to_table.index - ix2.name . should_equal 'A' + ix2.name . should_equal 'a' ix2.to_vector . should_equal [1, 4] Test.specify "should work correctly when there are no columns" <| empty = t1.select [] empty.to_dataframe.columns.length . should_equal 0 empty.to_dataframe.row_count . should_equal empty.row_count Test.specify "should handle bigger result sets" <| - table = make_table "Big" ["A", "B", "C"] ["INT", "REAL", "VARCHAR"] + table = make_table "Big" ["a", "b", "c"] ["INT", "REAL", "VARCHAR"] n = 1000 0.up_to n . each ix-> table.insert [ix, ix * 3.1415926, ix.to_text] @@ -118,14 +118,14 @@ spec prefix connection pending=Nothing = Test.group prefix+"Masking Tables" pending=pending <| Test.specify "should allow to select rows from a table or column based on an expression" <| - t2 = t1.where (t1.at "A" == 1) + t2 = t1.where (t1.at "a" == 1) df = t2.to_dataframe - df.at "A" . to_vector . should_equal [1] - df.at "B" . to_vector . should_equal [2] - df.at "C" . to_vector . should_equal [3] - t2.at "A" . to_vector . should_equal [1] - t2.at "B" . to_vector . should_equal [2] - t2.at "C" . to_vector . should_equal [3] + df.at "a" . to_vector . should_equal [1] + df.at "b" . to_vector . should_equal [2] + df.at "c" . to_vector . should_equal [3] + t2.at "a" . to_vector . should_equal [1] + t2.at "b" . to_vector . should_equal [2] + t2.at "c" . to_vector . should_equal [3] Test.group prefix+"Joining Tables" pending=pending <| a = make_table "TA" ["x", "y"] ["INTEGER", "VARCHAR"] @@ -192,42 +192,42 @@ spec prefix connection pending=Nothing = df . at "name_b" . to_vector . should_equal ["Bar", "Hmm"] Test.group prefix+"Missing Values" pending=pending <| - t4 = make_table "T4" ["A", "B", "C"] ["INT", "BOOLEAN", "VARCHAR"] + t4 = make_table "T4" ["a", "b", "c"] ["INT", "BOOLEAN", "VARCHAR"] t4.insert [0, True, ""] t4.insert [1, Nothing, "foo"] t4.insert [Nothing, True, "bar"] t4.insert [42, False, Nothing] t4.insert [Nothing, Nothing, Nothing] Test.specify "fill_missing should replace nulls" <| - t4.at 'A' . fill_missing 10 . to_vector . should_equal [0, 1, 10, 42, 10] - t4.at 'B' . fill_missing False . to_vector . should_equal [True, False, True, False, False] - t4.at 'C' . fill_missing "NA" . to_vector . should_equal ["", "foo", "bar", "NA", "NA"] + t4.at 'a' . fill_missing 10 . to_vector . should_equal [0, 1, 10, 42, 10] + t4.at 'b' . fill_missing False . to_vector . should_equal [True, False, True, False, False] + t4.at 'c' . fill_missing "NA" . to_vector . should_equal ["", "foo", "bar", "NA", "NA"] Test.specify "should correctly be counted" <| t4.row_count . should_equal 5 - col = t4.at 'A' + col = t4.at 'a' col.length . should_equal 5 col.count . should_equal 3 col.count_missing . should_equal 2 Test.specify "drop_missing should drop missing rows in a Column" <| - col = t4.at 'A' + col = t4.at 'a' col.drop_missing.to_vector . should_equal [0, 1, 42] Test.specify "drop_missing_rows should drop rows that contain at least one missing column in a Table" <| d = t4.drop_missing_rows.to_dataframe - d.at 'A' . to_vector . should_equal [0] - d.at 'B' . to_vector . should_equal [True] - d.at 'C' . to_vector . should_equal [""] + d.at 'a' . to_vector . should_equal [0] + d.at 'b' . to_vector . should_equal [True] + d.at 'c' . to_vector . should_equal [""] Test.specify "drop_missing_columns should drop columns that contain at least one missing row in a Table" <| - t5 = make_table "T5" ["A", "B"] ["INT", "BOOLEAN", "VARCHAR"] + t5 = make_table "T5" ["a", "b"] ["INT", "BOOLEAN", "VARCHAR"] t5.insert [1, True, "foo"] t5.insert [2, False, Nothing] t5.insert [3, Nothing, "aaa"] r = t5.drop_missing_columns - r.columns.map .name . should_equal ["A"] + r.columns.map .name . should_equal ["a"] r.at "A" . to_vector . should_equal [1, 2, 3] empty = t4.drop_missing_columns @@ -288,7 +288,7 @@ spec prefix connection pending=Nothing = price.mean.should_equal 26.9 Test.group prefix+"Sorting" pending=pending <| - df = make_table "clothes" ['Id', 'Name', 'Quantity', 'Rating', 'Price'] ['INTEGER', 'VARCHAR', 'INTEGER', 'DOUBLE PRECISION', 'DOUBLE PRECISION'] + df = make_table "clothes" ['id', 'name', 'quantity', 'rating', 'price'] ['INTEGER', 'VARCHAR', 'INTEGER', 'DOUBLE PRECISION', 'DOUBLE PRECISION'] df.insert [1,'shoes',20,3.0,37.2] df.insert [2,'trousers',10,Nothing,42.1] df.insert [3,'dress',20,7.3,64.1] @@ -297,34 +297,34 @@ spec prefix connection pending=Nothing = df.insert [6,'t-shirt',30,Nothing,64.2] Test.specify "should allow sorting by a single column name" <| - r_1 = df.sort by="Quantity" - r_1.at 'Id' . to_vector . should_equal [2,4,1,3,5,6] + r_1 = df.sort by="quantity" + r_1.at 'id' . to_vector . should_equal [2,4,1,3,5,6] - r_2 = df.sort by="Rating" missing_last=False - r_2.at 'Id' . to_vector . should_equal [2,6,5,1,4,3] + r_2 = df.sort by="rating" missing_last=False + r_2.at 'id' . to_vector . should_equal [2,6,5,1,4,3] - r_3 = df.sort by="Rating" missing_last=False order=Sort_Order.Descending - r_3.at 'Id' . to_vector . should_equal [2,6,3,1,4,5] + r_3 = df.sort by="rating" missing_last=False order=Sort_Order.Descending + r_3.at 'id' . to_vector . should_equal [2,6,3,1,4,5] Test.specify 'should allow sorting by multiple column names' <| - r_1 = df.sort by=['Quantity', 'Rating'] - r_1.at 'Id' . to_vector . should_equal [4,2,1,3,5,6] + r_1 = df.sort by=['quantity', 'rating'] + r_1.at 'id' . to_vector . should_equal [4,2,1,3,5,6] - r_2 = df.sort by=['Rating', 'Quantity'] missing_last=False order=Sort_Order.Descending - r_2.at 'Id' . to_vector . should_equal [6,2,3,1,4,5] + r_2 = df.sort by=['rating', 'quantity'] missing_last=False order=Sort_Order.Descending + r_2.at 'id' . to_vector . should_equal [6,2,3,1,4,5] Test.specify 'should allow sorting by external columns' <| - quality_ratio = df.at 'Rating' / df.at 'Price' + quality_ratio = df.at 'rating' / df.at 'price' r_1 = df.sort by=quality_ratio - r_1.at 'Id' . to_vector . should_equal [4,1,3,5,2,6] + r_1.at 'id' . to_vector . should_equal [4,1,3,5,2,6] - r_2 = df.sort by=['Quantity', quality_ratio] - r_2.at 'Id' . to_vector . should_equal [4,2,1,3,5,6] + r_2 = df.sort by=['quantity', quality_ratio] + r_2.at 'id' . to_vector . should_equal [4,2,1,3,5,6] Test.specify 'should allow sorting with specific by-column rules' <| - r_1 = df.sort by=['Quantity', (Order_Rule 'Price' order=Sort_Order.Descending)] - r_1.at 'Id' . to_vector . should_equal [4,2,3,1,6,5] + r_1 = df.sort by=['quantity', (Order_Rule 'price' order=Sort_Order.Descending)] + r_1.at 'id' . to_vector . should_equal [4,2,3,1,6,5] Test.specify 'should return dataflow error when passed a non-existent column' <| r = df.sort by='foobar' @@ -357,7 +357,7 @@ spec prefix connection pending=Nothing = df.at 'texts' . to_vector . should_equal texts Test.specify 'should sort columns with specified ordering and missing placement' <| - c = df.at 'Rating' + c = df.at 'rating' r_1 = c.sort r_1.to_vector.should_equal [2.2, 3.0, 3.0, 7.3, Nothing, Nothing] diff --git a/test/Database_Tests/src/Main.enso b/test/Database_Tests/src/Main.enso index ea8151b2b802..41dd04ddab20 100644 --- a/test/Database_Tests/src/Main.enso +++ b/test/Database_Tests/src/Main.enso @@ -4,8 +4,10 @@ import Standard.Test import project.Codegen_Spec import project.Sqlite_Spec import project.Postgresql_Spec +import project.Redshift_Spec main = Test.Suite.run_main <| Codegen_Spec.spec Sqlite_Spec.spec Postgresql_Spec.spec + Redshift_Spec.spec diff --git a/test/Database_Tests/src/Redshift_Spec.enso b/test/Database_Tests/src/Redshift_Spec.enso new file mode 100644 index 000000000000..090263d9e223 --- /dev/null +++ b/test/Database_Tests/src/Redshift_Spec.enso @@ -0,0 +1,59 @@ +from Standard.Base import all +import Standard.Base.System.Environment + +from Standard.Database import all +from Standard.Database.Connection.Connection import Sql_Error +import Standard.Test +import project.Common_Spec + +redshift_specific_spec connection pending = + Test.group "[Redshift] Info" pending=pending <| + connection.execute_update 'CREATE TABLE "Tinfo" ("strs" VARCHAR, "ints" INTEGER, "bools" BOOLEAN, "reals" REAL)' + t = connection.access_table "Tinfo" + t.insert ["a", Nothing, False, 1.2] + t.insert ["abc", Nothing, Nothing, 1.3] + t.insert ["def", 42, True, 1.4] + Test.specify "should return Table information" <| + i = t.info + i.index . to_vector . should_equal ["strs", "ints", "bools", "reals"] + i.at "Items Count" . to_vector . should_equal [3, 1, 2, 3] + i.at "SQL Type" . to_vector . should_equal ["varchar", "int4", "bool", "float4"] + Test.specify "should infer standard types correctly" <| + t.at "strs" . sql_type . is_definitely_text . should_be_true + t.at "ints" . sql_type . is_definitely_integer . should_be_true + t.at "bools" . sql_type . is_definitely_boolean . should_be_true + t.at "reals" . sql_type . is_definitely_double . should_be_true + connection.execute_update 'DROP TABLE "Tinfo"' + Test.group "[Redshift] Materialization" pending=pending <| + Test.specify "should return DECIMAL columns as BigDecimal" <| + connection.execute_update 'CREATE TABLE "TBigDecimal" ("decimals" DECIMAL(10, 2))' + t = connection.access_table "TBigDecimal" + t.insert [1.0] + t.insert [0.25] + v = t.at "decimals" . to_vector + element = v.at 0 + element.getClass.getSimpleName . should_equal "BigDecimal" + fp = t.at "decimals" . to_dataframe . map .doubleValue + fp . to_vector . should_equal [1.0, 0.25] + connection.execute_update 'DROP TABLE "TBigDecimal"' +spec = + credentials = Enso_Project.data / 'redshift_credentials.json' + case credentials.exists of + True -> + creds = Json.parse credentials.read . unwrap + access_key = ['AccessKeyID', creds.get 'access_key_id'] + secret_key = ['SecretAccessKey', creds.get 'secret_access_key'] + uri = creds.get 'db_uri' + user = creds.get 'db_user' + props = [access_key, secret_key] + connection = Database.connect uri user=user custom_properties=props + Common_Spec.spec "[Redshift] " connection Nothing + here.redshift_specific_spec connection Nothing + False -> + msg = """ + Redshift connection is not set up. Please create a JSON file containing + the credentials in `data/redshift_credentials.json` + connection = Error.throw msg + Common_Spec.spec "[Redshift] " connection msg + here.redshift_specific_spec connection msg + diff --git a/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/copyright-ignore b/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/copyright-ignore new file mode 100644 index 000000000000..8118ede68015 Binary files /dev/null and b/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/copyright-ignore differ diff --git a/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/copyright-keep b/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/copyright-keep new file mode 100644 index 000000000000..760abf6ae995 --- /dev/null +++ b/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/copyright-keep @@ -0,0 +1,21 @@ +Copyright (C) 2005 +Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER. +Copyright (c) 2003, PostgreSQL Global Development Group +Copyright (c) 2004, Open Cloud Limited. +Copyright (c) 2004, PostgreSQL Global Development Group +Copyright (c) 2004, PostgreSQL Global Development Group. +Copyright (c) 2006, PostgreSQL Global Development Group +Copyright (c) 2007, PostgreSQL Global Development Group +Copyright (c) 2005, PostgreSQL Global Development Group +Copyright (c) 2008, PostgreSQL Global Development Group +Copyright (c) 2009, PostgreSQL Global Development Group +Copyright (c) 2011, PostgreSQL Global Development Group +Copyright (c) 2014, PostgreSQL Global Development Group +Copyright (c) 2012, PostgreSQL Global Development Group +Copyright (c) 2015, PostgreSQL Global Development Group +Copyright (c) 2016, PostgreSQL Global Development Group +Copyright (c) 2017, PostgreSQL Global Development Group +Copyright (c) 2018, PostgreSQL Global Development Group +Copyright (c) 2019, PostgreSQL Global Development Group +Copyright (c) 2020, PostgreSQL Global Development Group diff --git a/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/default-and-custom-license b/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/default-and-custom-license new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/files-add/THIRD_PARTY_LICENSES b/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/files-add/THIRD_PARTY_LICENSES new file mode 100644 index 000000000000..533bd91c6031 --- /dev/null +++ b/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/files-add/THIRD_PARTY_LICENSES @@ -0,0 +1,67 @@ + --License Start-- + BSD-2-Clause License: + + Copyright (c) 1997, PostgreSQL Global Development Group + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + --License End-- + +This product includes software that is licensed under the Apache License, +Version 2.0 (listed below). + +--License Start-- +AWS SDK for Java +Copyright © 2015, Amazon Web Services, Inc. or its affiliates. All rights +reserved. + +Apache Commons Codec +Copyright © 2002-2014 The Apache Software Foundation + +Apache Commons Logging +Copyright © 2001-2014 The Apache Software Foundation + +Apache HttpComponents Client +Copyright © 1999-2012 The Apache Software Foundation + +Apache HttpComponents Core +Copyright © 1999-2012 The Apache Software Foundation + +Jackson +Copyright © 2009-2011 FasterXML, LLC + +Joda-Time +Copyright © 2005–2015 Joda.org. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +License for the specific language governing permissions and limitations +under the License. +--License End-- \ No newline at end of file diff --git a/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/files-ignore b/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/files-ignore new file mode 100644 index 000000000000..b9005a4d5ae7 --- /dev/null +++ b/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/files-ignore @@ -0,0 +1 @@ +META-INF/LICENSE diff --git a/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/files-keep b/tools/legal-review/Database/com.amazon.redshift.redshift-jdbc42-2.0.0.7/files-keep new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tools/legal-review/Database/com.amazonaws.aws-java-sdk-core-1.12.58/copyright-ignore b/tools/legal-review/Database/com.amazonaws.aws-java-sdk-core-1.12.58/copyright-ignore new file mode 100644 index 000000000000..47f54b72cf57 --- /dev/null +++ b/tools/legal-review/Database/com.amazonaws.aws-java-sdk-core-1.12.58/copyright-ignore @@ -0,0 +1,2 @@ +regarding copyright ownership. The ASF licenses this file +this work for additional information regarding copyright ownership. diff --git a/tools/legal-review/Database/com.amazonaws.aws-java-sdk-core-1.12.58/copyright-keep b/tools/legal-review/Database/com.amazonaws.aws-java-sdk-core-1.12.58/copyright-keep new file mode 100644 index 000000000000..8dc93849d18a --- /dev/null +++ b/tools/legal-review/Database/com.amazonaws.aws-java-sdk-core-1.12.58/copyright-keep @@ -0,0 +1,23 @@ +Portions copyright 2006-2009 James Murty. Please see LICENSE.txt +Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2015-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2018-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2019-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2015-2021 Amazon.com, Inc. or its affiliates. All Rights +Copyright 2015-2021 Amazon Technologies, Inc. +Copyright 2014-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2014-2021 Amazon Technologies, Inc. +Copyright 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2013-2021 Amazon Technologies, Inc. +Copyright 2012-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2012-2021 Amazon Technologies, Inc. +Copyright 2011-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2011-2021 Amazon Technologies, Inc. +Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights +Copyright (c) 2019. Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright (c) 2016. Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright (c) 2016-2019. Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright (c) 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. diff --git a/tools/legal-review/Database/com.amazonaws.aws-java-sdk-redshift-1.12.58/copyright-keep b/tools/legal-review/Database/com.amazonaws.aws-java-sdk-redshift-1.12.58/copyright-keep new file mode 100644 index 000000000000..a67dfda32356 --- /dev/null +++ b/tools/legal-review/Database/com.amazonaws.aws-java-sdk-redshift-1.12.58/copyright-keep @@ -0,0 +1 @@ +Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. diff --git a/tools/legal-review/Database/com.amazonaws.jmespath-java-1.12.58/copyright-keep b/tools/legal-review/Database/com.amazonaws.jmespath-java-1.12.58/copyright-keep new file mode 100644 index 000000000000..344e9b779625 --- /dev/null +++ b/tools/legal-review/Database/com.amazonaws.jmespath-java-1.12.58/copyright-keep @@ -0,0 +1 @@ +Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. diff --git a/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-annotations-2.12.3/copyright-add b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-annotations-2.12.3/copyright-add new file mode 100644 index 000000000000..4fb008321881 --- /dev/null +++ b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-annotations-2.12.3/copyright-add @@ -0,0 +1 @@ +See https://github.com/FasterXML/jackson-annotations for more information diff --git a/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-annotations-2.12.3/files-ignore b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-annotations-2.12.3/files-ignore new file mode 100644 index 000000000000..b9005a4d5ae7 --- /dev/null +++ b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-annotations-2.12.3/files-ignore @@ -0,0 +1 @@ +META-INF/LICENSE diff --git a/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-annotations-2.12.3/files-keep b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-annotations-2.12.3/files-keep new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-core-2.12.3/copyright-keep b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-core-2.12.3/copyright-keep new file mode 100644 index 000000000000..19b15f0b67b4 --- /dev/null +++ b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-core-2.12.3/copyright-keep @@ -0,0 +1 @@ +Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi diff --git a/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-core-2.12.3/files-ignore b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-core-2.12.3/files-ignore new file mode 100644 index 000000000000..b9005a4d5ae7 --- /dev/null +++ b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-core-2.12.3/files-ignore @@ -0,0 +1 @@ +META-INF/LICENSE diff --git a/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-core-2.12.3/files-keep b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-core-2.12.3/files-keep new file mode 100644 index 000000000000..0d1c51375183 --- /dev/null +++ b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-core-2.12.3/files-keep @@ -0,0 +1 @@ +META-INF/NOTICE diff --git a/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-databind-2.12.3/files-ignore b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-databind-2.12.3/files-ignore new file mode 100644 index 000000000000..b9005a4d5ae7 --- /dev/null +++ b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-databind-2.12.3/files-ignore @@ -0,0 +1 @@ +META-INF/LICENSE diff --git a/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-databind-2.12.3/files-keep b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-databind-2.12.3/files-keep new file mode 100644 index 000000000000..0d1c51375183 --- /dev/null +++ b/tools/legal-review/Database/com.fasterxml.jackson.core.jackson-databind-2.12.3/files-keep @@ -0,0 +1 @@ +META-INF/NOTICE diff --git a/tools/legal-review/Database/com.fasterxml.jackson.dataformat.jackson-dataformat-cbor-2.12.3/files-add/CREDITS-2.x.txt b/tools/legal-review/Database/com.fasterxml.jackson.dataformat.jackson-dataformat-cbor-2.12.3/files-add/CREDITS-2.x.txt new file mode 100644 index 000000000000..762524a73e07 --- /dev/null +++ b/tools/legal-review/Database/com.fasterxml.jackson.dataformat.jackson-dataformat-cbor-2.12.3/files-add/CREDITS-2.x.txt @@ -0,0 +1,35 @@ +Here are people who have contributed to development of this project +(version numbers in brackets indicate release in which the problem was fixed) + +Tatu Saloranta, tatu.saloranta@iki.fi: author + +Clinton Gormley (clintongormley@github) + +* Suggested [#5]: Support binary (byte[]) Object keys (assuming UTF-8 encoding) + (2.4.3) +* Suggested [#6]: Support 'self-describe' CBOR tag + (2.4.3) + +mbaril@github) + +* Reported #9, suggested fix, contributed unit test: Infinite loop when trying + to write binary data using CBORGenerator + (2.5.1) + +Steve Gury (stevegury@github) + +* Reported #13, suggested fix: Bug in boundary checking in the CBORParser + (2.6.2) + +Adrien Grand (jpountz@github) + +* Reported #15: CBORParser.getNumberType returns DOUBLE even if the generator + has been fed with a float + (2.6.5) + +philipa@githubL + +* Requested #20: Add a public `finishToken()` + (2.7.2) +* Requested #22: CBORGenerator.copyCurrentStructure() and copyCurrentEvent() do not copy tags + (2.7.2) \ No newline at end of file diff --git a/tools/legal-review/Database/com.fasterxml.jackson.dataformat.jackson-dataformat-cbor-2.12.3/files-ignore b/tools/legal-review/Database/com.fasterxml.jackson.dataformat.jackson-dataformat-cbor-2.12.3/files-ignore new file mode 100644 index 000000000000..c3349a9e9ede --- /dev/null +++ b/tools/legal-review/Database/com.fasterxml.jackson.dataformat.jackson-dataformat-cbor-2.12.3/files-ignore @@ -0,0 +1 @@ +#license diff --git a/tools/legal-review/Database/commons-codec.commons-codec-1.15/copyright-ignore b/tools/legal-review/Database/commons-codec.commons-codec-1.15/copyright-ignore new file mode 100644 index 000000000000..2ae2e1530572 --- /dev/null +++ b/tools/legal-review/Database/commons-codec.commons-codec-1.15/copyright-ignore @@ -0,0 +1,3 @@ +

This is public domain code with no copyrights. From home page of +This is public domain code with no copyrights. From home page of +this work for additional information regarding copyright ownership. diff --git a/tools/legal-review/Database/commons-codec.commons-codec-1.15/copyright-keep b/tools/legal-review/Database/commons-codec.commons-codec-1.15/copyright-keep new file mode 100644 index 000000000000..6ab681a5b3bd --- /dev/null +++ b/tools/legal-review/Database/commons-codec.commons-codec-1.15/copyright-keep @@ -0,0 +1 @@ +Some portions of this file Copyright (c) 2004-2006 Intel Corportation diff --git a/tools/legal-review/Database/commons-codec.commons-codec-1.15/files-ignore b/tools/legal-review/Database/commons-codec.commons-codec-1.15/files-ignore new file mode 100644 index 000000000000..0256724c8d06 --- /dev/null +++ b/tools/legal-review/Database/commons-codec.commons-codec-1.15/files-ignore @@ -0,0 +1 @@ +META-INF/LICENSE.txt diff --git a/tools/legal-review/Database/commons-codec.commons-codec-1.15/files-keep b/tools/legal-review/Database/commons-codec.commons-codec-1.15/files-keep new file mode 100644 index 000000000000..f9a3ec844f02 --- /dev/null +++ b/tools/legal-review/Database/commons-codec.commons-codec-1.15/files-keep @@ -0,0 +1 @@ +META-INF/NOTICE.txt diff --git a/tools/legal-review/Database/commons-logging.commons-logging-1.1.3/copyright-keep b/tools/legal-review/Database/commons-logging.commons-logging-1.1.3/copyright-keep new file mode 100644 index 000000000000..8cd8d66408c4 --- /dev/null +++ b/tools/legal-review/Database/commons-logging.commons-logging-1.1.3/copyright-keep @@ -0,0 +1 @@ +this work for additional information regarding copyright ownership. diff --git a/tools/legal-review/Database/commons-logging.commons-logging-1.1.3/files-ignore b/tools/legal-review/Database/commons-logging.commons-logging-1.1.3/files-ignore new file mode 100644 index 000000000000..0256724c8d06 --- /dev/null +++ b/tools/legal-review/Database/commons-logging.commons-logging-1.1.3/files-ignore @@ -0,0 +1 @@ +META-INF/LICENSE.txt diff --git a/tools/legal-review/Database/commons-logging.commons-logging-1.1.3/files-keep b/tools/legal-review/Database/commons-logging.commons-logging-1.1.3/files-keep new file mode 100644 index 000000000000..f9a3ec844f02 --- /dev/null +++ b/tools/legal-review/Database/commons-logging.commons-logging-1.1.3/files-keep @@ -0,0 +1 @@ +META-INF/NOTICE.txt diff --git a/tools/legal-review/Database/joda-time.joda-time-2.8.1/copyright-keep b/tools/legal-review/Database/joda-time.joda-time-2.8.1/copyright-keep new file mode 100644 index 000000000000..06241c4149a5 --- /dev/null +++ b/tools/legal-review/Database/joda-time.joda-time-2.8.1/copyright-keep @@ -0,0 +1,10 @@ +Copyright 2001-2005 Stephen Colebourne +Copyright 2001-2009 Stephen Colebourne +Copyright 2001-2006 Stephen Colebourne +Copyright 2001-2007 Stephen Colebourne +Copyright 2001-2010 Stephen Colebourne +Copyright 2001-2014 Stephen Colebourne +Copyright 2001-2012 Stephen Colebourne +Copyright 2001-2011 Stephen Colebourne +Copyright 2001-2013 Stephen Colebourne +Copyright 2001-2015 Stephen Colebourne diff --git a/tools/legal-review/Database/joda-time.joda-time-2.8.1/custom-license b/tools/legal-review/Database/joda-time.joda-time-2.8.1/custom-license new file mode 100644 index 000000000000..35252fda76e8 --- /dev/null +++ b/tools/legal-review/Database/joda-time.joda-time-2.8.1/custom-license @@ -0,0 +1 @@ +LICENSE.txt diff --git a/tools/legal-review/Database/joda-time.joda-time-2.8.1/files-ignore b/tools/legal-review/Database/joda-time.joda-time-2.8.1/files-ignore new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tools/legal-review/Database/joda-time.joda-time-2.8.1/files-keep b/tools/legal-review/Database/joda-time.joda-time-2.8.1/files-keep new file mode 100644 index 000000000000..6de1a981f47b --- /dev/null +++ b/tools/legal-review/Database/joda-time.joda-time-2.8.1/files-keep @@ -0,0 +1,2 @@ +META-INF/NOTICE.txt +META-INF/LICENSE.txt diff --git a/tools/legal-review/Database/org.apache.httpcomponents.httpclient-4.5.13/copyright-ignore b/tools/legal-review/Database/org.apache.httpcomponents.httpclient-4.5.13/copyright-ignore new file mode 100644 index 000000000000..dc34027f6f18 --- /dev/null +++ b/tools/legal-review/Database/org.apache.httpcomponents.httpclient-4.5.13/copyright-ignore @@ -0,0 +1 @@ +regarding copyright ownership. The ASF licenses this file diff --git a/tools/legal-review/Database/org.apache.httpcomponents.httpclient-4.5.13/copyright-keep b/tools/legal-review/Database/org.apache.httpcomponents.httpclient-4.5.13/copyright-keep new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tools/legal-review/Database/org.apache.httpcomponents.httpclient-4.5.13/files-ignore b/tools/legal-review/Database/org.apache.httpcomponents.httpclient-4.5.13/files-ignore new file mode 100644 index 000000000000..b9005a4d5ae7 --- /dev/null +++ b/tools/legal-review/Database/org.apache.httpcomponents.httpclient-4.5.13/files-ignore @@ -0,0 +1 @@ +META-INF/LICENSE diff --git a/tools/legal-review/Database/org.apache.httpcomponents.httpclient-4.5.13/files-keep b/tools/legal-review/Database/org.apache.httpcomponents.httpclient-4.5.13/files-keep new file mode 100644 index 000000000000..0d1c51375183 --- /dev/null +++ b/tools/legal-review/Database/org.apache.httpcomponents.httpclient-4.5.13/files-keep @@ -0,0 +1 @@ +META-INF/NOTICE diff --git a/tools/legal-review/Database/org.apache.httpcomponents.httpcore-4.4.13/copyright-ignore b/tools/legal-review/Database/org.apache.httpcomponents.httpcore-4.4.13/copyright-ignore new file mode 100644 index 000000000000..dc34027f6f18 --- /dev/null +++ b/tools/legal-review/Database/org.apache.httpcomponents.httpcore-4.4.13/copyright-ignore @@ -0,0 +1 @@ +regarding copyright ownership. The ASF licenses this file diff --git a/tools/legal-review/Database/org.apache.httpcomponents.httpcore-4.4.13/copyright-keep b/tools/legal-review/Database/org.apache.httpcomponents.httpcore-4.4.13/copyright-keep new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tools/legal-review/Database/org.apache.httpcomponents.httpcore-4.4.13/files-ignore b/tools/legal-review/Database/org.apache.httpcomponents.httpcore-4.4.13/files-ignore new file mode 100644 index 000000000000..b9005a4d5ae7 --- /dev/null +++ b/tools/legal-review/Database/org.apache.httpcomponents.httpcore-4.4.13/files-ignore @@ -0,0 +1 @@ +META-INF/LICENSE diff --git a/tools/legal-review/Database/org.apache.httpcomponents.httpcore-4.4.13/files-keep b/tools/legal-review/Database/org.apache.httpcomponents.httpcore-4.4.13/files-keep new file mode 100644 index 000000000000..0d1c51375183 --- /dev/null +++ b/tools/legal-review/Database/org.apache.httpcomponents.httpcore-4.4.13/files-keep @@ -0,0 +1 @@ +META-INF/NOTICE diff --git a/tools/legal-review/Database/report-state b/tools/legal-review/Database/report-state index 1524359a1912..080860cea188 100644 --- a/tools/legal-review/Database/report-state +++ b/tools/legal-review/Database/report-state @@ -1,3 +1,3 @@ -E18545F441294824622B58D5364EEDA40CBFC5334D5BC477F7762C47EE831A0A -7952852B9AEAAAAF4FA4E6FD2E375988899DFFAB55FBB97083F4ACE6B8CFB8DD +E4CED7F4157F4F74DE4F190880214B959C9B605D908F22F086186085AAA5BE77 +6037AB8ABA51C62164D1BC9104E6A8B97147E4501F776DFD5AFFEC63482B5C06 0 diff --git a/tools/legal-review/Database/reviewed-licenses/Apache_License__Version_2.0 b/tools/legal-review/Database/reviewed-licenses/Apache_License__Version_2.0 new file mode 100644 index 000000000000..ff46ef6ff419 --- /dev/null +++ b/tools/legal-review/Database/reviewed-licenses/Apache_License__Version_2.0 @@ -0,0 +1 @@ +tools/legal-review/license-texts/APACHE2.0 diff --git a/tools/legal-review/Database/reviewed-licenses/The_Apache_License__Version_2.0 b/tools/legal-review/Database/reviewed-licenses/The_Apache_License__Version_2.0 new file mode 100644 index 000000000000..ff46ef6ff419 --- /dev/null +++ b/tools/legal-review/Database/reviewed-licenses/The_Apache_License__Version_2.0 @@ -0,0 +1 @@ +tools/legal-review/license-texts/APACHE2.0 diff --git a/tools/legal-review/Database/reviewed-licenses/The_Apache_Software_License__Version_2.0 b/tools/legal-review/Database/reviewed-licenses/The_Apache_Software_License__Version_2.0 new file mode 100644 index 000000000000..ff46ef6ff419 --- /dev/null +++ b/tools/legal-review/Database/reviewed-licenses/The_Apache_Software_License__Version_2.0 @@ -0,0 +1 @@ +tools/legal-review/license-texts/APACHE2.0 diff --git a/tools/legal-review/Database/software.amazon.ion.ion-java-1.0.2/copyright-ignore b/tools/legal-review/Database/software.amazon.ion.ion-java-1.0.2/copyright-ignore new file mode 100644 index 000000000000..f106a9793ef0 --- /dev/null +++ b/tools/legal-review/Database/software.amazon.ion.ion-java-1.0.2/copyright-ignore @@ -0,0 +1 @@ +System.out.println("ion-java -- Copyright (c) 2007-" + info.getBuildTime().getYear() + " Amazon.com"); diff --git a/tools/legal-review/Database/software.amazon.ion.ion-java-1.0.2/copyright-keep b/tools/legal-review/Database/software.amazon.ion.ion-java-1.0.2/copyright-keep new file mode 100644 index 000000000000..bd2b173b837b --- /dev/null +++ b/tools/legal-review/Database/software.amazon.ion.ion-java-1.0.2/copyright-keep @@ -0,0 +1,14 @@ +Copyright 2016-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2015-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2013-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2014-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2009-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2008-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2007-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright (c) 2016 Amazon.com, Inc. All rights reserved. +Copyright (c) 2007 Amazon.com, Inc. All rights reserved. +Copyright (c) 2007-2013 Amazon.com, Inc. All rights reserved. +