Git Product home page Git Product logo

levesql_p1's Introduction

LeveSQL_p1

This ORM implementation does basic CRUD and where clauses. The user will have to set up a couple things, for example the user can insert into a table but the user will have to go to an IDE for databases to create the table.

Further steps are stated below:

one of the first things needed is going to be properties taken from a .properties file so the first thing will be initializing the properties then trying to load the properties from the file. the user will have to give a file path to where the .properties file is located.

after the properties are given they will need to be passed to the ConnectionPool object in order for connection pooling to be used in order to access the database.

.Create() will need to be invoked after passing the properties in. I recommend: ....... new ConnectionPooling().Create();

I also reccomment creating a ArrayList for future use in holding the results from a select statement after than you can access the Metamodel object in order to be able to access the database commands for now it has basic CRUD functionality

Metamodel<> example = new Metamodel<>(, );

now with access to the Metamodel you can use: example.insertion... example.deletion... etc.

to insert: example.insertion().insertValues().validateAndRunInsertion();

to delete: example.deletion().validateAndRunDeletion(); // can also use where clauses to choose specific records

to update: example.updating().setValues().initialWhere(,<a WhereCondition holding equals, not equals, less than,etc>,).validateAndRunUpdate();

to select: you are going to want to use that arrayList I mentioned above and set it equal to the all this

result = example.selection().initialWhere(SAME AS ABOVE EXAMPLE FOR WHERE).validateAndRunSelection();

.selection() will grab everything but if you want just specific columns just say .selection(...);

lastly the user will have access to the information!

// the results is an array list but to get a single record I reccomned making a reference to the same object used to create the metamodel for(int i = 0; i < result.size(); i++){ job = (Job) result.remove(i); // now you can use this job to access the parts of the record through getters job.getJob() job.getSalary() etc }

levesql_p1's People

Contributors

kml160030 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.