Properly read prepared functions from the embedded FS
Yeah, reading that wrong was bad.
This commit is contained in:
parent
97ec2c767d
commit
eac240af51
3 changed files with 31 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue