Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make OutParameter get method typeDesc parameter optional #2388

Closed
niveathika opened this issue Nov 12, 2021 · 1 comment
Closed

Make OutParameter get method typeDesc parameter optional #2388

niveathika opened this issue Nov 12, 2021 · 1 comment
Assignees
Labels
module/sql Points/1 Team/DIU Data, IO, and Util packages related issues Type/Improvement

Comments

@niveathika
Copy link
Contributor

niveathika commented Nov 12, 2021

Description:
Currently, the OutParameter get method param is mandatory, this can be made optional since the type description can be inferred from the assigned return type.

public type OutParameter object {

    # Parses returned Char SQL value to ballerina value.
    #
    # + typeDesc - Type description of the data that need to be converted
    # + return - The converted ballerina value or Error
    public isolated function get(typedesc<anydata> typeDesc = <>) returns typeDesc|Error;
};
@niveathika
Copy link
Contributor Author

Closing as this is completed in al modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/sql Points/1 Team/DIU Data, IO, and Util packages related issues Type/Improvement
Projects
None yet
Development

No branches or pull requests

1 participant