PostgreSQLClient icon indicating copy to clipboard operation
PostgreSQLClient copied to clipboard

Sample Code for Godot 4.x is not working

Open rtdietrich opened this issue 2 years ago • 3 comments

Hi, I tried the sample code in the alpha branch for Godot 4 , but unfortunately it does not work. Is this still the old code for Godot 3.x? If so, I would be happy about an update.

rtdietrich avatar Jan 06 '23 20:01 rtdietrich

Hello, I'm working on it right now. Thank you for letting me know. Can you give me more details about the error message?

Marzin-bot avatar Jan 06 '23 21:01 Marzin-bot

As I remember : "Invalid argument for connect() function: argument 2 should be Callable but is res://...."

Am Fr., 6. Jan. 2023 um 22:34 Uhr schrieb Marzin @.***>:

Hello, I'm working on it right now. Thank you for letting me know. Can you give me more details about the error message?

— Reply to this email directly, view it on GitHub https://github.com/Marzin-bot/PostgreSQLClient/issues/54#issuecomment-1374159451, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDZJQNDJBBZGMMCFKASKXTWRCFVJANCNFSM6AAAAAATTN77BY . You are receiving this because you authored the thread.Message ID: @.***>

rtdietrich avatar Jan 06 '23 22:01 rtdietrich

At the time of writing, the helloworld script has a syntax error. You have to change all of the error lines to the following:

_error = database.connect("authentication_error", self, "_authentication_error") to _error = database.authentication_error.connect(_authentication_error)

Additionally, you might have to remove all colons before the equal sign to get rid of additional errors.

GOTWIC avatar Jul 12 '23 18:07 GOTWIC