Documentation
¶
Overview ¶
Copyright © 2024 Denys <https://github.com/AnyoneClown> This is my license. There are many like it, but this one is mine. My license is my best friend. It is my life. I must master it as I must master my life.
Copyright © 2024 Denys <https://github.com/AnyoneClown> This is my license. There are many like it, but this one is mine. My license is my best friend. It is my life. I must master it as I must master my life.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TableCmd = &cobra.Command{ Use: "table", Short: "Display tables and their contents", Run: func(cmd *cobra.Command, args []string) { limit, _ := cmd.Flags().GetInt("rows") dsn, err := utils.GetDBString() if err != nil { fmt.Println("Error getting database string:", err) return } db, err := sqlx.Connect("postgres", dsn) if err != nil { fmt.Println("Error connecting to database:", err) return } defer db.Close() model, err := NewModel(db, limit) if err != nil { fmt.Println("Error initializing model:", err) return } if _, err := tea.NewProgram(model).Run(); err != nil { fmt.Println("Error running program:", err) return } }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.