IoObject* IoMySQL_close(IoObject* self, IoObject* locals, IoMessage* m) { /*#io docSlot("close", "Closes a previously opened connection.") */ if(DATA(self)->connected) mysql_close(&DATA(self)->connection); IoObject_removeSlot_(self, IOSYMBOL("host")); IoObject_removeSlot_(self, IOSYMBOL("user")); IoObject_removeSlot_(self, IOSYMBOL("password")); IoObject_removeSlot_(self, IOSYMBOL("database")); IoObject_removeSlot_(self, IOSYMBOL("port")); IoObject_removeSlot_(self, IOSYMBOL("socket")); IoObject_removeSlot_(self, IOSYMBOL("usingSSL")); return self; }
void IoCoroutine_rawRemoveException(IoCoroutine *self) { IoObject_removeSlot_(self, IOSYMBOL("exception")); }