sqlweb

module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: MIT

README

sqlweb

About The Tool

This is a DB web client that enables users to seamlessly connect to relational databases via a user-friendly web interface. It offers a comprehensive set of features designed to enhance your database management experience.

✨ Features

  • Connect to relational databases, whether hosted locally or remotely.
  • A built-in SQL editor.
  • Export table data in CSV or JSON formats.
  • Generate raw SQL for database schema objects.
  • Editable table cells
  • Save connection info locally
  • Relatively small and efficient executable < 15MB
  • Memory usage < 25MB
  • Rely on minimal external dependencies, mostly utilizing the standard library.

⭐️ Screenshots

📦 Installation

You can grab your executable from the releases page
Using the install script (mac/linux)
curl -s https://raw.githubusercontent.com/Yazeed1s/sqlweb/master/install.sh | sudo bash
build and install from source
Dependencies:
1- go 
2- vite
3- yarn
4- git

1- clone the repo

git clone https://github.com/Yazeed1s/sqlweb.git

2- cd into sqlweb/ui and install the ui dependencies

cd sqlweb/ui && yarn install

3- go back to the parent dir and run make build

cd .. && make build

4- install the binary

sudo make install
for windows users, you can download the executable from the releases page.

TODO: brew, yay

🚀 Usage

  • Just run sqlweb from the terminal, then open the browser on localhost:3000
$ sqlweb
2023/09/01 13:41:04 Listening...3000
  • There are some flags that can be passed to sqlweb
$ sqlweb -h
  Help information:
  USAGE: sqlweb [OPTION]
     OPTION:
	   -p <port>   	Set the port number (default: 3000)
	   -h          	Display help information
	   -v          	Display version

✅ TODO:

  • Add support for MySQL
  • Add support for PostgreSQL
  • Add support for SQLite
  • Add support for MariaDB
  • Editable cells
  • Table pagination
  • Display columns info (field name, key, type, referenced column, referenced table, constraints name)
  • Export table to csv
  • Export table to json
  • Export schema objects to raw sql (for those ORM users who didn't design/write the schema)
  • Data visualization
  • Support multiple sessions
  • Add -o flag to open up the browser on localhost:port
  • Display database constraints, size, number of tables... etc
  • Manage/add/remove users and their permissions
  • Query history

🔥 Contributing

If you would like to add a feature or to fix a bug please feel free to send a PR.

Directories

Path Synopsis
cmd
main command
db
sql
Package sql defines a series of SQL queries and SQL-related constants for interacting with databases, particularly MySQL and PostgreSQL.
Package sql defines a series of SQL queries and SQL-related constants for interacting with databases, particularly MySQL and PostgreSQL.
pkg
app
cli
client
Package client provides a versatile client for interacting with various database types, abstracting away the complexities of database connections and queries.
Package client provides a versatile client for interacting with various database types, abstracting away the complexities of database connections and queries.
handler
Package handler provides HTTP request handlers for interacting with SQL databases and managing database connections, queries, and operations.
Package handler provides HTTP request handlers for interacting with SQL databases and managing database connections, queries, and operations.
query
Package query provides a set of functions for interacting with SQL databases, including executing queries, updating rows, and performing various database operations.
Package query provides a set of functions for interacting with SQL databases, including executing queries, updating rows, and performing various database operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL