-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preliminary version for extraction tools for other databases
Former-commit-id: 67f19120e14c1a4d79e37247ef356d2a207a15a7
- Loading branch information
1 parent
6ef7736
commit 3717c51
Showing
24 changed files
with
616 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# baseline files need to retain crlf for cross plat | ||
*.txt text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# IPython Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# dotenv | ||
.env | ||
|
||
# virtualenv | ||
venv/ | ||
ENV/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# DS Store | ||
.DS_Store | ||
|
||
# sqltoolsservice binaries | ||
/mssqlscripter/sqltoolsservice/* | ||
/mssqlscripter/mssqltoolsservice/bin/* | ||
|
||
|
||
# VSCode configuration | ||
.vscode/* | ||
|
||
# Visual Studio User-specific files | ||
*.suo | ||
*.user | ||
*.userosscache | ||
*.sln.docstates | ||
|
||
# MonoDevelop/Xamarin Studio User-specific files | ||
*.userprefs | ||
|
||
# Visual Studio Build results | ||
[Dd]ebug/ | ||
[Dd]ebugPublic/ | ||
[Rr]elease/ | ||
[Rr]eleases/ | ||
x64/ | ||
x86/ | ||
bld/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
[Ll]og/ | ||
|
||
# Visual Studio 2015 cache/options directory | ||
.vs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Mobilize.NET Teradata DDL Exporter | ||
|
||
Copyright (c) Mobilize.NET | ||
All rights reserved. | ||
|
||
MIT License | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include oraexport/bin/* | ||
include oraexport/scripts/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
sc-ora-exporter | ||
================ | ||
We’re excited to introduce sc-ora-exporter, a simple tool to help exporting your Oracle Code | ||
so it can be migrated to Snowflake. | ||
|
||
|
||
Installation | ||
------------ | ||
|
||
.. code:: bash | ||
$ pip install snowconvert-oracle-exporter | ||
Please refer to the `installation guide`_ for detailed install instructions. | ||
|
||
Usage | ||
----- | ||
|
||
Please refer to the `usage guide`_ for details on options and example usage. | ||
|
||
For general help content, pass in the ``-h`` parameter: | ||
|
||
.. code:: bash | ||
$ sc-oracle-exporter -h | ||
Reporting issues and feedback | ||
----------------------------- | ||
|
||
If you encounter any bugs with the tool please file an issue in the | ||
`Issues`_ section of our GitHub repo. | ||
|
||
License | ||
------- | ||
|
||
sc-oracle-exporter is licensed under the `MIT license`_. | ||
|
||
.. _installation guide: https://github.com/MobilizeNet/SnowConvertDDLExportScripts/blob/main/Oracle/doc/installation_guide.md | ||
.. _usage guide: https://github.com/MobilizeNet/SnowConvertDDLExportScripts/blob/main/Oracle/doc/usage_guide.md | ||
.. _Issues: https://github.com/MobilizeNet/SnowConvertDDLExportScripts/issues | ||
.. _MIT license: https://github.com/MobilizeNet/SnowConvertDDLExportScripts/blob/main/Oracle/LICENSE.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# -------------------------------------------------------------------------------------------- | ||
# Copyright (c) Mobilize.NET All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# -------------------------------------------------------------------------------------------- | ||
|
||
|
||
__version__ = '1.0.0a0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import teraexport | ||
import argparse | ||
import sys | ||
import os | ||
import stat | ||
from builtins import FileExistsError | ||
|
||
args = sys.argv[1:] | ||
parser = argparse.ArgumentParser( | ||
prog=u'sc-oracle-export', | ||
description=u'Mobilize.NET Oracle Code Export Tools' + | ||
'Version {}'.format(teraexport.__version__)) | ||
|
||
parser.add_argument( | ||
u'-S', u'--server', | ||
dest=u'Server', | ||
required=True, | ||
metavar=u'', | ||
help=u'Server address. For example: 127.0.0.1') | ||
|
||
parser.add_argument( | ||
u'-U', u'--user', | ||
dest=u'UserId', | ||
metavar=u'', | ||
required=True, | ||
help=u'Login ID for server. Usually it will be the DBC user') | ||
|
||
parser.add_argument( | ||
u'-P', u'--password', | ||
dest=u'Password', | ||
required=True, | ||
metavar=u'', | ||
help=u'The password for the given user.') | ||
|
||
parameters = parser.parse_args(args) | ||
|
||
// TODO in progress |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel" | ||
] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
enum34 >= 1.1.6 | ||
future >= 0.16.0 | ||
setuptools >= 36.0.1 | ||
wheel >= 0.29.0 | ||
coverage >= 4.3.4 | ||
twine >= 1.8.1 | ||
flake8 >= 3.3.0 | ||
pytest >= 3.0.7 | ||
pytest-cov >= 2.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
SOURCE="${BASH_SOURCE[0]}" | ||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | ||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | ||
SOURCE="$(readlink "$SOURCE")" | ||
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | ||
done | ||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | ||
|
||
# Set the python io encoding to UTF-8 by default if not set. | ||
if [ -z ${PYTHONIOENCODING+x} ]; then export PYTHONIOENCODING=utf8; fi | ||
|
||
export PYTHONPATH="${DIR}:${PYTHONPATH}" | ||
python -m oraexport "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[bdist_wheel] | ||
universal =1 | ||
|
||
[metadata] | ||
name = snowconvert-export-oracle | ||
version = 0.0.1a0 | ||
author = Mauricio Rojas | ||
author_email = [email protected] | ||
description = Mobilize.Net Oracle Export Tool for SnowConvert | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
license_file = LICENSE.txt | ||
|
||
python_requires='>=2.6, >=3' | ||
|
||
url = https://github.com/mobilize/SnowConvertDDLExportScripts/Oracle | ||
project_urls = | ||
Bug Tracker = https://github.com/MobilizeNet/SnowConvertDDLExportScripts/issues | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
Intended Audience :: Developers | ||
Intended Audience :: System Administrators | ||
Programming Language :: Python | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 2.7 | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.4 | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
License :: OSI Approved :: MIT License | ||
|
||
[options] | ||
include_package_data=True | ||
scripts= | ||
sc-oracle-export | ||
sc-oracle-split-ddl | ||
packages = | ||
oraexport | ||
split | ||
|
||
[flake8] | ||
ignore = | ||
# E501: line too long. | ||
E501, | ||
# F401, imported but unused, ignore where we import setup. | ||
F401, | ||
# E402 module level import not at top of file. | ||
# To maintain py2 - 3 compat certain orders of import is necessary. | ||
E402 | ||
|
||
# Explicitly specifying what files/directories we check | ||
# in case user creates a virtual environment in repo, | ||
# forgoing the need for them to modify this file to ignore their venv directory. | ||
filename = | ||
./oraexport/*.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# baseline files need to retain crlf for cross plat | ||
*.txt text eol=crlf |
Oops, something went wrong.