Versions in this module Expand all Collapse all v1 v1.0.28 Oct 13, 2026 Changes in this version + var FilterSuffix = map[string]string + func AlterTableAddFieldSQL(engine, tableName string, f *models.FieldInfo) ([]string, error) + func ApplyStaleOneToOne(engine string, from, to *models.ConnectionType, exec func(string) error) error + func ApplyUniqueKeyDDL(engine string, sharedSaaS bool, modelsList []*models.ModelType, ...) error + func BuildCombinedMetaQuery(keys dataloader.Keys, param *QueryBuilderParam) ([]byte, error) + func BuildCombinedRelationQuery(cfg *models.Config, relationType string, parentModel string, ...) (string, []interface{}, *string, error) + func ChildTableDDL(tableName string, subfields []*models.FieldInfo, sharedSaaS bool) string + func ChildTableNameForRepeated(modelName, repeatedField string) string + func CommonDocTransformation(model *models.ModelType, local string, result map[string]interface{}, ...) (*types.DefaultDocumentStructure, error) + func CommonModelExcludeDeletedSQL() string + func ConditionBuilder(variable string, args map[string]interface{}, modelType *models.ModelType, ...) (map[string][]string, error) + func CreateIndexDDL(tableName, indexName string, columns ...string) string + func DocumentIsSoftDeleted(doc *types.DefaultDocumentStructure) bool + func DropSQLColumn(ctx context.Context, db *bun.DB, engine, table, column string) error + func FilterBuilder(variable string, where map[string]interface{}, modelType *models.ModelType, ...) ([]string, error) + func GeneratedColumnDDL(tableName, parentColumn string, subPath []string) string + func HideDeletedCommonDocument(model *models.ModelType, doc *types.DefaultDocumentStructure) *types.DefaultDocumentStructure + func IndexedNestedSubfields(f *models.FieldInfo, parentPath string) []indexedSubfield + func InsertShadowIDSQL(engine, table, id string) (string, []interface{}) + func IsIgnorableIndexDrop(err error) bool + func IsJSONStoredListField(f *models.FieldInfo) bool + func JSONExtractPath(subPath ...string) string + func LimitBuilder(param *graphql.ResolveParams) (int, int) + func MapDocumentDataForSQLInsert(docData map[string]interface{}, fields []*models.FieldInfo) (map[string]interface{}, error) + func MediaDocTransformation(docType string, result map[string]interface{}) (*models.FileDetails, error) + func MergeQueryFilterHookSQL(cfg *models.Config, param *models.CommonSystemParams, ...) error + func MigrateRelationCardinality(session SQLSession, req relationmigrate.Request) (relationmigrate.Receipt, error) + func ModelUserFieldColumnsDDL(engine string, model *models.ModelType) ([]string, error) + func NestedGeneratedColumnName(parentField string, subPath ...string) string + func NestedIndexDDLStatements(model *models.ModelType, sharedSaaS bool) []string + func OneToOneUniqueIndexDrops(from, to *models.ConnectionType) []models.UniqueIndexDrop + func PhysicalSQLColumnForSystemRelationField(identifier string, modelType *models.ModelType) string + func PreviewRelationCardinality(session SQLSession, req relationmigrate.Request) (relationmigrate.Preview, error) + func ProjectAuthUserMetaSelectSQL() string + func ProjectAuthUserSelectColumns(local string, modelType *models.ModelType, returnCount bool) []string + func ProjectAuthUserSingleDocQuery(tableName string, local string, modelType *models.ModelType) string + func RelationDocumentMetaJoinSQL(modelType *models.ModelType) string + func RelationEnsureNeeded(param *models.CommonSystemParams) bool + func RelationFieldsDDLStatements(from, to *models.ConnectionType) []string + func RelationMetaJoinFragment(modelType *models.ModelType) string + func RootConnectionResolverQueryBuilder(cfg *models.Config, param *models.CommonSystemParams) (string, error) + func RootListOrderByFromArgs(param *models.CommonSystemParams) string + func RootListOrderBySQL(modelType *models.ModelType) string + func RootResolverMediaQueryBuilder(param *graphql.ResolveParams) (string, error) + func RootResolverQueryBuilder(cfg *models.Config, param *models.CommonSystemParams, returnCount bool) (string, []interface{}, error) + func SchemaModelByName(modelsList []*models.ModelType, name string) *models.ModelType + func SelectBuilder(mv string, local string, modelType *models.ModelType, returnCount bool) []string + func TenantFirstIndexColumns(sharedSaaS bool, columns ...string) []string + func VerifyRelationCardinality(session SQLSession, req relationmigrate.Request) (relationmigrate.Receipt, error) + type FieldClassification struct + BooleanFields []string + DateFields []string + GalleryField []string + ListFields []string + MultilineFields []string + ObjectField []string + PictureField []string + RepeatedFields map[string][]*models.FieldInfo + func BuildFieldClassification(fields []*models.FieldInfo) *FieldClassification + type QueryBuilderParam struct + Args map[string]interface{} + CollectionName string + ModelType *models.ModelType + ParentModel string + RelationName string + type SQLSession struct + DropColumn func(table, column string) error + Engine string + Exec func(query string) error + ExecArgs func(query string, args ...interface{}) error + Query func(query string) ([][]string, error) + ScopeKey string + func NewBunSession(ctx context.Context, engine, scope string, db *bun.DB, ...) SQLSession + type ShadowRefSource struct + Column string + Table string + func CommonModelShadowRefSources(schemaModels []*models.ModelType, common *models.ModelType) []ShadowRefSource + type ShadowTarget struct + ID string + Table string + func CommonShadowTargets(modelsList []*models.ModelType, rootModel *models.ModelType, ...) []ShadowTarget