-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
help wantedExtra attention is neededExtra attention is neededtype:feature_requestfeature requestfeature request
Description
Create View feature with Gorm
Describe the feature
db.
View.
CreateOrUpdate().
Tables(....tables Names ). // strings
Entities(....tables Names ). // interfaces
Select(columNames...). // 5 or 6 columns it is optional
Join(joinClause).
Alias(Entity, map[string]string{})
Where(...., ...).
ViewName("Give it a name"). // Optional, could come from tables or be placed
Compile() // finisher method, builder, ends the chain
Motivation
Database views are easily queried on compiled join queries. Currently, the framework doesn't support joins properly. It supports but requires manual work. If we have a view creation option it will reduce the work and query execution and improve the performance
Related Issues
Tags
Keywords
View, ViewCreation, JoinFeauture, SqlInjection
riadevatix, nafeem-evatix, ChrisSwanson, sebastianbuechler, loeffel-io and 10 morekhorevaaChrisSwanson and pnck
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededtype:feature_requestfeature requestfeature request