mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-09-09 20:49:38 -04:00
Outdated Visual Studio Solution
This commit is contained in:
parent
a2446187fa
commit
cffc0ae0d0
@ -185,6 +185,14 @@
|
|||||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||||
>
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\SQLiteC++\Column.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\SQLiteC++\Column.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\SQLiteC++\Database.cpp"
|
RelativePath=".\src\SQLiteC++\Database.cpp"
|
||||||
>
|
>
|
||||||
|
@ -72,7 +72,7 @@ int main (void)
|
|||||||
|
|
||||||
// Get a single value result with an easy to use shortcut
|
// Get a single value result with an easy to use shortcut
|
||||||
std::string value = db.execAndGet("SELECT value FROM test WHERE id=2");
|
std::string value = db.execAndGet("SELECT value FROM test WHERE id=2");
|
||||||
std::cout << "execAndGet=" << value << std::endl;
|
std::cout << "execAndGet=" << value.c_str() << std::endl;
|
||||||
|
|
||||||
// Compile a SQL query, containing one parameter (index 1)
|
// Compile a SQL query, containing one parameter (index 1)
|
||||||
SQLite::Statement query(db, "SELECT * FROM test WHERE size > ?");
|
SQLite::Statement query(db, "SELECT * FROM test WHERE size > ?");
|
||||||
@ -137,7 +137,7 @@ int main (void)
|
|||||||
// make a COPY OF THE result, else it will be destroy before the next line
|
// make a COPY OF THE result, else it will be destroy before the next line
|
||||||
// (when the underlying temporary Statement and Column objects are destroyed)
|
// (when the underlying temporary Statement and Column objects are destroyed)
|
||||||
std::string value = db.execAndGet("SELECT value FROM test WHERE id=2");
|
std::string value = db.execAndGet("SELECT value FROM test WHERE id=2");
|
||||||
std::cout << "execAndGet=" << value << std::endl;
|
std::cout << "execAndGet=" << value.c_str() << std::endl;
|
||||||
}
|
}
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user