├── .github └── workflows │ └── build.yml ├── .gitignore ├── .pre-commit-config.yaml ├── .readthedocs.yaml ├── .vscode └── settings.json ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── docs ├── Makefile ├── _static │ ├── favicon.ico │ ├── mara-animal.jpg │ └── schema-visualization.png ├── api.rst ├── changes.md ├── cli.rst ├── conf.py ├── config.rst ├── databases-overview.md ├── dbs │ ├── BigQuery.rst │ ├── Databricks.rst │ ├── Mysql.rst │ ├── Oracle.rst │ ├── PostgreSQL.rst │ ├── Redshift.rst │ ├── SQLServer.rst │ ├── SQLite.rst │ └── Snowflake.rst ├── index.rst ├── installation.md ├── license.rst └── requirements.txt ├── mara_db ├── __init__.py ├── auto_migration.py ├── bigquery.py ├── cli.py ├── config.py ├── databricks.py ├── dbs.py ├── formats.py ├── mysql.py ├── postgresql.py ├── shell.py ├── sqlalchemy_engine.py ├── sqlserver.py ├── static │ └── schema-page.js └── views.py ├── pyproject.toml ├── setup.cfg ├── setup.py └── tests ├── __init__.py ├── command_helper.py ├── db_test_helper.py ├── docker-compose.yml ├── local_config.py.example ├── mssql ├── README.md ├── __init__.py ├── test_mssql.py ├── test_mssql_config.py ├── test_mssql_ddl.sql └── test_mssql_sqsh.py_ ├── postgres ├── __init__.py ├── test_postgres.py └── test_postgres_ddl.sql ├── seed ├── README.md ├── accounts_crlf.jsonl ├── accounts_crlf_lastrow.jsonl ├── accounts_lf.jsonl ├── accounts_lf_lastrow.jsonl ├── names_crlf.csv ├── names_crlf_header.csv ├── names_crlf_lastrow.csv ├── names_crlf_lastrow_header.csv ├── names_crlf_quoted.csv ├── names_crlf_quoted_header.csv ├── names_crlf_quoted_lastrow.csv ├── names_crlf_quoted_lastrow_header.csv ├── names_lf.csv ├── names_lf_header.csv ├── names_lf_lastrow.csv ├── names_lf_lastrow_header.csv ├── names_lf_quoted.csv ├── names_lf_quoted_header.csv ├── names_lf_quoted_lastrow.csv └── names_lf_quoted_lastrow_header.csv ├── test1.py ├── test_databricks.py └── test_snowflake.py /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.readthedocs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/.readthedocs.yaml -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/README.md -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/_static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/_static/favicon.ico -------------------------------------------------------------------------------- /docs/_static/mara-animal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/_static/mara-animal.jpg -------------------------------------------------------------------------------- /docs/_static/schema-visualization.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/_static/schema-visualization.png -------------------------------------------------------------------------------- /docs/api.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/api.rst -------------------------------------------------------------------------------- /docs/changes.md: -------------------------------------------------------------------------------- 1 | ```{include} ../CHANGELOG.md 2 | ``` 3 | -------------------------------------------------------------------------------- /docs/cli.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/cli.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/config.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/config.rst -------------------------------------------------------------------------------- /docs/databases-overview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/databases-overview.md -------------------------------------------------------------------------------- /docs/dbs/BigQuery.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/dbs/BigQuery.rst -------------------------------------------------------------------------------- /docs/dbs/Databricks.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/dbs/Databricks.rst -------------------------------------------------------------------------------- /docs/dbs/Mysql.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/dbs/Mysql.rst -------------------------------------------------------------------------------- /docs/dbs/Oracle.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/dbs/Oracle.rst -------------------------------------------------------------------------------- /docs/dbs/PostgreSQL.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/dbs/PostgreSQL.rst -------------------------------------------------------------------------------- /docs/dbs/Redshift.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/dbs/Redshift.rst -------------------------------------------------------------------------------- /docs/dbs/SQLServer.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/dbs/SQLServer.rst -------------------------------------------------------------------------------- /docs/dbs/SQLite.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/dbs/SQLite.rst -------------------------------------------------------------------------------- /docs/dbs/Snowflake.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/dbs/Snowflake.rst -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/installation.md -------------------------------------------------------------------------------- /docs/license.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/license.rst -------------------------------------------------------------------------------- /docs/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/docs/requirements.txt -------------------------------------------------------------------------------- /mara_db/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/__init__.py -------------------------------------------------------------------------------- /mara_db/auto_migration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/auto_migration.py -------------------------------------------------------------------------------- /mara_db/bigquery.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/bigquery.py -------------------------------------------------------------------------------- /mara_db/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/cli.py -------------------------------------------------------------------------------- /mara_db/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/config.py -------------------------------------------------------------------------------- /mara_db/databricks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/databricks.py -------------------------------------------------------------------------------- /mara_db/dbs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/dbs.py -------------------------------------------------------------------------------- /mara_db/formats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/formats.py -------------------------------------------------------------------------------- /mara_db/mysql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/mysql.py -------------------------------------------------------------------------------- /mara_db/postgresql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/postgresql.py -------------------------------------------------------------------------------- /mara_db/shell.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/shell.py -------------------------------------------------------------------------------- /mara_db/sqlalchemy_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/sqlalchemy_engine.py -------------------------------------------------------------------------------- /mara_db/sqlserver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/sqlserver.py -------------------------------------------------------------------------------- /mara_db/static/schema-page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/static/schema-page.js -------------------------------------------------------------------------------- /mara_db/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/mara_db/views.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/pyproject.toml -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/setup.cfg -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/setup.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/command_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/command_helper.py -------------------------------------------------------------------------------- /tests/db_test_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/db_test_helper.py -------------------------------------------------------------------------------- /tests/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/docker-compose.yml -------------------------------------------------------------------------------- /tests/local_config.py.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/local_config.py.example -------------------------------------------------------------------------------- /tests/mssql/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/mssql/README.md -------------------------------------------------------------------------------- /tests/mssql/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/mssql/test_mssql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/mssql/test_mssql.py -------------------------------------------------------------------------------- /tests/mssql/test_mssql_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/mssql/test_mssql_config.py -------------------------------------------------------------------------------- /tests/mssql/test_mssql_ddl.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/mssql/test_mssql_ddl.sql -------------------------------------------------------------------------------- /tests/mssql/test_mssql_sqsh.py_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/mssql/test_mssql_sqsh.py_ -------------------------------------------------------------------------------- /tests/postgres/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/postgres/test_postgres.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/postgres/test_postgres.py -------------------------------------------------------------------------------- /tests/postgres/test_postgres_ddl.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/postgres/test_postgres_ddl.sql -------------------------------------------------------------------------------- /tests/seed/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/README.md -------------------------------------------------------------------------------- /tests/seed/accounts_crlf.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/accounts_crlf.jsonl -------------------------------------------------------------------------------- /tests/seed/accounts_crlf_lastrow.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/accounts_crlf_lastrow.jsonl -------------------------------------------------------------------------------- /tests/seed/accounts_lf.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/accounts_lf.jsonl -------------------------------------------------------------------------------- /tests/seed/accounts_lf_lastrow.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/accounts_lf_lastrow.jsonl -------------------------------------------------------------------------------- /tests/seed/names_crlf.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_crlf.csv -------------------------------------------------------------------------------- /tests/seed/names_crlf_header.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_crlf_header.csv -------------------------------------------------------------------------------- /tests/seed/names_crlf_lastrow.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_crlf_lastrow.csv -------------------------------------------------------------------------------- /tests/seed/names_crlf_lastrow_header.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_crlf_lastrow_header.csv -------------------------------------------------------------------------------- /tests/seed/names_crlf_quoted.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_crlf_quoted.csv -------------------------------------------------------------------------------- /tests/seed/names_crlf_quoted_header.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_crlf_quoted_header.csv -------------------------------------------------------------------------------- /tests/seed/names_crlf_quoted_lastrow.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_crlf_quoted_lastrow.csv -------------------------------------------------------------------------------- /tests/seed/names_crlf_quoted_lastrow_header.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_crlf_quoted_lastrow_header.csv -------------------------------------------------------------------------------- /tests/seed/names_lf.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_lf.csv -------------------------------------------------------------------------------- /tests/seed/names_lf_header.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_lf_header.csv -------------------------------------------------------------------------------- /tests/seed/names_lf_lastrow.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_lf_lastrow.csv -------------------------------------------------------------------------------- /tests/seed/names_lf_lastrow_header.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_lf_lastrow_header.csv -------------------------------------------------------------------------------- /tests/seed/names_lf_quoted.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_lf_quoted.csv -------------------------------------------------------------------------------- /tests/seed/names_lf_quoted_header.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_lf_quoted_header.csv -------------------------------------------------------------------------------- /tests/seed/names_lf_quoted_lastrow.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_lf_quoted_lastrow.csv -------------------------------------------------------------------------------- /tests/seed/names_lf_quoted_lastrow_header.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/seed/names_lf_quoted_lastrow_header.csv -------------------------------------------------------------------------------- /tests/test1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/test1.py -------------------------------------------------------------------------------- /tests/test_databricks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/test_databricks.py -------------------------------------------------------------------------------- /tests/test_snowflake.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mara/mara-db/HEAD/tests/test_snowflake.py --------------------------------------------------------------------------------