Giter VIP home page Giter VIP logo

sqlviewer's Introduction

SQLViewer

Context

Project of the subject of Accessing Data From Program Code of the Software Engineering degree at Algebra University College (Zagreb). The project consist in a replica of the SSMS (SQL Server Management Studio). The project is completely done in C# with the Form Window framework. Part of the code is done with the help of the Professor Daniel Bele.

Functionality

Login

The application has a SQL Server Authentication in order to use it. So it handle non registered users and so on. image

Main Window

Once the user has been aunthenticated so username and passwords are correct, then main screen will show:

  • On the top three buttons:
    • The first one is to see the content of the selected table or view.
    • The second one is to save the selected table in an XML file.
    • The third and last is to run a new query.
  • On the left side there is a tree view of the tables, views and procedures in the Data Base.
  • On the right side there is a text box where the procedures's code will be shown.
image

Run Table

When the run button is clicked, automaticaly, the content of the selected table or view will be shown.

image

Save

When the save button is clicked, the user will have the option to choose where to save the table or view in a XML format.

image

This is how the XML file will look like:

image

New Query

When the new querey button is clicked, a new completely window will appear. This window consist in:

  • In the top part a text-box where the user will write the query.
  • In the right-bottom part a text-box where the user wont be able to write but where the message of the result of the query will be shown. That is, where the errors or success will appear.
  • In the left-bottom part two buttons:
    • One for running the query
    • Other for cleaning the message and text box
image

Running The New Query

When running the query, if it is a Select query, the application will show the table as it is shown when the run table action. The errors happened in the query will be shown in the message-box. Here there are some examples of how the run query works:

image image image image

Patterns

The patterns used in this project are:

Lazy

The Lazy pattern it is mostly used by the tree view. So this tree view will load only what he needs when a node is expanded. All the entities (tables, views and procedures) inside the database object are lazy properties.

Factory

The factory pattern is used to create objects that implements the IRepository interface.

Singleton

The factory of IRepositorys is a singleton.

sqlviewer's People

Contributors

mrcharlessg avatar

Stargazers

Ignacio Garro avatar

Watchers

 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.