File: CODE_DESCRIPTION.txt

package info (click to toggle)
tcl-sql 20000621-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 612 kB
  • ctags: 81
  • sloc: cpp: 399; makefile: 60; tcl: 19; csh: 2
file content (25 lines) | stat: -rw-r--r-- 864 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Brief Description of Design and Flow of Code:
--------------------------------------------

The interface for the sql interface is described in 
sql-interface.h:Sql_interface :

// This is the 'interface' that each database class has to provide.
// Inherit from this class in your database class and provide all
// of the functions listed here.


This implementation of this interface for MySQL is 
in files sql-mysql.{h,cxx} .


sql.cc contains the the functions for connecting from Sql_interface
to Tcl. Each 'sql' command has a corresponding implementation here.
These functions handle the transport of data to and from Tcl; no
code for direct interaction with the database is found in this file.


sql-manager.{h,cxx} implement the management classes for connections
to the database. The 'Manager_sql' manages which connections are
free and which are in use.