Branch: Tag:

2001-09-06

2001-09-06 20:11:00 by Martin Nilsson <mani@lysator.liu.se>

Autodoc

Rev: lib/modules/Sql.pmod/module.pmod:1.2
Rev: lib/modules/Sql.pmod/mysql.pike:1.14
Rev: lib/modules/Sql.pmod/sql_result.pike:1.9
Rev: lib/modules/Sql.pmod/sql_util.pmod:1.9

1: - /* Compatibility (We really need a better way to do this..) */ +     -  + // Compatibility + // FIXME: We really need a better way to do this..   mapping tmp;   mixed `->(string s)   {
13:    return tmp;    }   } +  +  + //! The SQL module is a unified interface between pike and all + //! its supported databases. The parts of this module that is + //! usuable for all normal uses is the @[Sql] class and the + //! @[sql_result] class. + //! + //! @example + //! string people_in_group(string group) { + //! Sql.Sql db = Sql.Sql("mysql://localhost/testdb"); + //! return db->query("SELECT name FROM users WHERE " + //! "group=%s", group)->name * ","; + //! }