3709192002-03-20Martin Nilsson #pike __REAL_VERSION__
4a6fee2001-01-17Fredrik Hübinette (Hubbe) 
36d2b82001-09-06Martin Nilsson // Compatibility // FIXME: We really need a better way to do this..
4a6fee2001-01-17Fredrik Hübinette (Hubbe) mapping tmp; mixed `->(string s) { if(s=="_module_value") { if(!tmp) { tmp=([]); tmp->sql=(program)"Sql"; } return tmp; }
48c2b92003-03-27Martin Stjernholm  return UNDEFINED;
4a6fee2001-01-17Fredrik Hübinette (Hubbe) }
36d2b82001-09-06Martin Nilsson  //! 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 * ","; //! }