daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Dec 5th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;; Vehicle related queries
  3. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  4.  
  5. [insertVehicle]
  6. SQL1_1 = INSERT INTO vehicle SET
  7. SQL1_2 = class = ?,
  8. SQL1_3 = account_uid = ?,
  9. SQL1_4 = is_locked = ?,
  10. SQL1_5 = position_x = ?,
  11. SQL1_6 = position_y = ?,
  12. SQL1_7 = position_z = ?,
  13. SQL1_8 = direction_x = ?,
  14. SQL1_9 = direction_y = ?,
  15. SQL1_10 = direction_z = ?,
  16. SQL1_11 = up_x = ?,
  17. SQL1_12 = up_y = ?,
  18. SQL1_13 = up_z = ?,
  19. SQL1_14 = pin_code = ?
  20. Number of Inputs = 13
  21. SQL1_INPUTS = 1,2,3,4,5,6,7,8,9,10,11,12,13
  22. Return InsertID = true
  23.  
  24. [deleteVehicle]
  25. SQL1_1 = DELETE FROM vehicle WHERE id = ?
  26. Number Of Inputs = 1
  27. SQL1_INPUTS = 1
  28.  
  29. [loadVehicleIdPage]
  30. SQL1_1 = SELECT id FROM vehicle WHERE deleted_at IS NULL AND territory_id IS NULL LIMIT ?,?
  31. Number Of Inputs = 2
  32. SQL1_INPUTS = 1,2
  33. OUTPUT = 1
  34.  
  35. [loadVehicle]
  36. SQL1_1 = SELECT id,class,spawned_at,account_uid,is_locked,fuel,damage,hitpoints,position_x,position_y,position_z,direction_x,direction_y,direction_z,up_x,up_y,up_z,cargo_items,cargo_magazines,cargo_weapons,pin_code,vehicle_texture,deleted_at,money FROM vehicle WHERE id = ?
  37. Number Of Inputs = 1
  38. SQL1_INPUTS = 1
  39. OUTPUT = 1,2-STRING,3-STRING,4-STRING,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21-STRING,22,23,24
  40.  
  41. [loadVehicleContainer]
  42. SQL1_1 = SELECT cargo_container FROM vehicle WHERE id = ?
  43. Number Of Inputs = 1
  44. SQL1_INPUTS = 1
  45. OUTPUT = 1
  46.  
  47. [updateVehicle]
  48. SQL1_1 = UPDATE vehicle SET
  49. SQL1_2 = is_locked = ?,
  50. SQL1_3 = fuel = ?,
  51. SQL1_4 = damage = ?,
  52. SQL1_5 = hitpoints = ?,
  53. SQL1_6 = position_x = ?,
  54. SQL1_7 = position_y = ?,
  55. SQL1_8 = position_z = ?,
  56. SQL1_9 = direction_x = ?,
  57. SQL1_10 = direction_y = ?,
  58. SQL1_11 = direction_z = ?,
  59. SQL1_12 = up_x = ?,
  60. SQL1_13 = up_y = ?,
  61. SQL1_14 = up_z = ?,
  62. SQL1_15 = cargo_items = ?,
  63. SQL1_16 = cargo_magazines = ?,
  64. SQL1_17 = cargo_weapons = ?,
  65. SQL1_18 = cargo_container = ?,
  66. SQL1_19 = money = ?,
  67. SQL1_20 = last_updated_at = NOW()
  68. SQL1_21 = WHERE id = ?
  69. Number of Inputs = 19
  70. SQL1_INPUTS = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
  71.  
  72. [updateVehicleSkin]
  73. SQL1_1 = UPDATE vehicle SET vehicle_texture = ?, last_updated_at = NOW() WHERE id = ?
  74. Number of Inputs = 2
  75. SQL1_INPUTS = 1,2
  76.  
  77. [vehicleSetPinCode]
  78. SQL1_1 = UPDATE vehicle SET pin_code = ?, last_updated_at = NOW() WHERE id = ?
  79. Number of Inputs = 2
  80. SQL1_INPUTS = 1,2
  81.  
  82. [storeVehicle]
  83. SQL1_1 = UPDATE vehicle SET territory_id = ?, nickname = ?, last_updated_at = NOW() WHERE id = ?
  84. Number of Inputs = 3
  85. SQL1_INPUTS = 1,2,3
  86.  
  87. [retrieveVehicle]
  88. SQL1_1 = UPDATE vehicle SET territory_id = NULL, last_updated_at = NOW(), nickname = '' WHERE id = ?
  89. Number of Inputs = 1
  90. SQL1_INPUTS = 1
  91.  
  92. [confirmVehicleOwnership]
  93. SQL1_1 = SELECT id, territory_id FROM vehicle WHERE nickname = ?
  94. Number of Inputs = 1
  95. SQL1_INPUTS = 1
  96. OUTPUT = 1,2
  97.  
  98. [loadTerritoryVirtualGarage]
  99. SQL1_1 = SELECT class, nickname FROM vehicle WHERE territory_id = ?
  100. Number of Inputs = 1
  101. SQL1_INPUTS = 1
  102. OUTPUT = 1-STRING,2-STRING
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top