Versions in this module Expand all Collapse all v0 v0.11.0 Sep 9, 2026 Changes in this version + type PrismaConfig struct + Enabled bool + OptimizeIndices bool + PreserveMigrationTable bool + ShadowDatabase bool + type PrismaPlugin struct + func NewPrismaPlugin() *PrismaPlugin + func (pp *PrismaPlugin) Detect(migrations []*types.Migration) bool + func (pp *PrismaPlugin) DetectPatterns(sql string) []plugins.Pattern + func (pp *PrismaPlugin) EnrichStatement(ctx context.Context, stmt *types.Statement) error + func (pp *PrismaPlugin) ExtractPrismaComment(sql string) (action string, target string, found bool) + func (pp *PrismaPlugin) FixFunctionVolatility(ctx context.Context, functionSQL string) (string, error) + func (pp *PrismaPlugin) GeneratePrismaMetadata(tableName string, action string) string + func (pp *PrismaPlugin) GetConflictingPlugins() []string + func (pp *PrismaPlugin) GetConsolidationRules() []plugins.ConsolidationRule + func (pp *PrismaPlugin) GetRequiredExtensions() []string + func (pp *PrismaPlugin) Initialize(ctx context.Context, config any) error + func (pp *PrismaPlugin) InjectCompatibilityLayer(ctx context.Context) string + func (pp *PrismaPlugin) IsPrismaGeneratedSQL(sql string) bool + func (pp *PrismaPlugin) ShouldPreserve(stmt *types.Statement) bool + func (pp *PrismaPlugin) TransformSQL(ctx context.Context, sql string) (string, error) + func (pp *PrismaPlugin) ValidateSchema(ctx context.Context, db *sql.DB) error