tgstation/-tg-station — pull request #3165 by Giacom (2014-03-23 23:06:52+00:00)
Title: Ports over Bay's SQDL2

An SQL style debug tool which allows you to modify the game world. Useful for debugging. The major change between this and Bay's version is that I got CALL working.

Use "debug verbs" to get the SQDL verb.

Examples:

```SQL
-- Will call the proc for all computers in the world, thats dir is 2.
CALL ex_act(1) ON /obj/machinery/computer IN world WHERE dir == 2
-- Will open a window with a list of all the closets in the world, with a link to VV them.
SELECT /obj/structure/closet/secure_closet/security/cargo IN world WHERE icon_off == "secoff"
-- Will change all the tube lights to green
UPDATE /obj/machinery/light IN world SET color = "#0F0" WHERE icon_state == "tube1"
-- Will delete all pickaxes in the world.
DELETE /obj/item/weapon/pickaxe

--You can use operators other than ==, such as >, <=, != and etc..
--"IN world" is optional for all of these queries.

```