@@ -53,16 +53,16 @@ func init() {
5353type Config struct {
5454 // VersionPostfix to display with the `VERSION()` UDF.
5555 VersionPostfix string
56+ // TemporaryUsers adds any users that should be included when the engine is created. By default, authentication is
57+ // disabled, and including any users here will enable authentication. All users in this list will have full access.
58+ // This field is only temporary, and will be removed as development on users and authentication continues.
59+ TemporaryUsers []TemporaryUser
5660 // IsReadOnly sets the engine to disallow modification queries.
5761 IsReadOnly bool
5862 IsServerLocked bool
5963 // IncludeRootAccount adds the root account (with no password) to the list of accounts, and also enables
6064 // authentication.
6165 IncludeRootAccount bool
62- // TemporaryUsers adds any users that should be included when the engine is created. By default, authentication is
63- // disabled, and including any users here will enable authentication. All users in this list will have full access.
64- // This field is only temporary, and will be removed as development on users and authentication continues.
65- TemporaryUsers []TemporaryUser
6666}
6767
6868// TemporaryUser is a user that will be added to the engine. This is for temporary use while the remaining features
@@ -136,18 +136,18 @@ func (p *PreparedDataCache) UncacheStmt(sessId uint32, query string) {
136136
137137// Engine is a SQL engine.
138138type Engine struct {
139+ Parser sql.Parser
140+ ProcessList sql.ProcessList
139141 Analyzer * analyzer.Analyzer
140142 LS * sql.LockSubsystem
141- ProcessList sql.ProcessList
142143 MemoryManager * sql.MemoryManager
143144 BackgroundThreads * sql.BackgroundThreads
144- ReadOnly atomic.Bool
145- IsServerLocked bool
146145 PreparedDataCache * PreparedDataCache
147146 mu * sync.Mutex
148- Version sql.AnalyzerVersion
149147 EventScheduler * eventscheduler.EventScheduler
150- Parser sql.Parser
148+ ReadOnly atomic.Bool
149+ IsServerLocked bool
150+ Version sql.AnalyzerVersion
151151}
152152
153153var _ sql.StatementRunner = (* Engine )(nil )
0 commit comments