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
@@ -262,3 +262,16 @@ func (c *Config) GetDoltServerUser() string {
|
||||
}
|
||||
return c.DoltServerUser
|
||||
}
|
||||
|
||||
// GetDoltDatabase returns the database name for Dolt server mode.
|
||||
// This is different from DatabasePath which returns the on-disk path.
|
||||
// For server mode, Database field contains the database name on the server
|
||||
// (e.g., "hq", "gastown", "beads"). Defaults to "beads".
|
||||
func (c *Config) GetDoltDatabase() string {
|
||||
db := strings.TrimSpace(c.Database)
|
||||
if db == "" || db == "beads.db" || db == "dolt" {
|
||||
return "beads"
|
||||
}
|
||||
// Strip any path components - just want the database name
|
||||
return filepath.Base(db)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user