Giter Club home page Giter Club logo

sql-editor's Introduction

SQL Editor [View Live]

Table of Contents
  1. Key Features
  2. Getting Started
  3. Performance
  4. Relevant Screenshots

ℹ️ About The Project

SQL Editor aims to provide users with a seamless and user-friendly platform for executing SQL queries, displaying query results with pagination, offering search functionality, maintaining a query history log, and supporting the export of results in CSV or JSON formats. The application will also showcase the execution time of queries and provide a list of available tables in the sidebar for easy reference.

Key Features:

  • SQL Query Execution: The application will allow users to input custom SQL queries and execute them against the connected database. Users can run SELECT, INSERT, UPDATE, DELETE, and other SQL commands.

  • Result Display with Pagination: The application will present query results in a tabular format with smooth pagination. This ensures that large datasets are easily navigable, enhancing the user experience.

  • Search Functionality: Users will have the ability to search for specific entries within the displayed results. This feature will assist users in finding relevant information quickly and efficiently.

  • Query History: The application will maintain a history log of all executed queries. Users can revisit previous queries, review results, and re-run them as needed.

  • Export Data: Users will have the option to download query results in both CSV and JSON formats. This feature enables data sharing and analysis outside the application.

  • Query Execution Time: Each query execution will be timed, and the application will display the time taken to complete the query. This information helps users gauge query performance and optimize complex queries.

  • List of Available Tables: The application's sidebar will display a list of available tables in the connected database. Users can easily reference this list when crafting queries, enhancing their workflow efficiency.

Demo Video

sql-editor.mov

🛠️ Built With

Following technologies and libraries are used for the development of this project.

📌 Getting Started

To setup the project locally follow the steps below

Prerequisites

# Homebrew
brew install nodejs

# Sudo apt
sudo apt install nodejs

# Packman
pacman -S nodejs

# Module Install
dnf module install nodejs:<stream> # stream is the version

# Windows (chocolaty)
cinst nodejs.install
  npm install --global yarn
  # Homebrew
  brew install git

  # Sudo apt
  apt-get install git

  # Packman
  pacman -S git

  # Module Install (Fedora)
  dnf install git

🤖 Running the project.

  1. Fork and clone the project to your local system
  2. cd into the project and run
yarn install
yarn start
  1. Open localhost:3000 to view the application

Performance

(The forformance of the website was audited using pagespeed.web.dev)

  • First Contentful Paint: 0.5s
  • Largest Contentful Paint: 1.0s
  • Speed Index: 1.2s
  • Total Blocking Time: 70ms
  • Cumulative Layout Shift: 0

📉 Relevant Screenshots:

  1. Image showing the SQL editor as well as queries history Image showing the SQL editor as well as queries history

  2. Image showing the results table with paginationa, search bar, and export options Image showing the results table with paginationa, search bar, and export options

  3. Image showing the side bar where all the available tables are listed Image showing the side bar where all the available tables are listed

  4. Image showing the backdrop where all the available fields of the selected table are listed Image showing the backdrop where all the available fields of the selected table are listed

sql-editor's People

Contributors

ciphertron avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.