Diffstat (limited to 'libopie2/examples/opiedb/sqltest/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/examples/opiedb/sqltest/main.cpp | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/libopie2/examples/opiedb/sqltest/main.cpp b/libopie2/examples/opiedb/sqltest/main.cpp deleted file mode 100644 index f4338e9..0000000 --- a/libopie2/examples/opiedb/sqltest/main.cpp +++ b/dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | /* | ||
2 | =. This file is part of the Opie Project | ||
3 | .=l. Copyright (C) 2004 Opie Team <opie-devel@handhelds.org> | ||
4 | .>+-= | ||
5 | _;:, .> :=|. This library is free software; you can | ||
6 | .> <`_, > . <= redistribute it and/or modify it under | ||
7 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
8 | .="- .-=="i, .._ License as published by the Free Software | ||
9 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
10 | ._= =} : or (at your option) any later version. | ||
11 | .%`+i> _;_. | ||
12 | .i_,=:_. -<s. This library is distributed in the hope that | ||
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
14 | : .. .:, . . . without even the implied warranty of | ||
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
17 | ..}^=.= = ; Library General Public License for more | ||
18 | ++= -. .` .: details. | ||
19 | : = ...= . :.=- | ||
20 | -. .:....=;==+<; You should have received a copy of the GNU | ||
21 | -_. . . )=. = Library General Public License along with | ||
22 | -- :-=` this library; see the file COPYING.LIB. | ||
23 | If not, write to the Free Software Foundation, | ||
24 | Inc., 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | ||
26 | |||
27 | */ | ||
28 | |||
29 | /* OPIE */ | ||
30 | #include <opie2/osqlmanager.h> | ||
31 | #include <opie2/osqlquery.h> | ||
32 | #include <opie2/osqldriver.h> | ||
33 | #include <opie2/osqlresult.h> | ||
34 | #include <opie2/odebug.h> | ||
35 | |||
36 | #include <qpe/qpeapplication.h> | ||
37 | |||
38 | /* QT */ | ||
39 | #include <qdir.h> | ||
40 | |||
41 | using namespace Opie::DB; | ||
42 | int main( int argc, char* argv[] ) { | ||
43 | |||
44 | QPEApplication app( argc, argv ); | ||
45 | OSQLManager man; | ||
46 | man.registerPath( QDir::currentDirPath() ); | ||
47 | OSQLBackEnd::ValueList list = man.queryBackEnd(); | ||
48 | |||
49 | OSQLDriver *driver = man.standard(); | ||
50 | owarn << "testmain" + driver->id() << oendl; | ||
51 | driver->setUrl("/home/ich/test2vhgytry"); | ||
52 | if ( driver->open() ) { | ||
53 | owarn << "could open" << oendl; | ||
54 | }else | ||
55 | owarn << "wasn't able to open" << oendl; | ||
56 | OSQLRawQuery raw("select * from t2" ); | ||
57 | OSQLResult res = driver->query( &raw ); | ||
58 | |||
59 | OSQLRawQuery raw2( "insert into t2 VALUES(ROWID,'Meine Mutter') "); | ||
60 | res = driver->query(&raw2); | ||
61 | |||
62 | }; | ||