Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
1639d775
Commit
1639d775
authored
Jun 09, 2021
by
Leon Do Castelo
Browse files
Update autosql.cpp
parent
72aaa648
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/autosql.cpp
View file @
1639d775
#include
<iostream>
#include
<autosql.h>
std
::
unique_ptr
<
Database
>
Database
::
instance
=
nullptr
;
Database
::
Database
(
std
::
string
path
)
:
db
(
QSqlDatabase
::
addDatabase
(
"QSQLITE"
))
{
db
.
setDatabaseName
(
path
.
c_str
());
if
(
!
db
.
open
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment