Skip to content

Commit afff5fa

Browse files
notrabhaaawk
authored andcommitted
feat: IsSchema and Schema info
1 parent 05fecc5 commit afff5fa

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

internal/cmd/db_show.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ var showCmd = &cobra.Command{
9494
fmt.Println("Size: ", humanize.Bytes(dbUsage.Usage.StorageBytesUsed))
9595
fmt.Println("Sleeping: ", formatBool(db.Sleeping))
9696
fmt.Println("Bytes Synced: ", humanize.Bytes(dbUsage.Usage.BytesSynced))
97+
fmt.Println("Is Schema: ", formatBool(db.IsSchema))
98+
if db.Schema != "" {
99+
fmt.Println("Parent DB ID: ", db.Schema)
100+
}
97101

98102
fmt.Println()
99103

internal/turso/databases.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ type Database struct {
2020
Version string
2121
Group string
2222
Sleeping bool
23+
Schema string
24+
IsSchema bool `json:"is_schema"`
2325
}
2426

2527
type DatabasesClient client

0 commit comments

Comments
 (0)