Branch: Tag:

2016-04-09

2016-04-09 11:42:22 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Mysql: Use the new __builtin.Sql API.

182:      #define PIKE_MYSQL THIS_MYSQL_MYSQL    +  DECLARE_STORAGE; +  +  /* @decl inherit __builtin.Sql.Connection +  */ +  INHERIT "__builtin.Sql.Connection"; +     /*    * Functions    */
1158:    }   }    + /*! @decl variant Result big_query(string query) +  */   PIKEFUN object big_query(string query) -  +  flags ID_VARIANT;   {    low_query(args, "big_query", PIKE_MYSQL_FLAG_STORE_RESULT);   }    -  + /*! @decl variant Result streaming_query(string query) +  */   PIKEFUN object streaming_query(string query) -  +  flags ID_VARIANT;   {    low_query(args, "streaming_query", 0);   }    -  + /*! @decl variant Result big_typed_query(string query) +  */   PIKEFUN object big_typed_query(string query) -  +  flags ID_VARIANT;   {    low_query(args, "big_typed_query",    PIKE_MYSQL_FLAG_STORE_RESULT | PIKE_MYSQL_FLAG_TYPED_RESULT);   }    -  + /*! @decl variant Result streaming_typed_query(string query) +  */   PIKEFUN object streaming_typed_query(string query) -  +  flags ID_VARIANT;   {    low_query(args, "streaming_typed_query", PIKE_MYSQL_FLAG_TYPED_RESULT);   }