Properly read prepared functions from the embedded FS

Yeah, reading that wrong was bad.
This commit is contained in:
Eli Ribble 2025-12-02 22:28:10 +00:00
parent 97ec2c767d
commit eac240af51
No known key found for this signature in database
3 changed files with 31 additions and 2 deletions

View file

@ -111,6 +111,10 @@ func InitializeDatabase(ctx context.Context, uri string) error {
return fmt.Errorf("Failed to get database current: %w", err)
}
log.Info().Str("database", current).Msg("Connected to database")
err = prepareStatements(ctx)
if err != nil {
return fmt.Errorf("Failed to initialize prepared statements: %w", err)
}
return nil
}