poggit / libasynql

Asynchronous MySQL access library for PocketMine plugins.
https://poggit.github.io/libasynql
Apache License 2.0
132 stars 44 forks source link

Return from callback (elaboration compliment of Race-condition). #104

Closed Endermanbugzjfc closed 12 months ago

Endermanbugzjfc commented 12 months ago

oops

Endermanbugzjfc commented 12 months ago

Need to add something else tmr.

Endermanbugzjfc commented 12 months ago

Never mind, wanted to inform that Libasynql supports await-generator. But I think it is better to just update the examples.

SOF3 commented 12 months ago

tbh the "return" case is just the simplest form of race conditions, so obvious that it's more like a mistake than a race condition bug.

SOF3 commented 12 months ago

would appreciate if there are updated plugin examples too

Endermanbugzjfc commented 12 months ago

would appreciate if there are updated plugin examples too

Off-topic: I have a feeling that ORM is better for PocketMine-MP plugins because of SQL's unnecessary scalability (for plugins). I wanted to use ORM for my future plugins, I just cannot find a good library. (DatabaseExecutor is too complicated.)

However, for PM servers that are linked with a website, ORM is mostly less sufficient than SQL.