Questions tagged [sqlite]
SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
227 questions
9
votes
3
answers
1k
views
Repository with SQLite in Python
This repository class is supposed to be used for saving information extracted from RAR, SFV archives or files that contain the hash sum in their filenames.
The abstract parent class can be found here)....
4
votes
2
answers
102
views
better-SQLite3 and JS/Next.js - updating data using "transaction"- shorter / better code?
I am pretty new to SQL databases and in particular to the better-SQLite3 database. I have managed to insert, update, and delete data in a way I desire. All of it running in the background of a self-...
1
vote
1
answer
137
views
Database design using Closure Table for tagging system
I created these database tables with the inspiration in NjDevPro github repository. The design uses Closure Table for implementation of hierarchical tagging system in ...
2
votes
1
answer
81
views
Database schema for project management app
As a side project, I'm developing a desktop app for project management, especially for students, self-employed, freelancers, etc. as a general purpose productivity tool, not from any business or ...
1
vote
2
answers
65
views
QGIS - SpatiaLite - Getting info from contained and nearest features [closed]
I’m working on QGIS with a SpatialLite DB (SQLite). I have four layers, and the fourth one (table: "ESPECES_HABITATS_POLY") is populated with the contents of two other layers (table: "...
2
votes
0
answers
106
views
comment-monk - Comment hosting script for static blogs and websites
So few days ago, I had created another review request for sqlite database schema for a comment hosting system.
Now that the app development is complete, I have pushed the initial version on github. As ...
5
votes
2
answers
817
views
Database schema for an upcoming comment hosting system
I'm working on a small and simple comment hosting platform in PHP (SQLITE database) to host comments for my static blog https://prahladyeri.github.io/. No login, sign-ups or third party OAuth, just ...
3
votes
2
answers
186
views
SQLite querybuilder class in python
Motivated by the first commentor's suggestion on my MSAccess question:
Python SQL insert to MSAccess with VBScript
I am moving to use SQLite databases for a python application and I created this query ...
3
votes
3
answers
157
views
Improving efficiency of database searches under SQLite (SpatiaLite - QGIS)
I'm new to SQL, but I've always heard that it's a very efficient way of searching databases. For the same task, in VBA I get a result in a few seconds for 1000 queries. In SQL it takes several minutes....
1
vote
1
answer
133
views
Managing users via SQLAlchemy DB model (updated)
I am currently in the process of writing a system application that will be operated by multiple users. This will require individual users to access the application while limiting access to those that ...
1
vote
1
answer
153
views
My Drawing Finder
I developed this application for the company I work for. It became increasingly challenging to locate drawings within the myriad of folders, especially when searching for the most up-to-date versions.
...
1
vote
1
answer
132
views
Python Django image upload API with 6 fixed slots
I built an image upload API with Python Django. There are a fixed number of 6 slots, which can either be null or filled with something. There are two entities, Profile, which contains the six photos, ...
5
votes
3
answers
731
views
Mapping named parameters to indices for PreparedStatement
I needed something to map named SQL parameters into indices for JDBC queries so I wrote the ParameterMap class that takes an SQL query, searchers for parameters ...
1
vote
2
answers
4k
views
Simple Connection Pool for SQLite in Python
When I talk to people regarding connection pooling in SQLite most of them always laugh and say "You don't know about SQLite", "It is not a client server DB, and only overhead in ...
5
votes
1
answer
282
views
decorator to execute sqlite statement
I'd like to wrap all my sqlite statement functions with a decorator which collects the statement and the lists of values I will inject in place of placeholders in my statement (to avoid sql injection)....
2
votes
1
answer
1k
views
Concurrently write results to SQLite database
The goal is to run a function compute in parallel on many inputs (10**6 in total, say) and store the results.
Each call to ...
0
votes
1
answer
306
views
Copying multiple SQLite database files between two locations
Is this fastest and most reliable way to copy multiple database files (SQLite) from one location to other and overwrite them if they already exists, safely ?
Currently I'm using the below approach :
<...
0
votes
2
answers
633
views
Configuring SQLite3 for best efficiency as a persistent cache
I'm using SQLite3, via php's extension module, to create a persistent object cache for WordPress. It's intended for use on modestly sized sites that don't have access to redis or memcached. Why use ...
5
votes
1
answer
78
views
Sum values in different categories by each financial asset
My SQLite database:
CREATE TABLE Movimentacao
( mydate DATE
, dividend_type VARCHAR(200)
, dividends DECIMAL(19, 2)
, ticker VARCHAR(300)
);
Inserting some data:
<...
2
votes
0
answers
341
views
A thin Python wrapper about the Python sqlite3 module
This wrapper incorporates the logging feature and provides a few convenience methods, including a scalar values fetcher, a generator for paged row sets, a wrapper retrieving a row set via a JSON ...
1
vote
1
answer
107
views
Query for sequential column permutations in SQLite
For dummy's sake, let's say that I have a database with columns text, ind and sentid. You ...
3
votes
1
answer
463
views
Why are my read speeds so bad using sqlite?
I know very little about databases and even less about how to optimize them, but I have a problem which calls for a database so here I am...
I created a sqlite3 database using the following script:
<...
1
vote
0
answers
70
views
UPDATE on 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: UPDATE 1 on Newspaper ...
1
vote
0
answers
358
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 ...
3
votes
1
answer
118
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 ...
3
votes
1
answer
125
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-...
0
votes
1
answer
171
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 ...
0
votes
2
answers
177
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 ...
2
votes
0
answers
433
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/...
4
votes
1
answer
652
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 ...
1
vote
1
answer
5k
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 ...
1
vote
0
answers
53
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 ...
3
votes
1
answer
581
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 ...
4
votes
3
answers
2k
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 ...
1
vote
2
answers
1k
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:
...
2
votes
1
answer
266
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 ...
2
votes
1
answer
741
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 ...
1
vote
1
answer
886
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 ...
3
votes
1
answer
74
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 ...
1
vote
1
answer
435
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 ...
3
votes
1
answer
2k
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'...
3
votes
1
answer
80
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. ...
1
vote
1
answer
363
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 ...
3
votes
0
answers
771
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 ...
1
vote
1
answer
310
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 ...
1
vote
1
answer
571
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
...
5
votes
3
answers
1k
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 ...
2
votes
0
answers
48
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
...
1
vote
1
answer
161
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:
...
1
vote
1
answer
3k
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 ...