22.08.2016, 14:07
IDB
I created this in an attempt to remove excess code around SQL queries. I come from languages where you can pass anonymous functions, which are damn useful. I've tried to emulate it in PAWN.
The code is on github, or you can view it directly.
Readme is on github.
Quick example, loop through all results of a query:
Comments & pull requests welcome
I created this in an attempt to remove excess code around SQL queries. I come from languages where you can pass anonymous functions, which are damn useful. I've tried to emulate it in PAWN.
The code is on github, or you can view it directly.
Readme is on github.
Quick example, loop through all results of a query:
PHP код:
idb_all(values[2][MAX_PLAYER_NAME], "SELECT `name`, `points` FROM `users` WHERE `points` > 100;") {
printf("%s has %s points", values[0], values[1]);
}