// SetGlobalVariable executes the statement 'SET GLOBAL key=value'.
516661
func SetGlobalVariable(endpoint, key string, value interface{}) error {
	var inst *Instance
	var exists bool
	if inst, exists = connectionPool[endpoint]; !exists {
		return errNotRegistered
	}
	if !globalKeyExp.MatchString(key) {
		return errKeyInvalid
	}
	if _, err := inst.connection.Exec(fmt.Sprintf("SET GLOBAL %s=?", key), value); err != nil {
		return err
	}
	return nil
}
905242
func SetGlobalRouting(filename string) error {
	var err error
	globalRouter, err = router.NewFromConfig(filename)
	return err
}
1133396
func (d *Debugger) SetVariableInScope(scope api.EvalScope, symbol, value string) error {
	d.processMutex.Lock()
	defer d.processMutex.Unlock()

	s, err := proc.ConvertEvalScope(d.target, scope.GoroutineID, scope.Frame, scope.DeferredCall)
	if err != nil {
		return err
	}
	return s.SetVariable(symbol, value)
}
496509
func (s *QorSEOSetting) SetGlobalSetting(globalSetting map[string]string) {
	s.Setting.GlobalSetting = globalSetting
}
351109
func (s *GlobalCluster) SetGlobalClusterMembers(v []*GlobalClusterMember) *GlobalCluster {
	s.GlobalClusterMembers = v
	return s
}
366091
func (s *CreateGlobalTableOutput) SetGlobalTableDescription(v *GlobalTableDescription) *CreateGlobalTableOutput {
	s.GlobalTableDescription = v
	return s
}
698393
func (s *UpdateGlobalTableOutput) SetGlobalTableDescription(v *GlobalTableDescription) *UpdateGlobalTableOutput {
	s.GlobalTableDescription = v
	return s
}
106904
func (s *CreateTableInput) SetGlobalSecondaryIndexes(v []*GlobalSecondaryIndex) *CreateTableInput {
	s.GlobalSecondaryIndexes = v
	return s
}
1041193
func (s *UpdateGlobalTableSettingsInput) SetGlobalTableName(v string) *UpdateGlobalTableSettingsInput {
	s.GlobalTableName = &v
	return s
}
1309406
func (s *DescribeGlobalClustersInput) SetGlobalClusterIdentifier(v string) *DescribeGlobalClustersInput {
	s.GlobalClusterIdentifier = &v
	return s
}
404523
func (s *GlobalTableDescription) SetGlobalTableStatus(v string) *GlobalTableDescription {
	s.GlobalTableStatus = &v
	return s
}
1207452
func (s *Environment) SetVariables(v map[string]*string) *Environment {
	s.Variables = v
	return s
}
674262
func (ctx *Context) SetVar(k string, v interface{}, scope Scope) {
	i := len(ctx.scopes) - 1 // index of local scope
	if i < 0 {
		panic("no scopes")
	}

	switch scope {
	case GlobalScope:
		i = 0 // index of global scope

	case ParentScope:
		if i > 0 {
			i -= 1 // index of parent scope
		}
	}

	ctx.scopes[i][k] = fmt.Sprintf("%v", v)
}
319341
func (s *CreateGlobalClusterInput) SetGlobalClusterIdentifier(v string) *CreateGlobalClusterInput {
	s.GlobalClusterIdentifier = &v
	return s
}
465350
func (s *DescribeGlobalTableInput) SetGlobalTableName(v string) *DescribeGlobalTableInput {
	s.GlobalTableName = &v
	return s
}
1116088
func (e *Env) DefineGlobal(k string, v interface{}) error {
	for e.parent != nil {
		e = e.parent
	}
	return e.Define(k, v)
}
479388
func (s *ModifyGlobalClusterInput) SetGlobalClusterIdentifier(v string) *ModifyGlobalClusterInput {
	s.GlobalClusterIdentifier = &v
	return s
}