sqlite

SQLite.NET output parameter

陌路散爱 提交于 2020-05-17 06:38:09
问题 I have a object that contains data from a DB. The object has a ID, which in the DB is auto increment field. When creating an object i dont know his ID, until i insert a new record to the DB. Then i want to get back the auto generated value of ID field. I tried to do so by adding a Output parameter, but SQLite.NET throws a NotSupportedException when i try to set the Direction to ParameterDirection.Output . What can i do? The other fields except ID are not unique. A other option is to auto

What kind of queries in Core Data can profit from R-Tree index on attributes?

穿精又带淫゛_ 提交于 2020-05-15 12:24:59
问题 After reading this article https://www.sqlite.org/rtree.html about the R*Tree in SQLite, i am currently experimenting with a 2-Dim R-Tree in a Core Data model. Particularly i expected (maybe somewhat naively) some kind of select statement on the index table but i did not see any in the SQLite debug trace when executing a fetch statement on the Region entity with indexed attributes (see predicateBoundaryIdx in the code below). My questions are: how must a Core Data model (entities, attributes)

What kind of queries in Core Data can profit from R-Tree index on attributes?

大憨熊 提交于 2020-05-15 12:22:45
问题 After reading this article https://www.sqlite.org/rtree.html about the R*Tree in SQLite, i am currently experimenting with a 2-Dim R-Tree in a Core Data model. Particularly i expected (maybe somewhat naively) some kind of select statement on the index table but i did not see any in the SQLite debug trace when executing a fetch statement on the Region entity with indexed attributes (see predicateBoundaryIdx in the code below). My questions are: how must a Core Data model (entities, attributes)

PHP sqlite is returning all strings no matter what data type is defined

放肆的年华 提交于 2020-05-15 05:35:14
问题 I'm running unit tests using the sqlite in memory database and I've run into an issue. When I perform the tests using a mysql database, the following comparison works properly if ($item->user_id === Auth::id()) It will evaluate to true if the numbers match and false if they don't. When I use the sqlite in memory database the conditional statement will always return false because the user_id attribute is returned as a string instead of the proper int data type. I've read a few posts and

how to use tkinter with sqlite in python

旧巷老猫 提交于 2020-05-14 11:47:30
问题 I had issues with delivering tkinter entry to sqlite My goal is build user interface to collect data and delete, show, update, I will keep learning. I think my problem in def savedata (): I changed what inside brackets I tried change this also c.execute('INSERT INTO data (fname, sname) VALUES (?,?)', (firstname_entry, secondnamename_entry)) conn.commit() . thank for helping . import random import tkinter as tk from tkinter import * from tkinter import messagebox import sqlite3 def conacona():

how to use tkinter with sqlite in python

北城以北 提交于 2020-05-14 11:45:25
问题 I had issues with delivering tkinter entry to sqlite My goal is build user interface to collect data and delete, show, update, I will keep learning. I think my problem in def savedata (): I changed what inside brackets I tried change this also c.execute('INSERT INTO data (fname, sname) VALUES (?,?)', (firstname_entry, secondnamename_entry)) conn.commit() . thank for helping . import random import tkinter as tk from tkinter import * from tkinter import messagebox import sqlite3 def conacona():

how to use tkinter with sqlite in python

久未见 提交于 2020-05-14 11:45:10
问题 I had issues with delivering tkinter entry to sqlite My goal is build user interface to collect data and delete, show, update, I will keep learning. I think my problem in def savedata (): I changed what inside brackets I tried change this also c.execute('INSERT INTO data (fname, sname) VALUES (?,?)', (firstname_entry, secondnamename_entry)) conn.commit() . thank for helping . import random import tkinter as tk from tkinter import * from tkinter import messagebox import sqlite3 def conacona():

Page becomes unresponsive when data added to amChart4 through socket

佐手、 提交于 2020-05-14 09:09:45
问题 I'm displaying 3 charts (Gauge chart, Pie chart, XYChart) -using amChart4 and I'm fetching data from backend (sqlite3). Here I'm using some real time data i.e., for every minute data is added in database and I'm fetching that data and displaying it in chart. In order to fetch regularly I'm using socket . After some time page becomes unresponsive (chrome alert msg). It crashes. Below is my code for the client-side (Front end). product.service.ts init() { this.getConfig(); this._todayWithSec =

Page becomes unresponsive when data added to amChart4 through socket

谁都会走 提交于 2020-05-14 09:09:06
问题 I'm displaying 3 charts (Gauge chart, Pie chart, XYChart) -using amChart4 and I'm fetching data from backend (sqlite3). Here I'm using some real time data i.e., for every minute data is added in database and I'm fetching that data and displaying it in chart. In order to fetch regularly I'm using socket . After some time page becomes unresponsive (chrome alert msg). It crashes. Below is my code for the client-side (Front end). product.service.ts init() { this.getConfig(); this._todayWithSec =

Using a Primary Key with a WithoutRowID

风流意气都作罢 提交于 2020-05-13 18:54:04
问题 I am trying to squeeze every little bit of performance out of SQLite and I have a problem which seems to be odd, in that the functionality seems pointless in SQLite. Take for example: CREATE TABLE "A_TEST" ( "ID" INTEGER PRIMARY KEY , "X" TEXT NULL) WITHOUT ROWID then try to insert a record: Insert into A_TEST (X) VALUES('Test String') You will get an error of "NOT NULL constraint failed" Does this mean, with a WithoutRowID , I have to specify my own Primary Key Value when inserting? The