Browse Source

use sql

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

4
src/lib/database/session.cpp

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

Loading…
Cancel
Save