<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-use-sqlite-as-a-nosql-store-vxzhdzank" -->

---
title: How to use SQLite as a NoSQL Store | daily.dev
description: This post explains how to use SQLite as a NoSQL store, including storing JSON documents, saving and reading documents, querying documents for a given...
canonical: https://daily.dev/posts/how-to-use-sqlite-as-a-nosql-store-vxzhdzank
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to use SQLite as a NoSQL Store | daily.dev
og:description: This post explains how to use SQLite as a NoSQL store, including storing JSON documents, saving and reading documents, querying documents for a given...
og:url: https://daily.dev/posts/how-to-use-sqlite-as-a-nosql-store-vxzhdzank
og:image: https://api.daily.dev/og/posts/vXZHDzAnK.png
og:image:alt: How to use SQLite as a NoSQL Store
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to use SQLite as a NoSQL Store

**[Hacker News](https://daily.dev/sources/hn)** · 2 min read · 9 upvotes · 0 comments

## Summary

This post explains how to use SQLite as a NoSQL store, including storing JSON documents, saving and reading documents, querying documents for a given collection, and deleting expired documents.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://rodydavis.com/sqlite/nosql>

---

Tags: [#database](https://daily.dev/tags/database), [#nosql](https://daily.dev/tags/nosql), [#sqlite](https://daily.dev/tags/sqlite)

[View this post on daily.dev](https://daily.dev/posts/how-to-use-sqlite-as-a-nosql-store-vxzhdzank)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to use SQLite as a NoSQL Store","url":"https://daily.dev/posts/how-to-use-sqlite-as-a-nosql-store-vxzhdzank","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-use-sqlite-as-a-nosql-store-vxzhdzank"},"datePublished":"2024-05-02T04:24:18.750Z","dateModified":"2024-05-09T08:39:06.345Z","description":"This post explains how to use SQLite as a NoSQL store, including storing JSON documents, saving and reading documents, querying documents for a given...","image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","thumbnailUrl":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-use-sqlite-as-a-nosql-store-vxzhdzank","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":9},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"database,nosql,sqlite","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"How to use SQLite as a NoSQL Store"}]}
```

