Questions tagged [sqlite]
SQLite is an open-source software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. SQLite is the most widely deployed SQL database engine in the world.
94,089
questions
-1
votes
0
answers
15
views
In SQL, how can I perform an UPDATE on a range of columns? [duplicate]
I imported a CSV file into an SQLite database table and discovered too late that the source contained numbers as strings with commas to separate thousands. Here is an example row in my database:
3118,...
-1
votes
0
answers
23
views
JpaRepository.save() commiting changes and not able to rollback
I'm writing integrated tests for a service:
@SpringBootTest
@ExtendWith(SpringExtension.class)
@ActiveProfiles("test")
@Transactional
@ContextConfiguration(classes = TestDbConfig.class)
...
-2
votes
0
answers
7
views
Opening mbtiles databases with @capacitor-community/sqlite
I tried opening an existing mbtiles database with @capacitor-community/sqlite inside a vue capacitor app in several ways, but unfortunately none worked.
I tried opening a manually saved file, ...
-4
votes
0
answers
12
views
Load SQLite Database in Python [closed]
I have been working on a Python crime management project using SQite3.For that i want to load a database having criminal records.I am a beginner to sqlite. How can I load the dataset and use it.I want ...
-5
votes
0
answers
25
views
Scratch node application which uses crud - want to add authorization factor in it but getting error [closed]
Application Description:
The application is a web-based platform that allows users to register, log in, and interact with a list of user profiles. It includes user authentication for security and uses ...
0
votes
1
answer
51
views
App crashes when using prepopulated room database
I am trying to use a prepopulated Room database but I get a crash when trying to use the database with the following error: java.lang.NullPointerException: cursor.getString(toColumnIndex) must not be ...
0
votes
0
answers
22
views
Flutter sqflite getting single data from user database SQL
Future getSingleUser(int id) async {
Database db = await getDataBase();
List<Map<String, dynamic>> user =
await db.rawQuery("SELECT * FROM userInfos WHERE $columnId = ...
-3
votes
0
answers
28
views
Why does sqlite-amalgamation-3420000 have so many errors when compiling? [closed]
I follow the example/instructions to compile with: gcc -fPIC -shared -o libsqlite3.so sqlite-amalgamation-3420000/sqlite3.c
However, when I attempt to then "upgrade" my compile process (in ...
-1
votes
1
answer
14
views
Using Sqlite to query a database I have a columns with spaces and special characters [duplicate]
Whilst trying to query a column which has spaces and commas, I tried using "Element,_Middle_or_High" using double quotes, and underscores, yet I am unable to get the result I want, but ...
0
votes
1
answer
19
views
csv to SQLite how to eliminate the empty cells on CSV or how to eliminate null on SQLite table
I encountered some questions when I was trying to upload a CSV file to SQLite using Python 3.
I originally had a file in XLSX format, which I then converted to CSV. My file looks like this:
A B C
...
0
votes
0
answers
19
views
Providing sanitised input to SQLite from the command line
I’m building a SQLite database and need to use the command-line (Zsh). First I create the table:
sqlite3 example.sqlite3 "CREATE TABLE example('first' TEXT, 'second' TEXT)"
Then I add some ...
-4
votes
0
answers
20
views
there is error occur when i work with SQL [closed]
"The row in table 'flights_flight' with primary
key '1' has an invalid foreign key: flights_flight.origin_id contains a value 'New York' that does not have a corresponding value in ...
-2
votes
0
answers
30
views
No such column exists for subquery result sqlite
I'm converting mysql query to sqlite query and I have problem in using alias name further in sqlite query as explained below,
I have two tables as below,
table1 -> (id, firstname, lastname)
table2 -...
0
votes
0
answers
12
views
How to save form data to DB when using django inline formsets
(TLDR is below).
I am using inline form sets to facilitate the creating of a form that is based on a model that has multiple foreign keys to other models. This means that I have created an inline ...
0
votes
1
answer
47
views
How to determine if provider is for SQL Server or SQLite?
I am configuring my entities by having an EntityConfiguration class that implements IEntityTypeConfiguration<MyEntity>.
For normal application execution I am using SQL Server and for unit ...
-2
votes
0
answers
50
views
Is it better to store data in an SQLite database or in the code itself? [closed]
I am making a discord bot game using python and SQLite3 for the database. Currently, things like player profile information is stored in the SQLite database; however, I am struggling to determine if I ...
-1
votes
1
answer
31
views
HOW TO DECOMPRESS the zip file which is stored in assets folder in flutter
DECOMPRESS the zip file which is stored in assets folder and after decompress same file store into database to app's assets folder in runtime. In zip file, sqlite database file is stored due to high ...
0
votes
1
answer
28
views
Manual pagination in Room
I am wondering about different ways of implementing manual SQLite pagination using Room. I am absolutely not willing to use Paging library as its implementation is way too concrete.
Currently I am ...
0
votes
1
answer
32
views
Can a primary_key be avoided in SQLAlchemy when creating a table?
I have a database with a bunch of huge tables, and I would like to
Use SQLAlchemy to interact with these tables
Create similar tables (with a few rows) in a local sqlite database for testing
Test ...
0
votes
0
answers
10
views
attach multiple database in sqlite - Node/express
I have two SQlite databases.
Database1.db
Database2.db
How can I attach or use two databases together in SQlite, Node/express app.
To connect to Database1.db, I use following approach in Node/...
-1
votes
0
answers
46
views
Should I open a new connection to sqlite on each request?
I'm working on a web server using go fiber and sqlite for db.
Should I open a new sqlite connection on each request or is it ok to reuse a single connection?
I read other examples such as create go ...
0
votes
1
answer
32
views
Is there any solution to implement listview.builder within a single Text widget flutter?
SizedBox(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
...
-2
votes
0
answers
78
views
Converting database query from SQL to SQLite
I have an ABB process panel HMI that uses some background C# scripting to export alarms based on a date range from a database to a CSV file. Recently a new version of the panel came out with the ...
0
votes
1
answer
34
views
SQL: division by specific records when calculating the average (AVG) and not for all
I would like to calculate the average of the goals conceded only in the matches away from Chelsea, therefore field team_away=Chelsea, but of the matches limited to the 1st round and the 2nd round.
...
0
votes
1
answer
38
views
better-sqlite3 TypeError: o.default is not a constructor
I am creating a vscode extension in typescript, webpack and better-sqlite3. I try to create a database in the C:\Users\userName\AppData\Roaming\Code\User\globalStorage\ folder.
But i get the error:
...
-1
votes
0
answers
26
views
How to set a variable from an SQL query [duplicate]
using SQLite3 for the database . the variable i am trying to set is "userfatintake", i am trying to set this to the variable "dailyfatin" in the database. this is the current code, ...
-1
votes
0
answers
51
views
Trouble converting SQLite TEXT to double in ASP.NET Core
When I try to retrieve decimal values from my database I get back and Int. Ex: '2,0' stored in DB as TEXT returns 2 in ASP.NET. The property that set the value to in my class is set to a double. Why ...
0
votes
0
answers
25
views
No Database file being created with SQLAlchemy
I'm using SQLAlchemy and Flask to generate a database like so:
db = SQLAlchemy()
DB_NAME = "database.db"
abs_instance_path = path.abspath(path.join(path.dirname(__file__), '..', 'instance'))...
0
votes
1
answer
74
views
MAUI iOS build won't build even for a debug build
We recently upgraded our mac at the company so we could update to xcode 15 (we were previously stuck to xcode 14.2). When I went to build the app we are developing for quite some time now for iOS I ...
0
votes
3
answers
47
views
How can I compare numbers fetched from a database with sqlite3 in Python?
I'm quite new at programming, and I'm working in python with sqlite3, and I have a column where the numbers are ordered, but there might be gaps (1, 2, 4, 7, 8...). What I'm trying to do is to make a ...
-1
votes
0
answers
15
views
cursor.execute("""CREATE TABLE IF NOT EXISTS equipment ( sqlite3.OperationalError: near "FOREIGN": syntax error [duplicate]
I can't see where I have gone wrong. First, it was saying the table didn't exist. Now an OperationalError: near "FOREIGN": syntax error displays.
#create equipment table
cursor.execute("...
-4
votes
0
answers
31
views
crash when sqlite3_mutex_enter(). 0xC0000005: Access violation writing location 0x00000014 [closed]
here my stack trace
when sqlite3_prepare_v3() in GetStatementImpl() I got an errorcode 21(SQLITE_MISUSE)
Why did I crash when executing EnterCriticalSection(&p->mutex)?
Is it because the mutex ...
1
vote
0
answers
34
views
How to install soci db library with vcpkg on Linux?
I'm trying to install soci[sqlite3] or even soci[sqlite3,boost] (according to external information about dependencies in vcpkg) on Linux with VCPKG. Unfortunately it is not working as it should. I ...
-1
votes
0
answers
27
views
How to link SQLite3 statically in CMake?
I'm using the latest Ubuntu with libsqlite3-dev package installed through atp-get, and I've verified that both libsqlite3.a and libsqlite3.so exist under /usr/lib/x86_64-linux-gnu/ folder on my Linux ...
0
votes
1
answer
26
views
Electron-react Sequelize Sqlite - problem packaging
I'm building electron app with sequelize and sqlite3.
I have configured everything,
app works perfectly fine when i start it up with npm start
however when I npm run package it and I try to turn it on,...
0
votes
1
answer
22
views
How to view data from SQlite database using expansiontile and listview in flutter
I'm beginner for flutter. I try to view data from SQlite database using expansiontile and listview. But not succeed.
dbhelper file
static Future<sql.Database> db() async {
return sql....
-4
votes
0
answers
24
views
How would you separate this data into John and Jane's eatting and spending habits on groceries via python? [closed]
Price Food_Type Eater Paid
10.99 Beverage Jane Jane
10.99 Beverage Jane Jane
9.29 Carb John Jane John
2.99 Carb John Jane John
2.99 Carb John Jane John
4....
0
votes
0
answers
19
views
Hibernate 6 - UnknownEntityTypeException: Unable to locate persister
I'm very new to all this and I don't really know what I'm doing, so forgive me if my problem seems trivial. I'm trying to set up a project using Spring, Hibernate 6 and SQLite and I get en error ...
0
votes
2
answers
15
views
peewee CharField() is not storing information
This is my model class:
class Product(BaseModel):
product_name = peewee.CharField(max_length=100, default="", index=True)
description = peewee.CharField(max_length=100, index=True)
...
0
votes
1
answer
32
views
Is it possible to open a SQLite DB from a zip file directly into memory? [closed]
I'm trying to open a SQLite DB that's inside a zip file. I don't want to extract the file or create a temp file, I want to have the DB exist entirely in memory. Is this possible?
I'm using C#/...
0
votes
0
answers
18
views
Using virtual ICollection with SQLite returns an error
I want to create a simple database with SQLite where 2 tables are linked like in Entity Framework. For this reason, I created 2 classes
public class Word
{
public virtual ICollection<...
0
votes
2
answers
28
views
Why does my Flutter Calendar app always throw a Multidex error and how can I fix it?
So i built a calendar app in Flutter with the table Calendar package and it wont work as soon as I implement the events into the calendar. Promptly I am faced with a multidex error and I don't know ...
0
votes
1
answer
35
views
SQLAlchemy: Declarative Many to Many map for Parent with two primary keys
I'm trying to declare a many to many relationship using SQLAlchemy where my parent RowHeader can create Child Economists via a relationship table. I keep running into errors around multiple join ...
-4
votes
1
answer
40
views
I am having issues with SQLITE3 interacting with my db file, as it seems to be giving me an error that is illogical [closed]
Traceback (most recent call last):
File "c:\Users\clove\PythonProjects\chatbot-database.py", line 105, in <module>
sqlInsertNoParent(id, parent_id, body, subreddit, score)
File ...
1
vote
1
answer
57
views
Intermittent table missing error in SQLite :memory: database
We are using SQLite 3.39.4 in Go via github.com/mattn/go-sqlite3 v1.14.16. Connection string is ":memory:?cache=shared&mode=rwc&_mutex=no&_journal=WAL&_sync=NORMAL"
We ...
-1
votes
0
answers
10
views
How to Fetch information from Different tables
enter image description here
I need code for solving this Question.
I need to Know how can i retrieve answer to this question that is shown in Image and whether we can use join functions for this or ...
0
votes
1
answer
35
views
Update issue using join in SQLite
Good morning all,
Apologies if this has been addressed, I am attempting to run the following query. I have duplicated my table in order to create a join.
I have identified the null Propertyaddress in ...
-2
votes
0
answers
45
views
Program does not see global variable
I assigned the file variable globally for other modules to see, but when I run the convert_recording module inside the data module, it does not see the file variable. I could not understand what the ...
0
votes
0
answers
18
views
Sqlite Xamarin o Maui backup [closed]
Título: Problema al realizar copia de seguridad de base de datos SQLite en MAUI
Descripción del problema:
Estoy desarrollando una aplicación en MAUI que utiliza una base de datos SQLite. Estoy ...
0
votes
1
answer
26
views
apsw.SQLError: SQLError: no such vfs: zipvfs when trying to read encrypted SQLite files on Windows using python & apsw
I have a code that works under linux and I am trying to port it to windows. It uses apsw to work with encrypted SQLite files.
flags = apsw.SQLITE_OPEN_READWRITE | apsw.SQLITE_OPEN_CREATE | apsw....