Skip to content

Expose enums for return codes coming from SQLite #206

Description

@Wilker-uwu

Is your feature request related to a problem? Please describe.
i would like to check for, and also return, detailed diagnostics about commit errors in queries. while error_message is a variable that's available as a String it doesn't feel easy to resolve individual errors for query actions that aren't already exposed as separate functions.

Describe the solution you'd like
following a similar pattern that can be done with Godot's ENetMultiplayerPeer and FileAccess, using the Error enums available in global scope would help getting those details when they happen.

Describe alternatives you've considered
exposing SQLite's error codes as its own enum list would be a better option for a more detailed list.

Additional context
this is a breaking change, since these would replace the boolean return types used by most functions in the SQLite class.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions