Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Embed sqeleton into data-diff for synchronous changes & releases (wit…
Browse files Browse the repository at this point in the history
…hout the connection editor)
  • Loading branch information
nolar committed Apr 20, 2023
2 parents 7a5769d + c3688b2 commit efcb5b5
Show file tree
Hide file tree
Showing 52 changed files with 7,611 additions and 361 deletions.
52 changes: 52 additions & 0 deletions dev/presto-conf/standalone/combined.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN CERTIFICATE-----
MIIERDCCAyygAwIBAgIUBxO/CflDP+0yZAXt5FKm/WQ4538wDQYJKoZIhvcNAQEL
BQAwWTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDESMBAGA1UEAwwJbG9jYWxob3N0MB4X
DTIyMDgyNDA4NTI1N1oXDTMyMDgyMTA4NTI1N1owWTELMAkGA1UEBhMCQVUxEzAR
BgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5
IEx0ZDESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
MIIBCgKCAQEA3lNywkj/eGPGoFA3Lcx++98l17CRy+uzZMtJsr6lYAg1p/n1vPw0
BQXI5TSBJ6vM/axtwgwrfXQsjQ/GYJKQkb6eEBCc3xb+Rk5HNBiBBZsIjYm0U1zz
7dKnNwAznjx3j72s2ZQiqkoxcu7Bctw28ynbg0rjNkuUk3QESKuOgaTltpWKZiiu
XwWasREeH6MH7ROy8db6cz+MwGaig0mUvGPmD97bPRD/X683RyOiXzEaogl/rpGK
qZ3jRsmS8ZwawzKxx16kqPsX8/01EruGIoubMttr3YoZG044zq7nQqdAAz6wXx6V
mgzToCHI+/g+8JS/bgqJTyb2Y6aGXExiuQIDAQABo4IBAjCB/zAdBgNVHQ4EFgQU
5i1F8pTnwjF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nYR2Mm9mYJV9rkjkFIJgU3v
N4+tAoGABOlVGuRx2cSQ9QeC0AcqKlxXygdrzyadA7i0KNBZGGyrMSpJDrl2rrRn
ylzAgGjvfilwQzZuqTm6Vo2yvaX+TTGS44B+DnxCZvuviftea++sNMjuEkBLTCpF
xk2yOzsOnx652kWO4L+dVrDAxl65f3v0YaKWZI504LFYl18uS/E=
-----END RSA PRIVATE KEY-----
2 changes: 2 additions & 0 deletions dev/presto-conf/standalone/password-authenticator.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
password-authenticator.name=file
file.password-file=/opt/presto/etc/password.db
1 change: 1 addition & 0 deletions dev/presto-conf/standalone/password.db
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test:$2y$10$877iU3J5a26SPDjFSrrz2eFAq2DwMDsBAus92Dj0z5A5qNMNlnpHa
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False

autodoc_default_options = {
# 'special-members': '__init__',
'exclude-members': 'json,aslist,astuple,replace',
}

# -- Options for HTML output ----------------------------------------------

Expand Down Expand Up @@ -153,7 +157,7 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, "Datadiff.tex", "Datadiff Documentation", "Erez Shinan", "manual"),
(master_doc, "Datadiff.tex", "Datadiff Documentation", author, "manual"),
]


Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

python-api
python_examples
sqeleton/index

data-diff
---------
Expand All @@ -19,7 +20,6 @@ Resources
---------

- Source code (git): `<https://github.com/datafold/data-diff>`_
- :doc:`python-api`
- The rest of the `documentation`_

.. _documentation: https://docs.datafold.com/guides/os_data_diff
.. _documentation: https://docs.datafold.com/guides/os_data_diff
31 changes: 31 additions & 0 deletions docs/sqeleton/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.. toctree::
:maxdepth: 2
:caption: API Reference
:hidden:

sqeleton/install
sqeleton/intro
sqeleton/supported-databases
sqeleton/python-api

Sqeleton
---------

**Sqeleton** is a Python library for querying SQL databases.

It consists of -

- A fast and concise query builder, inspired by PyPika and SQLAlchemy

- A modular database interface, with drivers for a long list of SQL databases.

It is comparable to other libraries such as SQLAlchemy or PyPika, in terms of API and intended audience. However there are several notable ways in which it is different.

For more information, `See our README <https://github.com/datafold/sqeleton#readme>`_


Resources
---------

- Source code (git): `<https://github.com/datafold/sqeleton>`_

48 changes: 48 additions & 0 deletions docs/sqeleton/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Install / Get started

Sqeleton can be installed using pip:

```
pip install sqeleton
```

## Database drivers

To ensure that the database drivers are compatible with sqeleton, we recommend installing them along with sqeleton, using pip's `[]` syntax:

- `pip install 'sqeleton[mysql]'`

- `pip install 'sqeleton[postgresql]'`

- `pip install 'sqeleton[snowflake]'`

- `pip install 'sqeleton[presto]'`

- `pip install 'sqeleton[oracle]'`

- `pip install 'sqeleton[trino]'`

- `pip install 'sqeleton[clickhouse]'`

- `pip install 'sqeleton[vertica]'`

- For BigQuery, see: https://pypi.org/project/google-cloud-bigquery/

_Some drivers have dependencies that cannot be installed using `pip` and still need to be installed manually._


It is also possible to install several databases at once. For example:

```bash
pip install 'sqeleton[mysql, postgresql]'
```

Note: Some shells use `"` for escaping instead, like:

```bash
pip install "sqeleton[mysql, postgresql]"
```

## What's next?

Read the [introduction](intro.md) and start coding!
Loading

0 comments on commit efcb5b5

Please sign in to comment.