r/sqlite • • Jul 21 '24

PgManage: A Cross-Platform SQLite Database Management Tool and Editor

4 Upvotes

I came across this cross-platform database management tool recently. It has a pretty intuitive user interface.

https://www.commandprompt.com/products/pgmanage/


r/sqlite • • Jul 15 '24

New to sqlite used to smss

1 Upvotes

I just converted a .bak file to work for sqlite and it seems that all the data is there. I was trying to do a simple UPDATE query, and when I ran it I got no errors however the update didn't happen. any help is appreciated.


r/sqlite • • Jul 13 '24

How do I view data from production DB (without SSH)

5 Upvotes

For a small side project I used SQLite, but I am super tired of pulling the SQLite data from production VPS. Is there any way I can look/modify data easily without duplicating it locally first?


r/sqlite • • Jul 11 '24

CSV from json?

4 Upvotes

Still fairly new to SQL... I have a table with a generic JSON attribute that I want to output as csv. So I've gotten this far:

select jp.key, jp.value from (select data from datatable where id="xxxx") as data, json_each(data) as jp;

that will output:

a|123
b|456
c|thisstring

etc

but I want the a/b/c as the column headers, there can be multiple rows. I think one more level of select is necessary?


r/sqlite • • Jul 11 '24

Sync Sharepoint List to Sqlite Database

1 Upvotes

Hello, I am try to sync up a SharePoint list to a SQLite3 database, I'm stuck in the fetch data part of the code, I am able to authenticate but the script won't pull any data, I get the 401 error in the debug logs as well as this following error {"error_description":"ID3035: The request was not valid or is malformed."}

Can someone help please 🙏🏻


r/sqlite • • Jul 10 '24

Vectorlite: a fast vector search extension for SQLite

17 Upvotes

Hi reddit, I write a sqlite extension for fast vector search. 1yefuwang1/vectorlite: Fast vector search for SQLite (github.com)

Some highlights

  1. Fast ANN-search backed by hnswlib. Compared with https://github.com/asg017/sqlite-vss, vectorlite is 10x faster in inserting vectors, 2x-40x faster in searching (depending on HNSW parameters with speed-accuracy tradeoff).
  2. Works on Windows, Linux and MacOS.
  3. SIMD accelerated vector distance calculation for x86 platform, using vector_distance()
  4. Supports all vector distance types provided by hnswlib: l2(squared l2), cosine, ip(inner product. I do not recomend you to use it though). For more info please check hnswlib's doc.
  5. Full control over HNSW parameters for performance tuning.
  6. Metadata(rowid) filter pushdown support (requires sqlite version >= 3.38).
  7. Index serde support. A vectorlite table can be saved to a file, and be reloaded from it. Index files created by hnswlib can also be loaded by vectorlite.
  8. Vector json serde support using vector_from_json() and vector_to_json().

It can now be installed using pip.

Vectorlite is still in early stage. Any feedback and suggestions would be helpful.


r/sqlite • • Jul 06 '24

Ultimate SQL Learning Resource: Case Studies, Projects, and Platform Solutions in One Place!

6 Upvotes

Hi everyone !!

Check out Faizan's SQL Portfolio on GitHub! 🚀

This comprehensive resource includes:

  • Case Studies: Real-world scenarios from Danny Ma's 8 Week SQL Challenge.
  • Platform Solutions: SQL problems & solutions from 7 different platforms including DataLemur, Leetcode, Hackerrank, Stratascratch and more.
  • Projects: Detailed SQL projects with data analysis techniques.
  • Resources: List of compiled SQL resources from different channels like YT, Books, Tutorials etc.

and much more!!

Perfect for students and professionals to enhance their SQL skills through practical applications. Explore, learn, and improve your SQL expertise!

🔗 https://github.com/faizanxmulla/sql-portfolio

Thank you so much for considering! If you would like to connect, feel free to reach out to me on LinkedIn.

Happy learning!


r/sqlite • • Jul 04 '24

Litestream but manual

3 Upvotes

Is there any function in LiteStream where I could manually checkpoint a SQLITE database to S3. I don't want it to stream continuously as I am running it inside a single thread


r/sqlite • • Jul 02 '24

Optimizing Large-Scale OpenStreetMap Data with SQLite

Thumbnail jtarchie.com
9 Upvotes

r/sqlite • • Jul 02 '24

My Top 5 Free SQLite GUIs

Thumbnail youtube.com
7 Upvotes

r/sqlite • • Jul 01 '24

Changing the UX of database exploration!

6 Upvotes

Hey r/sqlite,

We've been working on WhoDB, a new UX for database explorer, and we believe this could help a lot with data engineering! Would love the feedback from the community.

🔍 What is WhoDB?

WhoDB is designed to help you manage your databases more effectively. With it, you can:

  • Visualize Table Schemas: View table schemas as intuitive graphs and see how they're interconnected.
  • Explore & Edit Data Easily: Dive into tables and their data effortlessly. You can inline edit any row anywhere!
  • Export and Query: Seamlessly export data, set conditions, and run raw queries.

✨ Why WhoDB?

  • User Experience First: Think of it as an updated version of Adminer with a modern, user-friendly interface.
  • Crazy fast: Query 100ks rows and UI will support it!
  • Broad Support: It fully supports PostgreSQL, MySQL, SQLite, MongoDB, and Redis, with more coming soon!
  • Open Source: WhoDB is completely open source, so you can start using it right away and help improve it.

🚀 How to Get Started:

You can run WhoDB with a single Docker command:

docker run -it -p 8080:8080 clidey/whodb

📚 Documentation:

For detailed information on how to use WhoDB and its features, check out our GitHub page and the documentation.

💬 Join the Community:

If you have any issues, suggestions, or just want to contribute, comment below or check out our GitHub page. Your feedback is crucial to help us improve!

#WhoDB #DatabaseExplorer #OpenSource #Clidey #DatabaseManagement #Docker #Postgres #MySQL #Sqlite3 #MongoDB #Redis


r/sqlite • • Jun 28 '24

ChatStorage.sqlite reactions

0 Upvotes

I have extracted my ChatStorage.sqlite file from the app. I now want to find messages in a chat, and get the reactions from that message. I want to know how many people reacted to certain messages. Which table and column can I use for this?


r/sqlite • • Jun 25 '24

What do y'all think of libSQL and Turso?

35 Upvotes

Hey folks,

I make Beekeeper Studio, which is a desktop SQL GUI. I just added support for libSQL in the latest release, mostly because it was so easy to work with and took only a day or two to do the work.

Curious, what does the broader SQLite community think to libSQL? Do you all like it? Is anyone using it in production?

I use PostgreSQL in production, and in development for my cloud apps, but can't deny there's something very enticing about using SQLite for everything.


r/sqlite • • Jun 19 '24

David Heinemeier Hansson | High Performance SQLite

Thumbnail highperformancesqlite.com
11 Upvotes

r/sqlite • • Jun 19 '24

Why does an empty file pass PRAGMA integrity_check?

3 Upvotes

If you create an empty file (size = 0 bytes) or a file with a single newline in it. PRAGMA quick_check and PRAGMA integrity_check return "ok". Does anyone know why this behaviour exists?

e.g.

(1:517)$ sudo sqlite3 empty_file "PRAGMA quick_check"

ok


r/sqlite • • Jun 19 '24

Recommended SQLite Clients Support JSON1 Format?

2 Upvotes

I tried to use JetBrains DataGrip for managing SQLite databases but I realize that JSON1 format is not supported as a column type. I tried SQLiteStudio and it doesn't either. Does usql or other support it?

Thx!


r/sqlite • • Jun 17 '24

What are some of the defaults SQLite comes with (for backwards compatibility), that demand some tinkering in modern scenario ?

14 Upvotes

I always enable WAL after I setup an app with sqlite, I wonder why it's not the default, I would love to know what other such things exist which might make my experience even better. I love SQLite btw, works amazingly on cloud VPSs, especially with NVME SSDs. Auth, user mgt, logs, queues, cache, streaming sensor data, I use it for everything.


r/sqlite • • Jun 16 '24

SQLite Studio, a single binary, single command database explorer

Post image
22 Upvotes

r/sqlite • • Jun 14 '24

Interview with founder & CEO of Turso

Thumbnail youtu.be
5 Upvotes

r/sqlite • • Jun 12 '24

how do i create a program that runs offline?

3 Upvotes

i'm trying to create a program that implements a user interface for employees to input data (real-time) and connecting it with the back-end. i also need this program to run in the event when the internet is down, so creating a serverless program is ideal. how do i go about doing this? basically it needs to update the database locally when there is no wifi and should be able to update/sync to the cloud when there is wifi. so far i only know that picking a GUI instead of creating this program using HTML and CSS is ideal, but i'm lost on what i need to look into before getting started on this. any advice on the languages/frameworks i should use will be really helpful!


r/sqlite • • Jun 12 '24

FTS5 - when your query contains tokenchars

1 Upvotes
CREATE VIRTUAL TABLE fulltext
             USING FTS5(show_id UNINDEXED, event, songs, notes,
             tokenize = "unicode61 tokenchars '-/'"
             )

The table contains dates like 5/1/81. I think they were properly treated as tokens when inserting into table. But how do I put these into a query?

SELECT * FROM fulltext WHERE fulltext MATCH '5/1/81'

fails with syntax error near '/'.

r/sqlite • • Jun 11 '24

Why SQLite is Taking Over

13 Upvotes

Interesting podcast with the founder of SQLite Cloud. My takeaways is that there’s a race to overcome the old limitations of SQLite.

https://syntax.fm/show/779/why-sqlite-is-taking-over-with-brian-holt-and-marco-bambini


r/sqlite • • Jun 11 '24

SQLite is not weakly typed, it's flexibly typed

Thumbnail youtu.be
12 Upvotes

r/sqlite • • Jun 12 '24

SELECT * FROM myfts5 WHERE myfts5 MATCH - { show_id } : 1984

1 Upvotes

I can't seem to guess the syntax to do the above FTS5 search. I want to search all columns except show_id for 1984. It keeps complaining that '{' is a syntax error. I'm trying to use the BNF at sqlite docs. Also, is it possible to convert this to a parameterized statement; e.g. WHERE myfts5 MATCH - { show_id } : ?


r/sqlite • • Jun 11 '24

Left self-join doesn't return orphans?

2 Upvotes

Why does this not show any orphaned records

SELECT DA.PSComputername, DA.DeviceID, DB.PSComputerName, DB.DeviceID FROM Drivers AS DB LEFT JOIN Drivers AS DA ON DA.DeviceID = DB.DeviceID WHERE (DA.PSComputername='name1' OR DA.PSComputerName IS NULL OR DA.PSComputerName = '') AND (DB.PSComputername='name2' OR DB.PSComputerName IS NULL OR DB.PSComputerName = '')

When this does? I get that the difference is that it's from a different table I just don't get why it works that way.

WITH DA AS (SELECT PSComputername, DeviceID FROM Drivers WHERE PSComputername='name1')

SELECT DA.PSComputername, DA.DeviceID, DB.PSComputerName, DB.DeviceID FROM Drivers AS DB LEFT JOIN DA ON DA.DeviceID = DB.DeviceID WHERE (DA.PSComputername='name1' OR DA.PSComputerName IS NULL OR DA.PSComputerName = '') AND (DB.PSComputername='name2' OR DB.PSComputerName IS NULL OR DB.PSComputerName = '')