Versions in this module Expand all Collapse all v1 v1.0.0-alpha Mar 25, 2026 v0 v0.2.0 Mar 25, 2026 v0.1.0 Mar 25, 2026 Changes in this version + type Bulk interface + BulkDelete func(tableName string, ids []interface{}, idColumn string) (int64, error) + BulkInsert func(tableName string, records []map[string]interface{}) ([]map[string]interface{}, error) + BulkUpdate func(tableName string, updates []map[string]interface{}, whereColumn string) (int64, error) + Upsert func(tableName string, data map[string]interface{}, conflictColumns []string, ...) (map[string]interface{}, error) + type Migration struct + Checksum string + ExecutedAt time.Time + ID int + Name string + SQL string + type MigrationService interface + GetMigrationHistory func() ([]Migration, error) + InitializeMigrationTable func() error + RunMigration func(name, sql string) error + type Performance interface + AnalyzeTablePerformance func(tableName string) (map[string]interface{}, error) + CreateCustomIndex func(tableName, indexName string, columns []string) error + CreateIndexes func(tableName string) error + GetPerformanceMetrics func() (map[string]interface{}, error) + OptimizeQuery func(query string) ([]string, error) + type RelationshipService interface + AddRelationshipData func(relationship *models.RelationshipDefinition, ...) (*models.RelationshipDataResponse, error) + CreateRelationship func(req models.CreateRelationshipRequest) (*models.RelationshipDefinition, error) + DeleteRelationship func(relationship *models.RelationshipDefinition, dropConstraints bool, ...) error + RemoveRelationshipData func(relationship *models.RelationshipDefinition, ...) (*models.RelationshipDataResponse, error) + SetRelationshipData func(relationship *models.RelationshipDefinition, ...) (*models.RelationshipDataResponse, error) + type Table interface + AddColumn func(tableName string, req models.AddColumnRequest) error + AlterTable func(tableName string, req models.AlterTableRequest) error + BuildComplexQuery func(tableName string, filters map[string]interface{}) (models.QueryParams, error) + CreateFunction func(ctx context.Context, functionName string, functionSQL string) error + CreateRecord func(tableName string, data map[string]interface{}) (map[string]interface{}, error) + CreateSchema func(ctx context.Context, schemaName string) error + CreateTable func(req models.CreateTableRequest) error + CreateView func(ctx context.Context, viewName string, viewSQL string) error + DeleteRecord func(tableName string, id interface{}) error + DropTable func(ctx context.Context, tableName string) error + GetByFunction func(ctx context.Context, functionName string, args map[string]interface{}) ([]map[string]interface{}, error) + GetTableData func(tableName string, params models.QueryParams) ([]map[string]interface{}, error) + GetTables func(schema string) ([]models.Table, error) + UpdateRecord func(tableName string, id interface{}, data map[string]interface{}) (map[string]interface{}, error)