fix(dolt): enable server mode for Gas Town integration (bd-nnjik)
- Skip Bootstrap when ServerMode is true (bootstrap is for embedded cold-start) - Fix doltExists() to follow symlinks using os.Stat - Pass database name from metadata.json to DoltStore config Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
a9c8c952f6
commit
db0c6fbd3f
@@ -32,6 +32,7 @@ type Options struct {
|
||||
ServerHost string // Server host (default: 127.0.0.1)
|
||||
ServerPort int // Server port (default: 3306)
|
||||
ServerUser string // MySQL user (default: root)
|
||||
Database string // Database name for Dolt server mode (default: beads)
|
||||
}
|
||||
|
||||
// New creates a storage backend based on the backend type.
|
||||
@@ -101,6 +102,9 @@ func NewFromConfigWithOptions(ctx context.Context, beadsDir string, opts Options
|
||||
if opts.ServerUser == "" {
|
||||
opts.ServerUser = cfg.GetDoltServerUser()
|
||||
}
|
||||
if opts.Database == "" {
|
||||
opts.Database = cfg.GetDoltDatabase()
|
||||
}
|
||||
}
|
||||
return NewWithOptions(ctx, backend, cfg.DatabasePath(beadsDir), opts)
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user