OS4 DepotLogo by DaveyD 
(anonymous IP: 18.226.17.251,2258) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (602)
   o Document (24)
   o Driver (97)
   o Emulation (149)
   o Game (1011)
   o Graphics (500)
   o Library (118)
   o Network (234)
   o Office (66)
   o Utility (932)
   o Video (69)

Total files: 4399

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Development » Library » Misc » wrap_sql.tar.gz

Wrap_sql

Description: SQL interface to various SQL databases
Download: wrap_sql.tar.gz       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 5kb
Version: 1.0
Date: 19 May 2005
Author: DaveP
Submitter: DaveP
Email: wrap_sql/happybiscuit com
Category: development/library/misc
License: Freeware
Distribute: yes
Min OS Version: 4.0
FileID: 766
 
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 227  (Current version)
227  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
( note, currently only sqlite3 implemented, but its the same interface for
  all so your applications should be portable once you use this interface. )

Welcome to the first version of wrap_sql for sqlite3. Eventually wrap_sql will
support dynamic loading ( kinda like ODBC ) of mysql, postgresql and other
clients but I thought I'd start here. Its used as part of a component object
model application server designed for AmigaOS.

What it does is unify the access model for SQL engines ( such as sqlite3 ) and
where there is
the need to implement callbacks in the underlying interface ( such as sqlite3 )
it hides this.

Its very much in syntax what you expect from the mysql interface, but simplified
to what is 
actually necessary.

The header file you need for compilation is here, in include, and its very very
clear on what
to do. If you struggle, Ive included my test code in sample. That shows the
sequence of commands you should follow.

Remember, its always wise to clean up memory after yourself and take copies
where needed.

To build with it, you need to link your final code with libsqlite3.a ( found on
OS4DEPOT ) and libwrap_sql.a using -lsqlite3 and -lwrap_sql ( making sure that
-L on your compile command line
is set up to find those two libraries ) but you do not need to INCLUDE the
sqlite3 header file, just
the wrap_sql.h header file.

Enjoy, report any bugs to me, the author, at wrap_sql()happybiscuit.com.

Its freeware, if you ask for the source, you can have it.







Copyright © 2004-2024 by Björn Hagström All Rights Reserved