SAMP Gitlab CI Test
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.0 KiB

5 years ago
  1. // SA-MP Native SQLite Database Functions
  2. //
  3. // (c) Copyright 2015, SA-MP Team
  4. //
  5. #if defined _sampdb_included
  6. #endinput
  7. #endif
  8. #define _sampdb_included
  9. #pragma library sampdb
  10. native DB:db_open(name[]);
  11. native db_close(DB:db);
  12. native DBResult:db_query(DB:db, query[]);
  13. native db_free_result(DBResult:dbresult);
  14. native db_num_rows(DBResult:dbresult);
  15. native db_next_row(DBResult:dbresult);
  16. native db_num_fields(DBResult:dbresult);
  17. native db_field_name(DBResult:dbresult, field, result[], maxlength);
  18. native db_get_field(DBResult:dbresult, field, result[], maxlength);
  19. native db_get_field_int(DBResult:result, field = 0);
  20. native Float:db_get_field_float(DBResult:result, field = 0);
  21. native db_get_field_assoc(DBResult:dbresult, const field[], result[], maxlength);
  22. native db_get_field_assoc_int(DBResult:result, const field[]);
  23. native Float:db_get_field_assoc_float(DBResult:result, const field[]);
  24. native db_get_mem_handle(DB:db);
  25. native db_get_result_mem_handle(DBResult:result);
  26. native db_debug_openfiles();
  27. native db_debug_openresults();