Your CREATE TABLE is incorrect: it does not specify a name for the first column (integer primary key). SQLite now believes that the field is named integer and does not have a specific data type. You probably wanted to have an INTEGER PRIMARY KEY field because it is very efficient. To do this, follow the CREATE TABLE syntax and give it a name:
CREATE TABLE items
( id INTEGER PRIMARY KEY
, x DOUBLE
, y DOUBLE
);
: X Y , , . , , . , , , INTEGER. - , , .
, INSERT ( ), SQLite - .
, , , , "" ( ) ?!?
:, , X Y , SQL:
curs.execute("INSERT INTO items (X, Y) VALUES (:X, :Y)", {X: X, Y: Y})
id, SQLite , . , . , , !
:X :Y SQL X Y , execute.
, SQL.