Questions tagged [sqlite]
SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
87,040
questions
0
votes
0answers
8 views
Getting Image view from SQLite Database using URL
Is there a way of holding an image in an SQLite database in a columns dedicated for image URL's - as a URL and passing it through as an image into my Image View? I have an app with a number of ...
0
votes
0answers
18 views
System.Data.SQLite.SQLiteException: 'SQL logic error no such table: tb_Cadastro'
private static SQLiteConnection ConexaoBanco()
{
conexao = new SQLiteConnection(@"Data Source=C:/Users/Henrique/source/repos/CadastroEventoProway/CadastroEventoProway/bin/Debug/...
0
votes
0answers
8 views
django store field as a tuple of form (ManyToMany Existing Model, DateField Expiration Date)
Im building a database to manage locks. Essentially there will be a model Locks that describe locks on a door and users who have access to said locks. There will be Users who have identification ...
0
votes
0answers
7 views
Error message when opening external database in Android
I would like to load an external database in Android. I have used the approach from with tutorial Read External Database with SQLiteOpenHelper on Android. I created an folder called "assets" ...
2
votes
1answer
32 views
Unpacking big list in python
I have to unpack this big list and put every item into db.
Everything works well except these data.
I tried with :
([styles], [seasons], [day], [id]) = search_
but I get an error like this:
exception=...
-1
votes
1answer
15 views
Sqlite code not displaying any Debug log?
Very new to sqlLite and trying to make a very simple bit of code which will display the values of username and password in the table just using the debug log for ease. When running the code nothing is ...
0
votes
0answers
19 views
Raw sql query in sequelize for sqlite in nodejs
I am using sequelize ORM to connect the node application with my sqlite database. I want to run a set of raw sql queries which involves joining tables. There are two tables for Team A and Team B which ...
0
votes
1answer
16 views
merge secondary database into main one avoiding duplicate
I have two databases with the same structure. The first is the main one, while the second get updated periodically (in reality I have multiple "secondary" databases that I want to merge one ...
-2
votes
0answers
8 views
https://www.sqlitetutorial.net/sqlite-python/insert/ - OperationalError: no such table: projects
I'm using the script from https://www.sqlitetutorial.net/sqlite-python/insert/ to create an sqlite database and insert data into it.
I thought I'd like to store the database in a folder called ...
0
votes
1answer
24 views
How to read common table from multiple SQL databases in R
I have multiple sqlite databases and would like to extract a common table (named "Sound Acquisition") without reading in all the tables of the database.
I know this can be done going through ...
-2
votes
0answers
20 views
Using SQLite library in swift
I found a great thin wrapper for handling SQLite calls etc for my Swift project but I'm not sure as to how to use it exactly. The developer gives examples however I'm not sure as to whether to use his ...
0
votes
1answer
27 views
How to create multi-column indices DuckDB/SQLite?
I have a DuckDB with columns of data which I would like to query using multiple columns. I'm in R but I'm not sure how to create a multicolumn index (or even a single column index). Can anyone suggest ...
2
votes
1answer
17 views
How to insert multidimensional list into sqlite db
I need to insert list like this
list = [['1'], ['2'], ['3'], ['4']]
so I unpack it and try to insert it into db
a,b,c,d = list
db.execute("INSERT INTO show (titolo,stagioni,clima,temperature)...
0
votes
0answers
17 views
System.Data.SQLite.SQLiteException (0x80004005): SQL logic error or missing database near “)”: syntax error
I was trying to execute this sqlite database in C# visual studio windows application but whenever I try to enter value in text boxes this error occur if anyone have idea please help I am using sqlite ...
0
votes
0answers
11 views
Installing sqlite3 on node in Yocto showing Error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node
**Installing sqlite3 in node application on node application in Yocto os it allowed to install in
node v14.15.5 SQLite3 v3.22.0
But it was showing error on updated versions.
As of now the latest node ...
-1
votes
0answers
14 views
Deployed a Flask App to Heroku - How Do I Access My Sqlite3 Database?
I've made a flask application which involves a WTForm that sends data into a sqlite3 database. When running the Flask app, it works as it should. However, now that I have deployed the flask app to ...
1
vote
1answer
20 views
SQLite recalculates random() multiple times in subquery or CTE
If I run the following query:
WITH cte AS(SELECT random() AS rand)
SELECT rand,rand FROM cte;
the value rand is calculated once, and the same value appears twice in in the result.
If I run that with ...
0
votes
1answer
23 views
How to Sum a column as a Double using GRDB
I'm trying to convert my app from SQLite.swift to GRDB and I have run into a snag. I need to sum three separate columns and then do some math with the column totals. All three of the columns are ...
0
votes
1answer
10 views
import sqllite3 ModuleNotFoundError: No module named 'sqllite3' on Windows 10
I am trying to create Sqllite database using Python. I am using python 3.6 version and working on a windows 10 pc.
I successfully installed pysqlite3
pip install pysqlite3
But I am facing issue when ...
-1
votes
1answer
13 views
How add +1 to a value without specifying a certain value?
So i'm making a level system and i need to add +1 to the value without me specifying a certain value (so basically i just need it to add +1 to a value without checking if a certain number)
here is ...
0
votes
0answers
13 views
Is SQLite in immutable mode safe on non read-only media?
In an application that ships with a read-only SQLite database, I've found that opening the database as immutable radically improves query performance. However the SQLite documentation says this (...
0
votes
1answer
17 views
SQL Join across multiple columns
I'm creating a DB in SQLite to record race results and SQL queries to then display the data.
I have 1 table for racers and one for the results.
Racers
racerID
racerName
1
Mark
2
Simon
3
Geoff
...
-2
votes
2answers
26 views
How to join two tables and add a limit
Given two tables in a SQLite database,
app_vendor
app_id | vendor_id
---------------
43 | 747
3 | 12
83 | 747
....
app
id | name
---------------
43 | Instagram
5 | Snapchat
and I ...
0
votes
0answers
13 views
How to create pdf of SQLite database Android API 30
I haven't managed to find and resources online to create odds as a file on the Android device from an onClick of a button. I have found some tutorials but the code ends up being depreciated because of ...
-1
votes
0answers
19 views
saving combo box from tkinter python into sqlite database
I am very new to python and Tkinter, and I have been running into a problem to which I can not solve. The problem is that I can not save the data to which is in the combo box into the sqlite database. ...
0
votes
0answers
22 views
Utilising the SQLite library in Swift [closed]
I found a great thin wrapper for handling SQLite calls etc for my Swift project but I'm not sure as to how to use it exactly. The developer gives examples however I'm not sure as to whether to use his ...
0
votes
1answer
15 views
Good way to “wrap” the opening and closing of a database around functions in Python?
I've looked at a few related questions on StackOverflow and at some documentation/guides regarding wrappers, all of which tells me "no," but this doesn't seem right. That said, I'm very new ...
0
votes
0answers
18 views
Store list of tuples into SQLite database
I need to store a list of tuples [(2345,'MID'),(4543,'GKP')...] from my from_home_player_1_to_home_player_11 dataframe column into my database. I'm trying to insert the table as I create it:
c.execute(...
0
votes
0answers
5 views
In sqlite-jdbc driver(3.23 or 3.30),fail update when string is too long, without any exception. But in command line and navicat, it's OK
SQL
replace into articles(id,grade,no,title,content,newchars,update_time)
values(1394823098212,'1','8','title','**LongUtf8String**',1614001996557)
If the length of LongUtf8String exceeds 2689 bytes, ...
-1
votes
0answers
35 views
Why does typing db.create_all() in the command prompt not work?
Following a video on creating a login system with flask with sqlalchemy and keep on getting this error when trying to create the tables for my database after typing db.create_all() in the cmd
My code:
...
1
vote
2answers
22 views
Normalizing an adjacency list
I have data represented in this fashion (not sure I properly call it an adjacency list, but that's the best description I can think of):
+--------+-------+
| Level | ID |
+========+=======+
| ...
0
votes
1answer
20 views
Sqlite disk I/O error (python - databricks)
So, I'm running a cluster on Databricks. when I try to query an sqlite file on it like this:
import sqlite3
conn = sqlite3.connect("/dbfs/FileStore/testing.sqlite")
cur = conn.cursor()
cur....
1
vote
0answers
16 views
Android - Room Migration didn't properly handle CREATE table
I recently updated the Room library to 2.3.0-beta01 from 2.2.5.
Here is the migration that I added.
"CREATE TABLE 'bookmark' ('id' TEXT, 'content_id' TEXT NOT NULL, 'bookmark_position' INTEGER ...
0
votes
1answer
14 views
How To Save Unsigned Long Variable To Android Room Database?
I've got a MariaDB database running on my server and for the application side, i'm going to use a local database.
On my server database i'm holding ID as unsigned bigint which must be equal to ...
0
votes
0answers
23 views
There is no data source for Sqlite in VS2019 C# with EF6
A WinForms application at VS 2019 (version 16.5.3) (C# ) with .NET V4.7.2 is created and all steps done same as the below link:
https://github.com/ErikEJ/SqlCeToolbox/wiki/EF6-workflow-with-SQLite-...
0
votes
0answers
24 views
displaying total count of records on a screen with js
i am building an application for a school where the users can insert records into a database, and on the home screen, each subject record count should be displayed, however i cant seem to get this ...
0
votes
0answers
15 views
sqlite3 returns a syntax error on a user function
In a C program using sqlite3 I created a user function:
rc= sqlite3_create_function
(db, /*database*/ ...
0
votes
0answers
22 views
sequelize with custom id validation error
I am creating a custom id(primary key) and set a default value(random string using nanoid library) to it so I don't need to specify an id when I am creating and inserting data to DB(so works like a ...
-2
votes
1answer
19 views
How to join 2 Table python sqlite3?
i would ask How can you join 2 tables using sqlite3 on python pycharm ,i tried diffrent things , but this one seems to be correct but idk why it's not working (Knowing that i already inserted those ...
0
votes
1answer
37 views
SwiftUI FileDocument using Sqlite and GRDB
In a document-based SwiftUI application, I’d like to persist each document to a separate Sqlite file using GRDB as a Sqlite wrapper. It’s straightforward to load Sqlite files in a document that ...
0
votes
0answers
12 views
How to declare the table name as an argument with GRDB
The function below works fine if I replace the ? with the name of one of the tables and remove the argument. However, I need the table name to be declared with the variable (theTable). I did't find a ...
-1
votes
3answers
56 views
SQL query many-to-many: find all items with all tags included in a given set
I'm working with SQLite. Basically, I have a many-to-many relationship between items and tags. I want to find every item such that all its tags are included in a given set (found by another query). So ...
-1
votes
1answer
20 views
My Code doesnt work (Sqlite3, Python, Delete)
I have the problem that when I want to delete a row from the database I get an error:
Traceback (most recent call last):
File "C:\Users\maxpr\Desktop\DevHub\Discord Bots\Privat\FAQ-Bot\venv\lib\...
0
votes
2answers
19 views
How to write several item in table at the same time - ORMLite - Java
I use ORMLite on a solution made by server and clients.
On server side I use PostgreSql, on client side I use SQLite.
In code, I use the same ORMLite methods, without taking care of the DB that is ...
-1
votes
0answers
13 views
How to store parsed JSON data into SQLite3 with swift5 iOS app
I want to store parse JSON string into my local database SQLite3. I easily parsed data from URL and also created database I only want to store the JSON data into SQLite3
1
vote
1answer
26 views
translating pandas group to sql(ite): limit in group
The Problem
I'm trying to translate a pandas query into a SQL(ite) query. The main issue in my translation to SQL is trying to place a limit in a group.
Here is a setup (in python) of an example ...
0
votes
0answers
17 views
Seek advise on creating sqlite query to process buy sell transactions according to FIFO method and produce a combine summary
I am attempting to create a sqlite query to process stocks buy sell transaction based on FIFO method to track summary of counters performance.
There are 2 queries written so far:
Matching 1 buy and 1 ...
0
votes
0answers
7 views
Query regarding sqlite3 2009 pro
I have installed sqlite 2009 pro and I am trying to load a .db file in sqlite3 management studio. But i am unable to load as there is an error " file is not encrypted or its not a db file" ...
0
votes
0answers
6 views
How to get current logged in user id in adapter?
I'm trying to work on a project using SQLite database.
In this project, I'm displaying all users in RecyclerView using an adapter class.
what I want to do is that, if a logged-in user clicks on any ...
0
votes
0answers
12 views
Timeoff Management - creating api calls for creating/approving/rejecting/cancelling leave requests
I am very much a beginner of node js and express and I am trying to use the timeoff management app https://github.com/timeoff-management/timeoff-management-application and be able to make api calls ...