Skip to content

Commit 8a56bf3

Browse files
committed
Refactor dbsync queries
1 parent e917de5 commit 8a56bf3

12 files changed

Lines changed: 43 additions & 20 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CodeBlock from '@theme/CodeBlock';
21
import sql from '!!raw-loader!@site/static/sql/addressbalance.sql';
2+
import {DbSyncSql} from '@site/src/components/Common.js';
33

44
# AddressBalance
55

6-
<CodeBlock className='language-sql'>{sql}</CodeBlock>
6+
<DbSyncSql sql={sql} />
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CodeBlock from '@theme/CodeBlock';
21
import sql from '!!raw-loader!@site/static/sql/addressdatum.sql';
2+
import {DbSyncSql} from '@site/src/components/Common.js';
33

44
# AddressDatum
55

6-
<CodeBlock className='language-sql'>{sql}</CodeBlock>
6+
<DbSyncSql sql={sql} />
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CodeBlock from '@theme/CodeBlock';
21
import sql from '!!raw-loader!@site/static/sql/blockbasics.sql';
2+
import {DbSyncSql} from '@site/src/components/Common.js';
33

44
# BlockBasics
55

6-
<CodeBlock className='language-sql'>{sql}</CodeBlock>
6+
<DbSyncSql sql={sql} />

website/docs/indexers/Datum.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CodeBlock from '@theme/CodeBlock';
21
import sql from '!!raw-loader!@site/static/sql/datum.sql';
2+
import {DbSyncSql} from '@site/src/components/Common.js';
33

44
# Datum
55

6-
<CodeBlock className='language-sql'>{sql}</CodeBlock>
6+
<DbSyncSql sql={sql} />

website/docs/indexers/Deposit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CodeBlock from '@theme/CodeBlock';
21
import sql from '!!raw-loader!@site/static/sql/deposit.sql';
2+
import {DbSyncSql} from '@site/src/components/Common.js';
33

44
# Deposit
55

6-
<CodeBlock className='language-sql'>{sql}</CodeBlock>
6+
<DbSyncSql sql={sql} />
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CodeBlock from '@theme/CodeBlock';
21
import sql from '!!raw-loader!@site/static/sql/epochnonce.sql';
2+
import {DbSyncSql} from '@site/src/components/Common.js';
33

44
# EpochNonce
55

6-
<CodeBlock className='language-sql'>{sql}</CodeBlock>
6+
<DbSyncSql sql={sql} />
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CodeBlock from '@theme/CodeBlock';
21
import sql from '!!raw-loader!@site/static/sql/epochstakepoolsize.sql';
2+
import {DbSyncSql} from '@site/src/components/Common.js';
33

44
# EpochStakepoolSize
55

6-
<CodeBlock className='language-sql'>{sql}</CodeBlock>
6+
<DbSyncSql sql={sql} />

website/docs/indexers/Mamba.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1+
import {DbSyncSql} from '@site/src/components/Common.js';
2+
13
# Mamba
4+
5+
<DbSyncSql>
6+
7+
Mamba is a composite indexer based on the following indexers:
8+
- Utxo
9+
- EpochNonce
10+
- EpochStakepoolSize
11+
- MintBurn
12+
- Datum
13+
14+
See each of them for their equivalent Cardano DB Sync SQL query.
15+
16+
</DbSyncSql>

website/docs/indexers/MintBurn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CodeBlock from '@theme/CodeBlock';
21
import sql from '!!raw-loader!@site/static/sql/mintburn.sql';
2+
import {DbSyncSql} from '@site/src/components/Common.js';
33

44
# MintBurn
55

6-
<CodeBlock className='language-sql'>{sql}</CodeBlock>
6+
<DbSyncSql sql={sql} />

website/docs/indexers/NoOp.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
import {DbSyncSql} from '@site/src/components/Common.js';
2+
13
# NoOp
4+
5+
<DbSyncSql>
6+
7+
NoOp indexer doesn't store anything.
8+
9+
</DbSyncSql>

0 commit comments

Comments
 (0)