https://github.com/aldythnahak/golang_console_delete_table_ms_sql_server
A console-based Go application to back up tables from a Microsoft SQL Server database. Supports selective optional deletion table.
https://github.com/aldythnahak/golang_console_delete_table_ms_sql_server
batch-processing console-application golang goroutines mssqlserver sqlserver
Last synced: 7 months ago
JSON representation
A console-based Go application to back up tables from a Microsoft SQL Server database. Supports selective optional deletion table.
- Host: GitHub
- URL: https://github.com/aldythnahak/golang_console_delete_table_ms_sql_server
- Owner: AldythNahak
- Created: 2025-05-08T07:39:53.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-06-21T13:28:52.000Z (7 months ago)
- Last Synced: 2025-06-21T14:34:13.846Z (7 months ago)
- Topics: batch-processing, console-application, golang, goroutines, mssqlserver, sqlserver
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# golang_console_delete_table_ms_sql_server
A console-based Go application to back up tables from a Microsoft SQL Server database. Supports selective optional deletion table.
---
## ๐งฉ Features
- ๐ Delete individual or all tables from a specified SQL Server database
- ๐งน Optionally delete tables
- โ
Supports concurrent delete processing
- ๐ฅ Simple CLI interface for automation and scripting
---
## ๐ Requirements
- Go 1.18 or higher
- SQL Server 2012 or later
- Access credentials with permission to read and drop tables
---
## โ๏ธ Configuration
Edit the configuration in `config/config.go` or via environment variables if supported.
Key values include:
- Source server & database
- Table selection mode
---
## ๐ฆ Usage
```bash
# Clone the repo
git clone https://github.com/AldythNahak/golang_console_delete_table_ms_sql_server.git
cd golang_console_delete_table_ms_sql_server
# Build or run the app
go run main.go
```
---
## ๐ฆ Dependencies
The following Go packages are used:
```bash
go get github.com/denisenkom/go-mssqldb
go get github.com/jmoiron/sqlx
go get golang.org/x/term
```
---
## ๐ Goal
This repository serves as a learning log, a reference for interview prep, and a contribution to the open-source learning community.
---
## ๐งโ๐ป Author
**Aldyth Nahak**
[LinkedIn](https://linkedin.com/in/aldythnahak) | [GitHub](https://github.com/AldythNahak)
---
## โญ๏ธ Contribute or Follow
Feel free to fork, clone, or star this repo if you find it helpful!