src/examples/occi_datatypes.cpp File Reference

#include <QApplication>
#include <QtSql>
#include <iostream>

Include dependency graph for occi_datatypes.cpp:

Go to the source code of this file.

Defines

#define HOST   "127.0.0.1"
#define DB   "xe"
#define PORT   1521
#define USER   "testbed"
#define PASSWD   "secret"

Functions

int main (int argc, char *argv[])

Variables

const char create_sql []
const char insert_sql_1 []
const char insert_sql_2 []
const char select_sql []
const char random_data [] = {43, 242, 13, 01, 00, 123, 2, 4}


Define Documentation

#define DB   "xe"

Definition at line 9 of file occi_datatypes.cpp.

Referenced by main().

#define HOST   "127.0.0.1"

Definition at line 8 of file occi_datatypes.cpp.

Referenced by main().

#define PASSWD   "secret"

Definition at line 12 of file occi_datatypes.cpp.

Referenced by main().

#define PORT   1521

Definition at line 10 of file occi_datatypes.cpp.

Referenced by main().

#define USER   "testbed"

Definition at line 11 of file occi_datatypes.cpp.

Referenced by main().


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 44 of file occi_datatypes.cpp.


Variable Documentation

const char create_sql[]

Initial value:

 
    "create table occi_datatype_example_tb ( \
        name       varchar(25), \
        age        number, \
        letter     char(2), \
        some_date  date, \
        some_time  timestamp, \
        bin_data   blob)"

Definition at line 14 of file occi_datatypes.cpp.

Referenced by main(), and test_create_table().

const char insert_sql_1[]

Initial value:

 
    "insert into occi_datatype_example_tb \
    (name, age, letter, some_date, some_time) \
    values \
    ('foobar', 25, 'jg', sysdate, sysdate)"

Definition at line 24 of file occi_datatypes.cpp.

Referenced by main().

const char insert_sql_2[]

Initial value:

 
    "insert into occi_datatype_example_tb \
    (name, age, letter, some_date, some_time, bin_data) \
    values \
    (:1, :2, :3, :4, :5, :6)"

Definition at line 31 of file occi_datatypes.cpp.

Referenced by main().

const char random_data[] = {43, 242, 13, 01, 00, 123, 2, 4}

Definition at line 42 of file occi_datatypes.cpp.

Referenced by main().

const char select_sql[]

Initial value:

 
    "select name, age, letter, some_date, some_time, bin_data \
    from occi_datatype_example_tb \
    where name = 'joe'"

Definition at line 37 of file occi_datatypes.cpp.

Referenced by main(), and test_blobs().


Generated on Tue Mar 18 22:47:09 2008 for QOpenOCCI by  doxygen 1.5.3