Files
harbour-core/harbour/contrib/examples/hbsqlit2
Viktor Szakats 5abf42320a 2009-03-02 16:56 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
- obj
  - make_b32.bat
  - make_b32.mak
  - make_gcc.sh
  - make_gcc.mak
  - make_vc.bat
  - make_vc.mak
  - common.mak
  - contrib/mtpl_b32.mak
  - contrib/mtpl_b32.bat
  - contrib/make_b32_all.bat
  - contrib/mtpl_gcc.mak
  - contrib/mtpl_gcc.sh
  - contrib/make_gcc_all.sh
  - contrib/mtpl_vc.mak
  - contrib/mtpl_vc.bat
  - contrib/make_vc_all.bat
  - contrib/hbmysql/common.mak
  - contrib/hbmysql/make_gcc.sh
  - contrib/hbmysql/make_b32.bat
  - contrib/hbmysql/make_vc.bat
  - contrib/gtalleg/common.mak
  - contrib/gtalleg/make_gcc.sh
  - contrib/gtalleg/make_b32.bat
  - contrib/gtalleg/make_vc.bat
  - contrib/hbct/make_b32.bat
  - contrib/hbct/make_gcc.sh
  - contrib/hbct/make_vc.bat
  - contrib/hbct/common.mak
  - contrib/hbodbc/common.mak
  - contrib/hbodbc/make_gcc.sh
  - contrib/hbodbc/make_b32.bat
  - contrib/hbodbc/make_vc.bat
  - contrib/xhb/make_b32.bat
  - contrib/xhb/make_gcc.sh
  - contrib/xhb/make_vc.bat
  - contrib/xhb/common.mak
  - contrib/hbtpathy/common.mak
  - contrib/hbtpathy/make_gcc.sh
  - contrib/hbtpathy/make_b32.bat
  - contrib/hbtpathy/make_vc.bat
  - contrib/hbgt/make_b32.bat
  - contrib/hbgt/common.mak
  - contrib/hbgt/make_gcc.sh
  - contrib/hbgt/make_vc.bat
  - contrib/hbmsql/common.mak
  - contrib/hbmsql/make_gcc.sh
  - contrib/hbmsql/make_b32.bat
  - contrib/hbmsql/make_vc.bat
  - contrib/hbsqlit3/common.mak
  - contrib/hbsqlit3/make_gcc.sh
  - contrib/hbsqlit3/make_b32.bat
  - contrib/hbsqlit3/make_vc.bat
  - contrib/hbole/common.mak
  - contrib/hbole/make_gcc.sh
  - contrib/hbole/make_b32.bat
  - contrib/hbole/make_vc.bat
  - contrib/hbmzip/make_b32.bat
  - contrib/hbmzip/common.mak
  - contrib/hbmzip/make_gcc.sh
  - contrib/hbmzip/make_vc.bat
  - contrib/hbblat/common.mak
  - contrib/hbblat/make_b32.bat
  - contrib/hbblat/make_vc.bat
  - contrib/hbfbird/common.mak
  - contrib/hbfbird/make_gcc.sh
  - contrib/hbfbird/make_b32.bat
  - contrib/hbfbird/make_vc.bat
  - contrib/hbapollo/common.mak
  - contrib/hbapollo/make_gcc.sh
  - contrib/hbapollo/make_b32.bat
  - contrib/hbapollo/make_vc.bat
  - contrib/hbziparc/common.mak
  - contrib/hbziparc/make_gcc.sh
  - contrib/hbziparc/make_b32.bat
  - contrib/hbziparc/make_vc.bat
  - contrib/hbnf/make_b32.bat
  - contrib/hbnf/make_gcc.sh
  - contrib/hbnf/make_vc.bat
  - contrib/hbnf/common.mak
  - contrib/hbcurl/common.mak
  - contrib/hbcurl/make_gcc.sh
  - contrib/hbcurl/make_b32.bat
  - contrib/hbcurl/make_vc.bat
  - contrib/rddsql/common.mak
  - contrib/rddsql/sddmy/common.mak
  - contrib/rddsql/sddmy/make_gcc.sh
  - contrib/rddsql/sddmy/make_b32.bat
  - contrib/rddsql/sddmy/make_vc.bat
  - contrib/rddsql/sddpg/common.mak
  - contrib/rddsql/sddpg/make_gcc.sh
  - contrib/rddsql/sddpg/make_b32.bat
  - contrib/rddsql/sddpg/make_vc.bat
  - contrib/rddsql/sddfb/common.mak
  - contrib/rddsql/sddfb/make_b32.bat
  - contrib/rddsql/sddfb/make_vc.bat
  - contrib/rddsql/make_gcc.sh
  - contrib/rddsql/make_b32.bat
  - contrib/rddsql/make_vc.bat
  - contrib/hbhpdf/common.mak
  - contrib/hbhpdf/make_gcc.sh
  - contrib/hbhpdf/make_b32.bat
  - contrib/hbhpdf/make_vc.bat
  - contrib/rddado/common.mak
  - contrib/rddado/make_gcc.sh
  - contrib/rddado/make_b32.bat
  - contrib/rddado/make_vc.bat
  - contrib/gtwvg/make_b32.bat
  - contrib/gtwvg/make_gcc.sh
  - contrib/gtwvg/make_vc.bat
  - contrib/gtwvg/common.mak
  - contrib/hbpgsql/common.mak
  - contrib/hbpgsql/make_gcc.sh
  - contrib/hbpgsql/make_b32.bat
  - contrib/hbpgsql/make_vc.bat
  - contrib/hbclipsm/make_b32.bat
  - contrib/hbclipsm/common.mak
  - contrib/hbclipsm/make_gcc.sh
  - contrib/hbclipsm/make_vc.bat
  - contrib/rddads/make_b32.bat
  - contrib/rddads/common.mak
  - contrib/rddads/make_gcc.sh
  - contrib/rddads/make_vc.bat
  - contrib/hbfimage/common.mak
  - contrib/hbfimage/make_gcc.sh
  - contrib/hbfimage/make_b32.bat
  - contrib/hbfimage/make_vc.bat
  - contrib/hbgd/make_b32.bat
  - contrib/hbgd/common.mak
  - contrib/hbgd/make_gcc.sh
  - contrib/hbgd/make_vc.bat
  - contrib/hbmisc/make_b32.bat
  - contrib/hbmisc/common.mak
  - contrib/hbmisc/make_gcc.sh
  - contrib/hbmisc/make_vc.bat
  - contrib/hbgf/hbgfwin/common.mak
  - contrib/hbgf/hbgfwin/make_b32.bat
  - contrib/hbgf/hbgfwin/make_vc.bat
  - contrib/hbtip/make_b32.bat
  - contrib/hbtip/common.mak
  - contrib/hbtip/make_gcc.sh
  - contrib/hbtip/make_vc.bat
  - contrib/hbwin/make_b32.bat
  - contrib/hbwin/common.mak
  - contrib/hbwin/make_gcc.sh
  - contrib/hbwin/make_vc.bat
  - contrib/hbbmcdx/common.mak
  - contrib/hbbmcdx/make_gcc.sh
  - contrib/hbbmcdx/make_b32.bat
  - contrib/hbbmcdx/make_vc.bat
  - contrib/hbvpdf/common.mak
  - contrib/hbvpdf/make_gcc.sh
  - contrib/hbvpdf/make_b32.bat
  - contrib/hbvpdf/make_vc.bat
  - contrib/hbssl/common.mak
  - contrib/hbssl/make_gcc.sh
  - contrib/hbssl/make_b32.bat
  - contrib/hbssl/make_vc.bat
  - contrib/hbbtree/common.mak
  - contrib/hbbtree/make_gcc.sh
  - contrib/hbbtree/make_b32.bat
  - contrib/hbbtree/make_vc.bat
  - contrib/hbcrypt/make_b32.bat
  - contrib/hbcrypt/common.mak
  - contrib/hbcrypt/make_gcc.sh
  - contrib/hbcrypt/make_vc.bat
  - contrib/hbwhat/make_b32.bat
  - contrib/hbwhat/make_gcc.sh
  - contrib/hbwhat/make_vc.bat
  - contrib/hbwhat/common.mak
  - contrib/examples/hbsqlit2/common.mak
  - contrib/examples/hbsqlit2/make_gcc.sh
  - contrib/examples/hbsqlit2/make_b32.bat
  - contrib/examples/hbsqlit2/make_vc.bat
    - Deleted components of "non-GNU" (MSVC, BCC and GCC
      specific) make systems. Leaving GNU Make as the
      unified make platform for Harbour.
      This also means that Harbour is now much portable
      in the sense that with a few rare exceptions all tasks should
      be carried exactly the same way across the OSes.
      Platform specific script file statistics before:
      - Bash          54  (end-user oriented: 49 - including package creation)
      - Windows/DOS  105  (end-user oriented: 90)
      - OS/2           2  (end-user oriented:  1)
      Platform specific script file statistics now:
      - Bash          14  (end-user oriented:  9 - including package creation)
      - Windows/DOS   19  (end-user oriented:  4)
      - OS/2           2  (end-user oriented:  1)
      Some of these will be further cleaned (hbdoc related: 5,
      hbmk compatibility: 2)
2009-03-02 16:43:47 +00:00
..

/*
 * $Id$
 */

/*
 *------------------------------------------------------------------------
 *                  HARBOUR INTERFACE for SQLITE  
 *------------------------------------------------------------------------
 *
 * Copyright 2003 Alejandro de Garate <alex_degarate@hotmail.com>
 *
 * License: General Public License or for short GPL (GNU)
 * 
 * Developed using:
 *     Harbour 0.42 or upper 
 *     Borland C++ BCC 5.5.1 
 *
 */

 Requirements
 ------------
 Any windows platform W95, W98, W98SE or NT family 
 A C++ compiler, if you use other than Borland some minor changes could
 be required. 


 The program
 -----------
 The source program is quite small (about 50 Kbytes) and a litle basic, 
 but gives an easy way of accessing a SQL Database, like SQLite.
 Inside the prg you can find several C functions used to connect to the 
 database, and Clipper/Harbour code used for calling C functions.
 Most of the code is commented and is easy to follow.
 Of course many enhancement would be done, I will do if I found spare 
 time :)
 The library that come with the program it's based in the SQLite version
 2.8.6


 Purpose
 -------
 To access a sqlite database using Clipper/Harbour language.


 Use
 ---
 This program is mostly self-contained.
 For using you needs:
  1- Borland C++ Compiler BCC 5.5 or upper   (working)
  2- Harbour version 0.42 or upper  (working)
  3- hbsqlite.prg (main program /front end)
  4- hbsqlite.ch  (some defines)
  5- sqlite.lib   (library builded for BCC55 and windows platform)
  6- sqlite.h     (include file for sqlite code)
  7- sqliteInt.h  (include file for sqlite code)
  8- example.db   (a simple sqlite database for testings )

 Steps:
 1.- Unzip the package to the target directory (ie.: \sqlite)

 2.- Keep the zip file at safe place :)

 3.- Add sqlite.lib to the list of libraries 
     You also needs to add sqlite.lib to the list of libraries inside 
     the build.bat file at harbour\bin directory.

 4.- Move the static library sqlite.lib to the harbour\lib directory.

 5.- If you have (1) & (2) working, just compile hbsqlite.prg using:
      bld_b32 hbsqlite   // without extension


 Information about SQLITE
 ------------------------
 1. web site at www.sqlite.org

 2. User list for sqlite (do not ask about harbour stuffs) 
    subscribe at:
 <sqlite-users-subscribe@sqlite.org>         (one by one)

 <sqlite-users-digest-subscribe@sqlite.org>  (digest mode)


 What is inside the source package ?
 -----------------------------------
 Inside the hbsqlite_src.zip file you will find:

    File               Size     Description
 --------------------------------------------------------------------------
 1- hbsqlite.prg       46.401   (main program /front end)
 2- hbsqlite.ch         3.369   (some defines)
 3- sqlite.lib        352.256   (lib builded for BCC55 and windows platform)
 4- sqlite.h           31.222   (include file for sqlite code)
 5- sqliteInt.h        53.893   (include file for sqlite code)
 6- gpl.txt            17.989   (a copy of GPL license)
 7- todo.txt                    (a list of pending things )
 8- readme_en.txt               (this readme)

 Note:
 You may want also the sqlite manager and the sample database, in that 
 case you must download the binary package.


 What is inside the binary package ?
 -----------------------------------
 Inside the hbsqlite_bin.zip file you will find:

    File               Size     Description
 --------------------------------------------------------------------------
 1- hbsqlite.exe      741.376   (harbour front end to sqlite)
 2- sqlite.exe        285.444   (a comand-line Sqlite manager) 
 3- example.db         77.824   (a simple sqlite database for testings)
 4- test.db                     (another sqlite database for testings)
 5- readme_en.txt               (this readme)

 Final comments
 --------------
 You can adapt the program to your needs, but if you made any 
 improvements, fixes or found any error, let me know so I can add it
 to the program.
 Anyway if you want to ask something, or think a feature is missing
 send me a mail.

 Enjoy it!
 
 Alejandro