home.social

#sqlite3 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #sqlite3, aggregated by home.social.

  1. This codebase uses SQLite3. Valgrind reports a huge amount of lost memory, one entry for every DB query.

    But every sqlite3_prepare_v2() is correctly followed by sqlite3_finalize(). I love Valgrind, but sometimes the output is difficult to interpret. #SQLite3 #Valgrind

  2. Is there a good sql query builder library for #ruby for chainable wheres?

    I've got a ~1000 line toy project that I spurted out this week as an exercise in building a web application with minimal dependencies, and right now it's just #rack, #puma, and #sqlite3...

    I've spent too much time database wrangling, and I don't _mind_ that but would like something light-and-tight that is small enough I can read most of the code in an afternoon...

    Mostly what I really want is something to make chainable where statements 😅

    I started looking at both #ROM and #Sequel both do A Lot.

    #RubyLang #Programming #AskFedi

  3. Пишем Telegram-бота на Python: прикручиваем оплату Telegram Stars, систему промокодов и OpenAI

    Привет, Хабр! В качестве пет-проекта для работы с API и базами данных решил написать своего бота-ассистента. Идея простая: прокси к OpenAI, но с нюансами: хотел разобраться, как работать с относительно новой внутренней валютой Telegram Stars, реализовать собственную систему промокодов и админку без использования громоздких фреймворков, оставаясь на библиотеке telebot (pyTelegramBotAPI).

    habr.com/ru/articles/969080/

    #python #openai_api #telegram_bot #api #telegram_stars #github #sqlite3

  4. Second new: I decided to fully recode "Crisps Chat 🍟" On my opinion - that was a dirty code.

    It's a long story, alas...

    The recoded version is located here 👉 codeberg.org/xolatgames/Crisps

    I wish you a nice, and a cool day! ✌️😜

    #cpp #cplusplus #app #apps #soft #software #imgui #sdl #sdl2 #messaging #sqlite #sqlite3 #communication #opensource #codeberg #git #cmake #make #makefile #application #applications #linux #DearImGui #messages #chat #chatting #chats

  5. My 2024 #GitHub #recap:

    - Two #DOjS releases and a #win32 port

    - A new release of #jSH

    - Contributed #DJGPP patches to #mbedTLS and #jasper

    - Updated my #BuildRoot GeodeLX repo

    - Updated DOSQLite (#SQLite for MS-DOS)

    - 11 Updates to #DOStodon (#MastodonClient for MS-DOS)

    - Three updates to #httpDOS (#HTTPS server for MS-DOS)

    #MSDOS #RetroComputing #recap2024 #JavaScript #SQLite3 #FreeDOS #creativecoding #p5js #retrodev #retrodevelopment #3dfx #OpenGL #Processing

  6. Игра 2048 в вашем Telegram-боте: как создать MiniApp с помощью FastAPI и Aiogram за несколько шагов

    Превращаем известную игру 2048 в увлекательный Telegram-бот! Расскажу, как за несколько шагов создать MiniApp с помощью FastAPI и Aiogram, интегрировать API и настроить базы данных. Пошаговое руководство для тех, кто хочет освоить разработку на новом уровне.

    habr.com/ru/companies/amvera/a

    #telegram #telegram_mini_app #telegram_web_app #telegrambot #python #fastapi #sqlite3 #sqlalchemy_20 #alembic

  7. Создание меню/кнопок в pyTelegramBotAPI на основе SQL запроса

    В данной статье планирую поделиться с вами своей наработкой, которая позволяет создавать меню и кнопки вашего Telegram бота на основе данных хранящихся в БД. Реализовывать все это будем на Python и нам потребуются библиотеки.

    habr.com/ru/articles/832342/

    #pytelegrambotapi #sqlite3 #python #telegram #inlinekeyboard #inlinekeyboardmarkup #кнопки #меню #база_дынных

  8. I've been also using #SQLite3 databases with many random writes on #Btrfs with older #SSD. What a nightmare! I'm really curious what the Write Amplification Factor (WAF) actually is, when I increment counter. I could test that just for fun. I'm sure it's something horrible. CREATE TABLE tab (count); UPDATE tab SET count = count + 1; Just a table with a single counter column and a single row. And then call the update many times in individual transactions. How many bytes will be erased from SSD and how many #IOPs the OS I/O counters will show.
  9. @tomayac Just finished watching the recording of the Fugu Chat from BlinkOn 17. I particularly enjoyed the very last remark by Ben Morss: yewtu.be/watch?v=5Yzd3nCvIAM&t

    He refers to the recent beta release of sqlite3 WebAssembly which enables to create AND persist a sqlite database in your browser: sqlite.org/releaselog/3_40_0.h

    For persisting the database they are using a (theoretically) unlimited 👀 browser-side storage (OPFS): webkit.org/blog/12257/the-file

    #Fugu #ProjectFugu #OPFS #sqlite #sqlite3 #WebDev