iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://github.com/surrealdb/surrealdb/issues/4980
Feature: type::alias function · Issue #4980 · surrealdb/surrealdb · GitHub
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

Feature: type::alias function #4980

Open
2 tasks done
raxosiris opened this issue Oct 16, 2024 · 0 comments
Open
2 tasks done

Feature: type::alias function #4980

raxosiris opened this issue Oct 16, 2024 · 0 comments
Labels
feature New feature or request triage This issue is new

Comments

@raxosiris
Copy link

raxosiris commented Oct 16, 2024

Is your feature request related to a problem?

We have a use case where it makes sense to draw aliases from an array or strings (or predefined variables) instead of specifying them directly as part of the SQL

Describe the solution

It would be great to have a function similar to type::field that can take a string as parameter and convert it to an alias. We can also re-use the alias in other parts of the larger query

Alternative methods

Atm we are pre-processing the query in a script but it would be amazing if we could achieve the same using surrealdb functions.

SurrealDB version

surreal 2.0.4 for macos on aarch64

Contact Details

rishi@verified-global.com

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@raxosiris raxosiris added feature New feature or request triage This issue is new labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request triage This issue is new
Projects
None yet
Development

No branches or pull requests

1 participant