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

Support shorthand for column suffix matching referenced column #26

Closed
2 tasks
kevlarr opened this issue Jan 11, 2022 · 1 comment
Closed
2 tasks

Support shorthand for column suffix matching referenced column #26

kevlarr opened this issue Jan 11, 2022 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@kevlarr
Copy link
Collaborator

kevlarr commented Jan 11, 2022

Would there be a good shorthand syntax for foreign keys or more general situations where the column being populated has a suffix that matches the name of the column being referenced?

public
  person
    leela
      name 'Turanga Leela'

  pet
    _
      name 'Nibbler'
      -- Expands to `person_id [email protected]`
      [person.id] @leela

Or maybe..

public
  person
    leela
      name 'Turanga Leela'

  pet
    _
      name 'Nibbler'
      -- Expands to `person_id person#leela.id`
      person[id] @leela

Questions:

Requirements:

  • Not annoying to type or to read
  • Supports explicit cross-schema references
@kevlarr kevlarr added enhancement New feature or request question Further information is requested labels Jan 11, 2022
@kevlarr kevlarr changed the title Support implicit inter-table reference values Support implicit foreign key reference values Jan 11, 2022
@kevlarr kevlarr added this to the Reference values milestone May 21, 2022
@kevlarr kevlarr changed the title Support implicit foreign key reference values Support shorthand for column suffix matching referenced column May 23, 2022
@kevlarr
Copy link
Collaborator Author

kevlarr commented May 2, 2024

Closing this because I just don't think there's enough value for the complexity, and it is too closely tying language features to database structure that might not even be relevant for a lot of people.

@kevlarr kevlarr closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant