Skip to content

Commit

Permalink
scaffold
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Diemand <[email protected]>
  • Loading branch information
CodiePP committed Jun 5, 2024
1 parent 80c160c commit bf166b3
Show file tree
Hide file tree
Showing 13 changed files with 105 additions and 2 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @codiepp @monoid-is-a-monad
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
# Cardano_Queries
querying the Cardano blockchain data in PostgreSQL
# Cardano Queries

## querying the Cardano blockchain data in PostgreSQL

The data is derived using [Db-sync](https://github.com/IntersectMBO/cardano-db-sync) from Cardano's main chain.


![BCA Queries Docker setup](docs/images/BCA%20Queries%20Docker%20images%20setup.png)


We provide you with a complete setup containing all credentials to connect to our high-availability PostgreSQL servers.

Prerequisites: you need to have [Docker](https://www.docker.com/products/docker-desktop/) installed.

Depending on your location you may choose to connect to either:

| location | sponsorship tier | link |
|----|----|----|
| Europe 🇪🇺 | $29 per month | [select EU servers](https://github.com/sponsors/Blockchain-Data-Analytics/sponsorships?pay_prorated=true&tier_id=406906) |
| North America 🇺🇸 | $28 per month | [select US servers](https://github.com/sponsors/Blockchain-Data-Analytics/sponsorships?pay_prorated=true&tier_id=406907) |

Payment of the selected sponsorship gives you the right to use the service for up to a month. Renewal of the sponsorship extends the service period. And, cancellation of your sponsorship will also terminate the service at the end of the paid period. Please understand that we cannot reimburse you.

We cannot provide you with a strict SLA. But, we promise to keep the services alive and fix technical problems asap. We have decent monitoring in place and will be able to react to service disruption.

See our [main page](https://github.com/Blockchain-Data-Analytics) for contact details.
29 changes: 29 additions & 0 deletions docs/00_main.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Cardano Queries

## Setup Cardano Queries on your machine

### Windows ![Windows](images/win.png)

[Windows setup](01_setup_win.md)

### macOS ![macOS](images/mac.png)

[macOS setup](02_setup_mac.md)

### Linux ![Linux](images/linux.png)

[Linux setup](03_setup_linux.md)

### on other operating systems

e.g. FreeBSD

[other setup](04_setup_other.md)

## Running queries in _pgAdmin_

[using pgAdmin](10_use_pgadmin.md)

## Sending queries directly to PostgreSQL

[PostgreSQL connection](20_direct_pg.md)
6 changes: 6 additions & 0 deletions docs/01_setup_win.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[bach to main](00_main.md)


# Windows setup

_TODO_
6 changes: 6 additions & 0 deletions docs/02_setup_mac.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[bach to main](00_main.md)


# Setup on macOS

_TODO_
6 changes: 6 additions & 0 deletions docs/03_setup_linux.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[bach to main](00_main.md)


# Linux setup

_TODO_
6 changes: 6 additions & 0 deletions docs/04_setup_other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[bach to main](00_main.md)


# Setup on other OS

_TODO_
8 changes: 8 additions & 0 deletions docs/10_use_pgadmin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[bach to main](00_main.md)


# Using _pgAdmin_

[pgAdmin](http://localhost:5480) is available locally at http://localhost:5480

_TODO_
17 changes: 17 additions & 0 deletions docs/20_direct_pg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[bach to main](00_main.md)


# Direct PostgreSQL connection

port: 5432
host: localhost
database: mainnet

It is possible to directly connect to PostgreSQL:

```sh
psql -h localhost -p 5432 -U user12345 mainnet
```
(replace "user12345" with your assigned user name; this command will ask for the password)

_TODO_
Binary file added docs/images/BCA Queries Docker images setup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/mac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/win.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bf166b3

Please sign in to comment.