SetProjectConfig sets the config all modules
(ctx context.Context, config *config.ProjectConfig)
| 59 | |
| 60 | // SetProjectConfig sets the config all modules |
| 61 | func (m *Modules) SetProjectConfig(ctx context.Context, config *config.ProjectConfig) error { |
| 62 | module, err := m.loadModule(config.ID) |
| 63 | if err != nil { |
| 64 | module, err = m.newModule(config) |
| 65 | if err != nil { |
| 66 | return err |
| 67 | } |
| 68 | } |
| 69 | return module.SetProjectConfig(ctx, config) |
| 70 | } |
| 71 | |
| 72 | // SetDatabaseConfig sets the config of db, auth, schema and realtime modules |
| 73 | func (m *Modules) SetDatabaseConfig(ctx context.Context, projectID string, databaseConfigs config.DatabaseConfigs, schemaConfigs config.DatabaseSchemas, ruleConfigs config.DatabaseRules, prepConfigs config.DatabasePreparedQueries) error { |
nothing calls this directly
no test coverage detected