Feedback on non SELECT database queries. #82
Comments
I just looked into this briefly and noticed that of course you can indeed return results as if it were a SQL query. I think that's probably the right thing to do. Patches welcome? :) You'd be looking at |
If no one look into that before I have time, I'll try :) But I must admit I'm in the middle of a big rewrite and try to gain time with tools, so hard to find time soon to learn new product to contribute. |
@Tolriq I'll see what I can do :) |
No hurry the tool is already wonderful right now and make me win lot's of time for tests and debug. So I can check that when I have time after the database / sync rewrite :) |
I looked into this a bit today. We are using I know presto has parsing for sqlite but do we want to go down that path? |
Previously we would only return a result for sql commands that were selct statements. This diff makes `DatabasePeerManager` aware of what commands are being executed and returns a result set appropriate to that command. Note: We are returning a result for all commands (including ones that do not normally contain results like CREATE TABLE). We do this so that the inspector interface will not remove the command. Closes facebookarchive#82
Previously we would only return a result for sql commands that were selct statements. This diff makes `DatabasePeerManager` aware of what commands are being executed and returns a result set appropriate to that command. Note: We are returning a result for all commands (including ones that do not normally contain results like CREATE TABLE). We do this so that the inspector interface will not remove the command. Closes facebookarchive#82
Currently there's no feedback when doing update or delete queries.
It would be great to have some to know that it worked as even the query vanish from the interface.
Maybe use the current error system
With the error line containing : Success : Last id = XX or affected rows = YY
Or return a dummy cursor with only 2 columns last id , affected rows and 1 line with data.
The text was updated successfully, but these errors were encountered: