Skip to content

internal/function: implement language function #194

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

Merged
merged 3 commits into from
Apr 3, 2018
Merged

internal/function: implement language function #194

merged 3 commits into from
Apr 3, 2018

Conversation

erizocosmico
Copy link
Contributor

@erizocosmico erizocosmico commented Mar 22, 2018

Closes #192

Can be used as:

language(path)

OR

language(path, blob)

Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
@erizocosmico
Copy link
Contributor Author

Rebased

}

// Eval implements the Expression interface.
func (f *Language) Eval(session sql.Session, row sql.Row) (interface{}, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eval now uses sql.Context instead of Session

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, right, the update is already on master

Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
@erizocosmico
Copy link
Contributor Author

Rebased

@erizocosmico erizocosmico merged commit a989023 into src-d:master Apr 3, 2018
@erizocosmico erizocosmico deleted the feature/udf-get-language branch April 3, 2018 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants