Beruflich Dokumente
Kultur Dokumente
SRS
SQL QUERY GENERATOR
P: F-SMR-UG/08/R0
P: F-SMR-UG/08/R0
P: F-SMR-UG/08/R0
1.5 Major Functions : 1) Create table 2) Modify table 3) Add constraint 4) Query generated can be saved as well as executed 5) Delete constraint 1.6 Input: The input required is the data which is needed to construct the query. For example, 1)If we want to create the table, then the following data is provided through the given forms:
P: F-SMR-UG/08/R0
P: F-SMR-UG/08/R0
2. SOFTWARE REQUIREMENTS SPECIFICATION Introduction 2.1 Purpose To design and implement software in Java that provides an interactive interface for database users there by automating the various operations performed in order to maintain the database. The software generates all necessary SQL queries and commands and relieves the user of the overhead of remembering SQL syntaxes. 2.2 Scope The proposed System is a database administration tool. It uses JDBC to allow users to explore and interact with databases via a JDBC driver. It provides an interactive interface that allows users to select options and generate all necessary SQL queries at the click of a button. The software also offers code completion and syntax highlighting for standard SQL. 2.2.1 Definitions, acronyms, and abbreviations JDBC Java Database Connectivity ODBC Open Database Connectivity SQL- Structure query Language DML- Data Definition Language 2.2.2 References: 1.IEEE Recommended Practice for Software Requirements Specifications, Std. 830 2.Pressman, Roger S., 2001. Software Engineering, McGRAW-HILL, fifth edition 3.Software Project Management, Bob Hughes & Mike Cotterell, McGraw-Hill Publication, 2006. (Textbook) 2.3 Overview This report is prepared by using IEEE Std. 830 and constituted 3 parts. The first part of this report contains overall descriptions of the ORCH. It is about all the functions, dependencies, properties, development phase, perspectives and also constrains of the devised system. The second part of
P: F-SMR-UG/08/R0
2.3.1 Product Overview While using a Relational Database System (RDBMS), you must have probably run across one or more of the following situations: Typing a long SQL statement to change one value in the DB. Re-typing the same SQL statement over and over, possibly with slight variations. Working with multiple databases on separate machines. Using databases from different vendors, such as Oracle, MySQL or PostgreSQL. Teachers, students, or other folks who need to work with databases but are not SQL experts. For anyone who needs to work with an RDBMS, the SQL Generator can make life easier. The user can click on tables to view them and edit data, or use full SQL operations. Data can be viewed in read-only mode for safety, or in an editable mode where it may be modified by simply typing the new data into the table. All of the meta-data for the database (eg: data types, table column names, etc.) are accessible through SQL Generator. In cases where multiple types of database engines are being used (eg: Oracle, MySQL, PostgreSQL, etc.), the user does not need to learn multiple DB-management tools since SQL Generator provides a common mechanism for accessing them all. Through the JDBC standard and todays broad availability of JDBC drivers the Java platform is able to access almost all relational databases. JDBC provides a formerly unknown level of uniformity and simplicity. Thus the JDBC API together with the Java platform offers software developers uniform and easy to use access to almost all relational databases.
2.3.2 Product perspective The Query generator is a package to be used by users to generate all necessary SQL queries and commands and relieves the user of the overhead of remembering SQL syntaxes.. This system is developed on the basis of benefits greatly to the users that are not comfortable with sql. 2.4 Product functions 1.Enable Table Creation Support 2. Query generated can be saved as well as executed 3. Adding Constraints Foreign Key
P: F-SMR-UG/08/R0
P: F-SMR-UG/08/R0
2.8 Specific requirements 2.8.1 Usage scenario This section provides a usage scenario for the software. It is the organized information collected during requirements elicitation into use-cases. 2.8.2 User profiles User : user will log into the application then using the GUI he will created the required query Use-cases
Create Table
Add constraints
Unique
Check constraint
Rename Table
Modify Table
Drop Table
Add Column
Delete Column
P: F-SMR-UG/08/R0
P: F-SMR-UG/08/R0
3. Software design : The proposed System is a database administration tool. It uses JDBC to allow users to explore and interact with databases via a JDBC driver. It provides an interactive interface that allows users to select options and generate all necessary SQL queries at the click of a button. The software also offers code completion and syntax highlighting for standard SQL. As the program has been written completely in Java, it provides an architecture that allows writers to modify much of the application's behavior to provide database-specific functionality or features that are database-independent. As this desktop application is written entirely in Java with Swing UI components, it should run on any platform that has a JVM. While using a Relational Database System (RDBMS), you must have probably run across one or more of the following situations: Typing a long SQL statement to change one value in the DB. Re-typing the same SQL statement over and over, possibly with slight variations. Working with multiple databases on separate machines. Using databases from different vendors, such as Oracle, MySQL or PostgreSQL. Teachers, students, or other folks who need to work with databases but are not SQL experts. For anyone who needs to work with an RDBMS, the SQL Generator can make life easier. The user can click on tables to view them and edit data, or use full SQL operations. Data can be viewed in read-only mode for safety, or in an editable mode where it may be modified by simply typing the new data into the table. All of the meta-data for the database (eg: data types, table column names, etc.) are accessible through SQL Generator. In cases where multiple types of database engines are being used (eg: Oracle, MySQL, PostgreSQL, etc.), the user does not need to learn multiple DB-management tools since SQL Generator provides a common mechanism for accessing them all.
P: F-SMR-UG/08/R0
P: F-SMR-UG/08/R0
P: F-SMR-UG/08/R0
6. Modify Tables
P: F-SMR-UG/08/R0
P: F-SMR-UG/08/R0