Giter VIP home page Giter VIP logo

databaseproject2018's Introduction

DataBaseProject2018

A prototype of a database made in C, the Database script were made in PostGreSQL

Features

  • CRUD operations
  • Show 'Relatorios'
    • Relatório de participantes e funcionários do evento
    • Funcionários de uma determinada função do evento
    • Locais disponíveis apra uma determinada data e horário
    • Datas e horários indisponíveis para um determinado local
    • Quantidade de eventos por cidade em um período de tempo
    • Insumos / brinquedos / presentes mais consumidos em eventos (note que consiste de um select para cada tipo)
    • Empresas fornecedoras de um determinado insumo, presente ou brinquedo
    • Frequência de quais universidades / cursos as turmas contratam mais

How-to

To run the application first you have to run the scripts for creating the tables and inserting new tuples to it.

How to insert scripts

First you have to copy all the .sql to /var/lib/postgresql directory (to do that, you gotta use sudo permissions):

sudo cp <.sql files> /var/lib/postgresql

Now just enter on your PostGreSQL application and log in, once you are on your postgresql account run:

\i inserts.sql
\i createsSQL.sql

Running Application

Now that you created the tables and inserted new tuples, run:

make

and run:

/out <DBuser> <DBpassword> <DBname>

where:

  • DBuser = The username of your database
  • DBpassword = The password of your database
  • DBname = Your database name

The application is running on Terminal, so bigger the Terminal screen, better! Enjoy!

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.