Browse Source

use sql

CPP-GTK4
yggverse 3 months ago
parent
commit
c477c70c56
  1. 4
      src/lib/database/session.cpp

4
src/lib/database/session.cpp

@ -7,14 +7,14 @@ Session::Session(
) { ) {
status = sqlite3_exec( status = sqlite3_exec(
connection, connection,
R"( R"SQL(
CREATE TABLE IF NOT EXISTS `session` CREATE TABLE IF NOT EXISTS `session`
( (
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
`time` INTEGER NOT NULL, `time` INTEGER NOT NULL,
`request` VARCHAR(1024) `request` VARCHAR(1024)
) )
)", )SQL",
nullptr, nullptr,
nullptr, nullptr,
&error &error

Loading…
Cancel
Save