Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [sqlite]

SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.

Filter by
Sorted by
Tagged with
0 votes
0 answers
102 views

Properly implement MVVM pattern in multiwindow WPF app

I'm trying to develop a SQLite based WPF app (c#) utilizing the MVVM pattern. I'm building this on a decade old laptop with only 2 GB RAM, 20 GB of free storage in it and Windows7. So I'm using .Net 4....
user avatar
1 vote
0 answers
60 views

To do application using python's tkinter and sqlite3

I program python as a hobby and wanted to learn how to apply databases in a functional program, while at the same time make something useful. so I made a to do application with some basic ...
user avatar
3 votes
1 answer
48 views

Newspaper Bill Calculator CLI with Python (3 of 3, Database)

Code is posted after explanation. Due to the size of the project, this is being posted in three separate posts. This also ensures each post is more focused. Post 1 of 3, Core: Newspaper Bill ...
user avatar
3 votes
1 answer
51 views

Acupuncture database builder

The following code builds a rudimentary acupuncture database by collecting data from the web. I would like to hear suggestions about improvements to the database structure, code organization, web-...
user avatar
  • 321
0 votes
1 answer
108 views

Code cleanup for a Java project that creates a database containing members of a club

This question is related to my first post on this forum. Since the rules are not to make the questions too broad, I thought I'd create a new question. I'm not experiencing any issues with this piece ...
user avatar
  • 1
0 votes
2 answers
116 views

Searchable database with Java and SQL

What does the code do? Albeit unfinished (it does work, it's just not complete yet), the code creates a database (members.db) where telephone numbers, IDs, and ...
user avatar
  • 119
0 votes
0 answers
45 views

SQLite loses performance versus SQL server and powershell regarding LEFT JOIN (INTERSECT)

I have the following files in a directory: 1256590_hashed.txt 1273301_hashed.txt 1177301_hashed.txt ... etc... these represent cut and hashed segments of documents ...
user avatar
  • 1
2 votes
0 answers
85 views

SQLite C/ADO VBA library with reflection

SQLite C/ADO VBA library with reflection The SQLiteCAdo library is a VBA middleware facilitating access to SQLite databases. Its two subpackages provide alternative connectivity options: via ADODB/...
user avatar
  • 375
4 votes
1 answer
143 views

Code to scan filesystem, store every path into sqlite and update only when something has changed

I have made a program that does what the title explains. It also hashes the file to check for changes. I will be doing this for a project to keep track of files that has been changed when doing ...
user avatar
1 vote
1 answer
279 views

Beginner CRUD Console Application

I wrote this basic CRUD app + simple report so I could practice talking to a db directly. I purposefully avoided repository pattern and Entity Framework and only used a library to show the coming data ...
user avatar
1 vote
0 answers
30 views

bit.ly Clone in Python powered by Flask

Recently, I was studying flask and my friend sent me a bit.ly link. Then the idea of a bit.ly clone struck my mind. This project uses Python - 3.10.0 flask - version 2.0.2 Bootstrap CSS. (I am very ...
user avatar
0 votes
0 answers
18 views

Database operations classes and currencies class

I work on a project that is dealing with two databases (Mysql Db on Internet + Sqlite Local Db). I will explain what I do with my project to build the codes: firstly I have (Class "ClsMysql"...
user avatar
  • 101
3 votes
1 answer
136 views

VBA introspection library for SQLite

SQLiteDB VBA Library is a set of VBA helper functions for the SQLite engine. The primary motivation behind this project is to provide convenient access to extended introspection features. Because of ...
user avatar
  • 375
0 votes
0 answers
24 views

Bayesian ranking of fanfics with python and sqlite

I've done a script to sort fanfics by the bayesian average of views and rating. I've used views because it took much longer to scrape the dlp website for reviews. I leave all the code so that it works....
user avatar
4 votes
3 answers
1k views

Optimizing the insertion of 400 000 records in sqlite

I have the python script that creates a sqlite database and fills it with data (originally coming from a json file). At the time I execute the code below, my word ...
user avatar
  • 143
0 votes
2 answers
113 views

Getting a username from a database and displaying it in HTML

I'm using Flask on Python and I'm displaying the username at the top of the site (and it's working) as follows: ...
user avatar
  • 369
2 votes
1 answer
81 views

Adding iterators to C++ sqlite wrapper class

I recently put up my C++ class to wrap the sqlite3 c library here: Thin C++ wrapper for sqlite3 C library One of the suggestions was rather than to specify a vector for arguments to functions instead ...
user avatar
  • 2,227
2 votes
1 answer
135 views

Thin C++ wrapper for sqlite3 C library

I originally wrote a rough C++ wrapper of the sqlite3 c library which did not use prepared statements. This code is my attempt at using prepared statements. I have attempted to make the wrapper as ...
user avatar
  • 2,227
1 vote
1 answer
81 views

Speed performance of sqlite3 queries looped in python

I have a table data stored in a database ships.db, the data are informations of tracked ships hourly. The table data looks like ...
user avatar
  • 185
2 votes
0 answers
32 views

Covid Tracker + Notify people = Ideal for small coffee place or similar

This is my second project since I started with Python, this time I learned a little bit of SQL that is so useful and beautifully simple. Starting idea: Generate a program that will store information ...
user avatar
2 votes
1 answer
222 views

Generate a bar chart of weekly data from SQLite.NET

I am using Xamarin.Forms, Microcharts and SQLite.NET to create a mobile app. The SQLite.NET database stores details about books (book ID and entry date - the date it was entered in the system). The ...
user avatar
3 votes
1 answer
597 views

C# Password Security Login System with SQLite

I want to start by just mentioning I'm a semi-beginner at C# and cyber security so any feedback is appreciated :) What I think I need reviewing is the SQLite queries and maybe the hashing functions I'...
user avatar
  • 183
3 votes
1 answer
42 views

Simple Safe for Loading and Retrieving Digital Images

I wrote this little utility program that saves and load digital images such as videos, pictures among others in a database. I used click module for it's interface. ...
user avatar
0 votes
1 answer
168 views

Sqlite select and delete operation using C API in Swift

I've following sqlite code using C api within Swift having a read and a delete operation for review. For those not familiar with Swift, defer will execute after the ...
user avatar
0 votes
0 answers
120 views

Is my Android Room SQLite migration code written without flaw, as I wish to have 0 impact on my existing users?

Currently, we plan to perform an intensive SQLite DB migration code in Android. We really want to avoid from having any bad impact (data corruption) on existing users. Can anyone help me to take a ...
user avatar
2 votes
0 answers
336 views

Simple Sqlite-driven WinForms app in C# 7.0 - database interaction code

Description This is a simple "demo" app designed to help gain familiarity with interacting with an Sqlite database from C#, particularly storing images as blobs. The database has a single ...
user avatar
  • 394
1 vote
1 answer
108 views

Load data from SQLite table, modify them and save in to new SQLite table

My goal was to create a script that would: Pull certain data from an existing SQLite table Apply a simple mathematical formula Save the new values to another SQLite table I’m just starting to learn ...
user avatar
1 vote
1 answer
191 views

Improving sqlite3 code in swift using c api

Trying to come up with a pattern where the code to open db, writing queries is elegant and clean while handling all possible error conditions. Following code ...
user avatar
3 votes
0 answers
662 views

Login function with python and SQLite

I'm a new programmer who is currently working on a personal project. It is supposed to be a login program which stores user data in a SQLite database. I was wondering if anyone could look at my code ...
user avatar
  • 31
2 votes
0 answers
29 views

Uploading to DB from Excel with Pandas

I have this python script that uses pandas read an excel sheet then to update a sqlite db it works perfectly just wondering if I can speed it up as I am at about 70k lines ...
user avatar
  • 21
0 votes
1 answer
78 views

QCombobox Case selection - Pyside2 Index via Sqlite

I have a very simple file where I have a Qcombobox Filter. When you select the filter, I run through a case on the index and output results. So, on selection I trigger: ...
user avatar
  • 103
1 vote
1 answer
1k views

SQLite and Python: commit once every 10 seconds maximum, and not after every client request

In a Python Bottle server using SQLite, I noticed that doing a DB commit after each INSERT is not efficient: it can use 100ms after each client request. Thus I wanted to improve this in How to commit ...
user avatar
  • 245
3 votes
1 answer
467 views

Gold Price Tracker Web Scraper using Python

Hi I've written a web scraper for tracking gold price. Can someone please review my code and suggest improvements. It gets the price of gold from a specific url then stores the price against date in a ...
user avatar
4 votes
1 answer
507 views

Interface class for SQLite databases

I am learning the basics about managing an SQLite database by using Python and, mainly for practice purposes, I have then defined an interface class in order to let operations on database as clear as ...
user avatar
4 votes
0 answers
88 views

Optimizing hundreds of millions of SQLite database inserts in Python

Some background Feel free to skip this if you're not interested. There is a very popular bioinformatics program called tabix that permits interval-based searches for genetic variants in VCF files. ...
user avatar
5 votes
3 answers
626 views

Simple Python and SQLAlchemy Text Password Manager

Out of boredom, I decided to start my personal project and I've chosen a simple Text Password Manager. Note: For anyone out there, I strongly recommend you NOT to use this for any sensitive storage ...
user avatar
1 vote
1 answer
87 views

Count distinct records in a JOINed SQL query

I have two tables with a 1-many relationship, Device and TestResult. My application has a filter builder front-end that allows a user to retrieve TestResults based on whatever filters they specify. ...
user avatar
  • 121
3 votes
2 answers
80 views

Database Design for representing category relationships

So I am new to Databases.Recently I was asked this question in an interview where they expected me to come with a schema for storing and retrieving categories for an E-commerce website in an RDBMS. ...
user avatar
1 vote
0 answers
90 views

Uses SeekBar to adjust the data displayed in UI from my Room database

I wrote code that takes the value of the progress bar in my Android app which influences what is displayed on the UI. If the user's progress bar value is above or below a certain number, data will be ...
user avatar
  • 21
1 vote
1 answer
60 views

Scenario creator database design

I am working on moving a save system from loose files to a (spatial sqlite) database. The user places objects from a library in a 3d simulation. Scenarios are "what-ifs", what if we place 5 wind ...
user avatar
  • 11
5 votes
2 answers
76 views

Add as newest ID to SQLite Database

At our company we use an SQLite Database to manage our Drawing IDs (CAD Drawings). The code is written in Python and I need to update it. I think the code I have has some problems, but I am quite ...
user avatar
  • 337
3 votes
0 answers
98 views

Sending push notifications to a user

I have a function whose responsibility is to send a push notification to a user. I call this function from a view in flask framework. I have read multiple articles around refactoring and good designs ...
user avatar
  • 161
3 votes
3 answers
555 views

RAII wrapper for SQLite transactions

I'm using this nice C++ wrapper to work with SQLite3 in my project. I wanted to handle errors gracefully and automatically rollback if piece of code fails, so wrote this simple helper class: ...
user avatar
1 vote
0 answers
107 views

c++ sqlite3 wrapper

this is a simple wrapper for sqlite3 to make working with databases easier it isn't a professional implementation but it is much better than the raw c interface I saved much time and code using this ...
user avatar
  • 293
9 votes
3 answers
640 views

School House Points (Python + SQLite)

I am creating a database to store house points for our school running events. I would like to be able to tally all the points for the houses and it is working fine, however, I think it may be a bit ...
user avatar
7 votes
1 answer
1k views

SQLite In-memory Database That Inserts Data Read From a CSV File

I wrote this program to make a simple in-memory database using SQLite and JDBC. Requirements I was trying to accomplish are below. It should consume a CSV file, parse the data, and insert it into the ...
user avatar
2 votes
1 answer
196 views

SafeBlockPopulator to ensure neighboring chunks are generated before population

Bukkit/CraftBukkit/Spigot are Minecraft server extenders that allow for creating and using plugins. A particular type of plugin is a generator, which creates the game world. Generators operate chunk-...
user avatar
4 votes
1 answer
219 views

Insert into SQLite3 database

I have a tsv file containing the mapping for two kinds of identifiers. ...
user avatar
  • 231
2 votes
1 answer
139 views

SQLite3 account creator

This program allows users to create and log into their account. The database is created using SQLite3 and the GUI is just simple tkinter boxes. I just want to know how to improve my code, organise it, ...
user avatar
  • 101
5 votes
2 answers
4k views

OOP bank account program in Python 3

Python beginner here. Building an OOP bank account program with SQLite and starting to struggle a bit with its design. From a design standpoint I have a file (bank) which calls ATM. ATM simulates an ...
user avatar
  • 173

1
2 3 4 5