[Include] IDB - Remove boilerplate code when using SQLite
#1

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:

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]);

Comments & pull requests welcome
Reply


Messages In This Thread
IDB - Remove boilerplate code when using SQLite - by Scranton - 22.08.2016, 14:07
Respuesta: IDB - Remove boilerplate code when using SQLite - by DarkChildren - 22.08.2016, 14:37
Re: IDB - Remove boilerplate code when using SQLite - by Stinged - 22.08.2016, 14:58
Re: IDB - Remove boilerplate code when using SQLite - by Scranton - 22.08.2016, 15:36

Forum Jump:


Users browsing this thread: 1 Guest(s)