Hello I am getting an error in my EJS response file I am trying to display my form data that makes a request to my database on the server side and I am getting this error here is the Form Code and the Server side
My problem mainly is performance related, I have this code running on the main ElectronJS proccess :
ipcMain.handle('add_product', async (event, args)=>{
return new Promise((resolve, reject)=>{
try {
…
I am using this library for connecting my node js application to an sqlite database. I saw its documentation for how to use prepared statements here but it is very brief and I cannot understand how to use it for my use case.
Lets say I have an sql…
I'm a discord bot developer and I use an SQLite database for my bot. I installed sqlite3 by npm command and I worked with it, there was no problem, but now I can't use it because it modifies values. I have a bit of code here:
const ghostChannels =…
Following the indications found here: Sqlite Error: file is not a database I double-checked that the path does not contain .db extension:
export const getInfopiecesDbpath = () {
const isEnvDevelopment = process.env.NODE_ENV === 'development'
…
what i want:
1 - client request data
2 - server.js requests dbcontroller.js for data
3 - dbcontroller.js requests db for data
4 - db returns data to db controller
5 - dbcontroller returns the data to server.js
6 - server.js responds with data to…
I have a .db file stored in an S3 bucket. I am trying to download it to a project so I can use it for a SQLite DB. THe problem is that when I download it and use it I get the next error:
SQLITE_CORRUPT: database disk image is malformed
When I try…
Using nodejs with the node-sqlite3 library and given a sqlite table with a column timestamp that contains a timestamp string, such as:
+-----------------------------------+--------+ +
| timestamp | score | ....…
I have a table like this:
TestTable
---------
data (TEXT)
All data values are JSON objects like { a:1, b:2, c:3 }.
I want to be able to query the database and ORDER BY data->b DESC without a full table scan (indexed).
Is this possible in SQLite…
I'm trying to install sqlite3 with npm on mac however the following error follows
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions…
I got a Node script with an Express server, im trying to insert a new entry into a Table.
If got folloing setup:
db.run('CREATE TABLE lists(id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL)');
...
db.get(`INSERT INTO lists (name) VALUES (?)…
I'm using SQLite3 on NodeJS and have a database in memory with a relation between table1 and table2. fk field in table2 is id in table1.
table1 :
id
value1
value2
1
v1_t1
v2_t1
table2 :
id
value1
fk
1
v1_t2
1
2
v2_t2
1
When…
I have found similar question on stackoverflow but it is solely focused on performance and answer is pretty obvious: creating new connection for each query = slower performance (how much slower? it depends)
I am more worried about transaction…
I have been able to connect to my sqlite3 database with node.js, I want to use the information from the records in a separate ejs file (index.ejs). Does anyone know if this is possible?
code:
//register sqlite3
const sqlite3 =…
I am writing some database middleware for some expressjs app that is based on sqlite3.
This is my directory structure:
| app
| database
index.js
| routes
index.js
database/index.js…