diff --git a/docs/v2/getting-started/installation/index.mdx b/docs/v2/getting-started/installation/index.mdx index 8a762fd..12acda0 100644 --- a/docs/v2/getting-started/installation/index.mdx +++ b/docs/v2/getting-started/installation/index.mdx @@ -450,14 +450,14 @@ strk-staking | log Event 123 tx=0x01078c3bb0f339eeaf303bc5c47ea03b781841f7b4628f ::: -## Storing data +## Storing data & persisting state across restarts -TODO +All indexers implemented in this tutorial are stateless. They don't store any +data to a database and if you restart them they will restart indexing from the +beginning. -## Persisting state across restarts +You can refer to our storage section to learn more about writing data to a database +and persisting the indexer's state across restarts. -TODO + - [Drizzle with PostgreSQL](/docs/v2/storage/drizzle-pg) -## Plugins - -TODO diff --git a/docs/v2/sidebar.json b/docs/v2/sidebar.json index d5afbef..31ca83b 100644 --- a/docs/v2/sidebar.json +++ b/docs/v2/sidebar.json @@ -16,6 +16,17 @@ } ] }, + { + "name": "Storage", + "path": "/storage", + "items": [ + { + "name": "Drizzle", + "type": "group", + "path": "/drizzle-pg" + } + ] + }, { "name": "Networks", "path": "/networks", @@ -64,4 +75,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/docs/v2/storage/drizzle-pg/index.mdx b/docs/v2/storage/drizzle-pg/index.mdx new file mode 100644 index 0000000..076c76a --- /dev/null +++ b/docs/v2/storage/drizzle-pg/index.mdx @@ -0,0 +1,10 @@ +--- +title: Drizzle with PostgreSQL +description: "Store your indexer's data to PostgreSQL using Drizzle ORM." +diataxis: reference +updatedAt: 2024-12-03 +--- + +# Drizzle with PostgreSQL + +TODO diff --git a/docs/v2/storage/drizzle-pg/sidebar.json b/docs/v2/storage/drizzle-pg/sidebar.json new file mode 100644 index 0000000..0c916af --- /dev/null +++ b/docs/v2/storage/drizzle-pg/sidebar.json @@ -0,0 +1,10 @@ +{ + "items": [ + { + "name": "Overview", + "type": "page", + "path": "/" + } + ] +} +