Skip to content

Commit c45bf84

Browse files
committed
return databasename
1 parent 3860cca commit c45bf84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

go/libraries/doltcore/doltdb/doltdb.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ func DoltDBFromCS(cs chunks.ChunkStore, databaseName string) *DoltDB {
9797
return &DoltDB{db: hooksDatabase{Database: db}, vrw: vrw, ns: ns, databaseName: databaseName}
9898
}
9999

100+
func (ddb *DoltDB) GetDatabaseName() string {
101+
return ddb.databaseName
102+
}
103+
100104
// HackDatasDatabaseFromDoltDB unwraps a DoltDB to a datas.Database.
101105
// Deprecated: only for use in dolt migrate.
102106
func HackDatasDatabaseFromDoltDB(ddb *DoltDB) datas.Database {

0 commit comments

Comments
 (0)