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 + func NewBulkService(repo interfaces.DatabaseRepo) servicesInterface.Bulk + func NewMigrationService(repo interfaces.DatabaseRepo) servicesInterface.MigrationService + func NewPerformanceService(repo interfaces.DatabaseRepo) servicesInterface.Performance + func NewRelationshipService(repo interfaces.DatabaseRepo) servicesInterface.RelationshipService + func NewTableService(repo interfaces.DatabaseRepo) servicesInterface.Table + func ParseAggregatesFilter(value interface{}, params *models.QueryParams) error + func ParseFullTextFilter(value interface{}, params *models.QueryParams) error + func ParseJoinsFilter(value interface{}, params *models.QueryParams) error + func ParseSelectFilter(value interface{}, params *models.QueryParams) error + type BulkService struct + func (s *BulkService) BulkDelete(tableName string, ids []interface{}, idColumn string) (int64, error) + func (s *BulkService) BulkInsert(tableName string, records []map[string]interface{}) ([]map[string]interface{}, error) + func (s *BulkService) BulkUpdate(tableName string, updates []map[string]interface{}, whereColumn string) (int64, error) + func (s *BulkService) Upsert(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 struct + func (s *MigrationService) GetMigrationHistory() ([]servicesInterface.Migration, error) + func (s *MigrationService) InitializeMigrationTable() error + func (s *MigrationService) RunMigration(name, sql string) error + type PerformanceService struct + func (s *PerformanceService) AnalyzeTablePerformance(tableName string) (map[string]interface{}, error) + func (s *PerformanceService) CreateCustomIndex(tableName, indexName string, columns []string) error + func (s *PerformanceService) CreateIndexes(tableName string) error + func (s *PerformanceService) GetPerformanceMetrics() (map[string]interface{}, error) + func (s *PerformanceService) IsCommonFilterColumn(columnName string) bool + func (s *PerformanceService) IsForeignKeyColumn(columnName string, foreignKeys []models.ForeignKey) bool + func (s *PerformanceService) OptimizeQuery(query string) ([]string, error) + type RelationshipService struct + func (s *RelationshipService) AddRelationshipData(relationship *models.RelationshipDefinition, ...) (*models.RelationshipDataResponse, error) + func (s *RelationshipService) CreateRelationship(req models.CreateRelationshipRequest) (*models.RelationshipDefinition, error) + func (s *RelationshipService) DeleteRelationship(relationship *models.RelationshipDefinition, dropConstraints bool, ...) error + func (s *RelationshipService) RemoveRelationshipData(relationship *models.RelationshipDefinition, ...) (*models.RelationshipDataResponse, error) + func (s *RelationshipService) SetRelationshipData(relationship *models.RelationshipDefinition, ...) (*models.RelationshipDataResponse, error) + type TableService struct + func (s *TableService) AddColumn(tableName string, req models.AddColumnRequest) error + func (s *TableService) AlterTable(tableName string, req models.AlterTableRequest) error + func (s *TableService) BuildComplexQuery(tableName string, filters map[string]interface{}) (models.QueryParams, error) + func (s *TableService) CreateFunction(ctx context.Context, functionName string, functionSQL string) error + func (s *TableService) CreateRecord(tableName string, data map[string]interface{}) (map[string]interface{}, error) + func (s *TableService) CreateSchema(ctx context.Context, schemaName string) error + func (s *TableService) CreateTable(req models.CreateTableRequest) error + func (s *TableService) CreateView(ctx context.Context, viewName string, viewSQL string) error + func (s *TableService) DeleteRecord(tableName string, id interface{}) error + func (s *TableService) DropTable(ctx context.Context, tableName string) error + func (s *TableService) GetByFunction(ctx context.Context, functionName string, args map[string]interface{}) ([]map[string]interface{}, error) + func (s *TableService) GetTableData(tableName string, params models.QueryParams) ([]map[string]interface{}, error) + func (s *TableService) GetTables(schema string) ([]models.Table, error) + func (s *TableService) UpdateRecord(tableName string, id interface{}, data map[string]interface{}) (map[string]interface{}, error) + func (s *TableService) ValidateAlterTableRequest(req models.AlterTableRequest) error + func (s *TableService) ValidateCreateTableRequest(req models.CreateTableRequest) error