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

Select columns explicitly #72

Open
kostyazgara opened this issue Apr 2, 2024 · 0 comments
Open

Select columns explicitly #72

kostyazgara opened this issue Apr 2, 2024 · 0 comments

Comments

@kostyazgara
Copy link
Contributor

We need to avoid using select * statement and define all columns explicitly.

Motivation

  1. It will not break backward compatibility in the cases when we add new column. So backend will fetch only known columns and integration tests will preserve to work
  2. This approach opens an ability to manage columns dynamically via feature flags and allows us to use extend pattern when we need to switch over different columns in real time

Here is an example of framework which is using this approach https://entgo.io/docs/schema-def/

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

No branches or pull requests

1 participant