Code Monkey home page Code Monkey logo

msg_app's Introduction

This program should be run on @well.cs.ucr.edu server, with postgre sql installed.

Files description:

  • project/data - contains the files, which will be used to populate your database
  • project/sql/src/create tables.sql - SQL script creating the database relational schema. It also includes the commands to drop these tables.
  • project/sql/src/create indexes.sql - SQL script which creates database indexes. Initially is empty, you should add all your indexes to this file.
  • project/sql/src/load data.sql - SQL script for loading the data in your tables. The script loads each text file into the appropri- ate table. Note that the file paths have to be changed to absolute paths in order to make it work.
  • project/sql/scripts/create db.sh - shell script, which you should to setup your database.
  • project/java/src/Messenger.java - A basic java User Interface to your Postgres database. All SQL-specific code locates there.
  • project/java/scripts/compile.sh -compiles & runs your java code.
  • project/java/lib/pg73jdbc3.jar - The Postgres JDBC driver, which is necessary for your Java code.

Change path to data files in project/sql/src/load data.sql. Use absolute paths to avoid ambiguity. After that your load statements should look like this:

COPY USER LIST
FROM ’/home/user/project/data/usr list .csv ’ 
WITH DELIMITER ’ ; ’ ;

Execute project/sql/scripts/create db.sh to load your database

Execute project/java/scripts/compile.sh to compile and run your Java client.

msg_app's People

Contributors

renee7547 avatar

Watchers

James Cloos 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.