Skip to content

Commit 058de97

Browse files
committed
Display encryption cipher info in the db show cmd
1 parent 7d36596 commit 058de97

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

internal/cmd/db_show.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ var showCmd = &cobra.Command{
149149
if db.Schema != "" {
150150
fmt.Println("Schema: ", db.Schema)
151151
}
152+
if db.EncryptionCipher != "" {
153+
fmt.Println("Encryption: ", db.EncryptionCipher)
154+
}
152155

153156
fmt.Println()
154157

internal/turso/databases.go

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@ import (
1616
)
1717

1818
type Database struct {
19-
ID string `json:"dbId" mapstructure:"dbId"`
20-
Name string
21-
Regions []string
22-
PrimaryRegion string
23-
Hostname string
24-
Version string
25-
Group string
26-
Sleeping bool
27-
Schema string
28-
IsSchema bool `json:"is_schema" mapstructure:"is_schema"`
29-
Parent *Database `json:"parent,omitempty"`
19+
ID string `json:"dbId" mapstructure:"dbId"`
20+
Name string
21+
Regions []string
22+
PrimaryRegion string
23+
Hostname string
24+
Version string
25+
Group string
26+
Sleeping bool
27+
Schema string
28+
IsSchema bool `json:"is_schema" mapstructure:"is_schema"`
29+
Parent *Database `json:"parent,omitempty"`
30+
EncryptionCipher string `json:"encryption_cipher,omitempty"`
3031
}
3132

3233
type DatabasesClient client

0 commit comments

Comments
 (0)