09.02.2012, 12:21
Update!
SQLitei has now taken a big step towards stability!
Highlights:
SQLitei has now taken a big step towards stability!
Highlights:
- Improved stability on freeing results:
- Freeing results twice will not crash the server anymore - it will just generate a warning.
- Freeing a result that will be autoreleased will remove it from the autorelease pool.
- Added db_query_int and db_query_float.
- Added db_get_struct_info and db_set_struct_info; used mainly internally.
- Added db_exec and db_insert.
- Performance improvements!
pawn Код:
new uid = db_insert(db, "INSERT INTO blabla VALUES blabla");
if (uid) {
// uid is now the index for whatever we just inserted
}
pawn Код:
printf("%d", db_query_int(db, "SELECT COUNT(*) FROM something"));