From 9e82811a2a963be962fc3ffc426c137e01d56e2d Mon Sep 17 00:00:00 2001 From: Priyansh Date: Thu, 28 Aug 2025 13:09:22 +0530 Subject: Restructure codebase with proper organization, fix file picker navigation, and add utils package --- types/connection.go | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 types/connection.go (limited to 'types') diff --git a/types/connection.go b/types/connection.go new file mode 100644 index 0000000..bfeb0cb --- /dev/null +++ b/types/connection.go @@ -0,0 +1,35 @@ +package types + +type ConnectionType int + +const ( + PostgreSQL ConnectionType = iota + MySQL + SQLite +) + +func (ct ConnectionType) String() string { + switch ct { + case PostgreSQL: + return "PostgreSQL" + case MySQL: + return "MySQL" + case SQLite: + return "SQLite" + default: + return "Unknown" + } +} + +type Connection struct { + Name string + Type ConnectionType + Host string + Port string + User string + Password string + Database string + DatabaseFile string + EnableSSL bool + Color string +} -- cgit v1.2.3