mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-02-10 06:08:27 -06:00
15 lines
349 B
Go
15 lines
349 B
Go
package databases
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/eduardolat/pgbackweb/internal/database/dbgen"
|
|
)
|
|
|
|
func (s *Service) CreateDatabase(
|
|
ctx context.Context, params dbgen.DatabasesServiceCreateDatabaseParams,
|
|
) (dbgen.Database, error) {
|
|
params.EncryptionKey = *s.env.PBW_ENCRYPTION_KEY
|
|
return s.dbgen.DatabasesServiceCreateDatabase(ctx, params)
|
|
}
|