List of commits:
Subject Hash Author Date (UTC)
Brief example of calling a procedure from a program. 1054c9d5c83fb956bdd0b8d884d5ce2c8a9a640e aubert@math.cnrs.fr 2020-11-30 19:00:45
Added solution to second exam d8f62ded96991885a96d561db587988d453a28c8 aubert@math.cnrs.fr 2020-11-05 20:35:50
Quick fix on testing semicolons. 7f48d88d2ed69213d803a7736df3d50330cfecd1 aubert@math.cnrs.fr 2020-11-03 14:14:06
Added simple example to test if semicolon are important in SQL querries. 98097fb11558c08bad630fb3351f99ceb6777de7 aubert@math.cnrs.fr 2020-11-03 14:11:22
Updated spots to https. a8daf1768395aa296bf0dd05783dd53c757d5d19 aubert@math.cnrs.fr 2020-10-05 16:18:44
Adding quiz #2 98e0ae5b8ce766524f60c91adb1040235e1bbf31 aubert@math.cnrs.fr 2020-10-02 19:00:15
Added exam 1 e2f62ae4bf26fcc4b86e8665060ccf3918e7abeb aubert@math.cnrs.fr 2020-09-24 12:51:36
worked on solution to first exam. b13ad99dd895f124df1b642fd990071fc09db294 aubert@math.cnrs.fr 2020-09-23 17:44:01
Added solution to first problem. 0948cee47ed78dc115fd69c7bcf96a312dd3162f aubert@math.cnrs.fr 2020-09-18 21:43:00
Added solution to problem 2 of Exam #1. 7ad20b3c0025a4de3fa00729de570c6fe9176773 aubert@math.cnrs.fr 2020-09-18 21:34:19
Added solution to project 1. de427d78745593ab53dc70e7129b67fee1d4489c aubert@math.cnrs.fr 2020-09-10 19:04:45
Added example for MAX and NULL values. b82a496a5ffbcecaf2c5851f18d1b08ce8732623 aubert@math.cnrs.fr 2020-09-10 13:14:13
Changed SQL code formatting. 6c3cad5a2545f46ab113f7df7a83457857d82ed8 aubert@math.cnrs.fr 2020-09-09 17:04:55
Cleaned code. 5bdb4faed3a83b81257734f1e1aced2890783f04 aubert@math.cnrs.fr 2020-09-03 21:35:41
Added the first project. 564a02887933f2395bc40d7d8a10833f657659fd aubert@math.cnrs.fr 2020-08-28 22:34:08
Week 2 edits, added quiz #1, couple of fixes, replaced single quote with double quotes. 3c9942731678900122088356db3a2cbabd99b9be aubert@math.cnrs.fr 2020-08-27 19:00:13
Added ressource for makefile. 7696c44bca707646530a7dbb71bf2e05badaa306 aubert@math.cnrs.fr 2020-08-03 16:00:23
Crystal's final edits. 714e3030423a836c4ba07890f9aa5e45f58ad15a aubert@math.cnrs.fr 2020-05-21 17:43:26
Converted an image into a figure (Movie example). c55e61ed5d11631e908d99b14ef10a0a0247bda0 aubert@math.cnrs.fr 2020-05-20 20:58:41
Re-formatted SQL code. 915442a1ba4d8baa120343f98de5ee39d4ac45f6 aubert@math.cnrs.fr 2020-05-18 15:52:06
Commit 1054c9d5c83fb956bdd0b8d884d5ce2c8a9a640e - Brief example of calling a procedure from a program.
Author: aubert@math.cnrs.fr
Author date (UTC): 2020-11-30 19:00
Committer name: aubert@math.cnrs.fr
Committer date (UTC): 2020-11-30 19:00
Parent(s): d8f62ded96991885a96d561db587988d453a28c8
Signer:
Signing key:
Signing status: N
Tree: 4f2612184d4b958f6f8b48ca0dc756f76b728d51
File Lines added Lines deleted
install/INSTALL.md 5 5
notes/Makefile 1 1
notes/code/java/CallProcedure.java 47 0
File install/INSTALL.md changed (mode: 100644) (index 3ab0f8f..18ea7f0)
... ... Type: `git clone https://github.com/poonamveeral/GeneralRepo`
192 192 16) Test pandoc-citeproc 16) Test pandoc-citeproc
193 193 * In the same install folder, type: * In the same install folder, type:
194 194
195 `pandoc --filter pandoc-citeproc test_pandoc-citeproc.md -o test_pandoc-citeproc.html`
195 `pandoc --citeproc test_pandoc-citeproc.md -o test_pandoc-citeproc.html`
196 196
197 197 * In the install folder, you should see a file called "test_pandoc-citeproc.html" containing * In the install folder, you should see a file called "test_pandoc-citeproc.html" containing
198 198
 
... ... Type: `git clone https://github.com/poonamveeral/GeneralRepo`
208 208
209 209 17) Test pandoc-include-code 17) Test pandoc-include-code
210 210 * In the same install folder, type: * In the same install folder, type:
211 `pandoc --filter pandoc-include-code -o test_pandoc-include-code.pdf test_pandoc-include-code.md`
211 ` `
212 212 * In the install folder, you should see a file called "test_pandoc-include-code.html" containing * In the install folder, you should see a file called "test_pandoc-include-code.html" containing
213 213
214 214 ```{html} ```{html}
 
... ... For our example, in your terminal, while in the directory of where your markdown
285 285 or or
286 286
287 287 ``` ```
288 pandoc --toc --filter pandoc-numbering --filter pandoc-citeproc --filter pandoc-include-code \
288 pandoc --toc --filter pandoc-numbering --citeproc --filter pandoc-include-code \
289 289 --top-level-division=chapter -M date="$(LANG=en_us_88591 date '+%B %e, %Y (%r)')" \ --top-level-division=chapter -M date="$(LANG=en_us_88591 date '+%B %e, %Y (%r)')" \
290 290 --pdf-engine=xelatex --pdf-engine-opt=-shell-escape -V links-as-notes \ --pdf-engine=xelatex --pdf-engine-opt=-shell-escape -V links-as-notes \
291 291 --default-image-extension=pdf -o example.pdf example.md --default-image-extension=pdf -o example.pdf example.md
 
... ... For our example, in your terminal, while in the directory of where your markdown
301 301 or or
302 302
303 303 ``` ```
304 pandoc  --toc --filter pandoc-numbering --filter pandoc-citeproc --filter pandoc-include-code \
304 pandoc  --toc --filter pandoc-numbering --citeproc --filter pandoc-include-code \
305 305 --top-level-division=chapter -M date="$(LANG=en_us_88591 date '+%B %e, %Y (%r)')" \ --top-level-division=chapter -M date="$(LANG=en_us_88591 date '+%B %e, %Y (%r)')" \
306 306 --default-image-extension=svg -o example.odt example.md --default-image-extension=svg -o example.odt example.md
307 307 ``` ```
 
... ... For our example, in your terminal, while in the directory of where your markdown
317 317 or or
318 318
319 319 ``` ```
320 pandoc --toc --filter pandoc-numbering --filter pandoc-citeproc --filter pandoc-include-code \
320 pandoc --toc --filter pandoc-numbering --citeproc --filter pandoc-include-code \
321 321 --top-level-division=chapter -M date="$(LANG=en_us_88591 date '+%B %e, %Y (%r)')" \ --top-level-division=chapter -M date="$(LANG=en_us_88591 date '+%B %e, %Y (%r)')" \
322 322 --css=style/style.css --toc-depth=1 --self-contained --default-image-extension=svg \ --css=style/style.css --toc-depth=1 --self-contained --default-image-extension=svg \
323 323 -o example.html example.md -o example.html example.md
File notes/Makefile changed (mode: 100644) (index 5e25416..788da61)
13 13
14 14 MAKEFLAGS:= -j MAKEFLAGS:= -j
15 15 # Maximize parallel execution whenever possible # Maximize parallel execution whenever possible
16 OPTIONSPANDOC:= --toc --filter pandoc-numbering --filter pandoc-citeproc --filter pandoc-include-code --top-level-division=chapter -M date="$$(LANG=en_us_88591 date '+%B %e, %Y (%r)')" --lua-filter filters/default-code-class.lua -M default-code-class=sqlmysql
16 OPTIONSPANDOC:= --toc --filter pandoc-numbering --citeproc --filter pandoc-include-code --top-level-division=chapter -M date="$$(LANG=en_us_88591 date '+%B %e, %Y (%r)')" --lua-filter filters/default-code-class.lua -M default-code-class=sqlmysql
17 17 # Options common to all invokations of pandoc. Cf https://pandoc.org/MANUAL.html to understand them. # Options common to all invokations of pandoc. Cf https://pandoc.org/MANUAL.html to understand them.
18 18 OPTIONSPANDOCODT:= $(OPTIONSPANDOC) --default-image-extension=svg OPTIONSPANDOCODT:= $(OPTIONSPANDOC) --default-image-extension=svg
19 19 OPTIONSPANDOCHTML:= $(OPTIONSPANDOC) --css=style/style.css -B style/foldable_toc.html -B style/anchors_header.html -A style/anchors_footer.html --section-divs --toc-depth=2 --self-contained --default-image-extension=svg OPTIONSPANDOCHTML:= $(OPTIONSPANDOC) --css=style/style.css -B style/foldable_toc.html -B style/anchors_header.html -A style/anchors_footer.html --section-divs --toc-depth=2 --self-contained --default-image-extension=svg
File notes/code/java/CallProcedure.java added (mode: 100644) (index 0000000..d772f1d)
1 // code/java/CallProcedure.java
2
3 import java.sql.*;
4
5 public class CallProcedure {
6 public static void main(String[] args) {
7 try (
8 Connection conn =
9 DriverManager.getConnection(
10 "jdbc:mysql://localhost:3306/HW_CALL_TEST"
11 + "?user=testuser"
12 + "&password=password"
13 + "&allowMultiQueries=true"
14 + "&createDatabaseIfNotExist=true"
15 + "&useSSL=true");
16 Statement stmt = conn.createStatement(); ) {
17 stmt.execute(
18 "DROP SCHEMA IF EXISTS HW_CALL_TEST;" + "CREATE SCHEMA HW_CALL_TEST;" + "USE HW_CALL_TEST;");
19
20 stmt.execute(
21 "CREATE TABLE Test1 ("
22 + "A VARCHAR(25) PRIMARY KEY, "
23 + "B INTEGER);");
24
25 stmt.execute("INSERT INTO Test1 VALUES ('Bob', 1), ('Crystal', 2), ('Jack', 1);");
26 // To create a procedure, we don't need to change the delimiter!
27 // Cf. https://stackoverflow.com/a/5314879/ for instance.
28 stmt.execute(" CREATE PROCEDURE List () "
29 + " BEGIN "
30 + " SELECT * "
31 + " FROM Test1; "
32 + " END; ");
33 // We create a CallabaleStatement object
34 // https://docs.oracle.com/javase/7/docs/api/java/sql/CallableStatement.html
35 // that extends PreparedStatements and allow to call procedures.
36 CallableStatement cs = conn.prepareCall("{call List}");
37 ResultSet rset = cs.executeQuery();
38 while(rset.next()){
39 System.out.println("The value of A is " + rset.getString("A") + " and the value of B is " + rset.getInt("B") + ".");
40 }
41
42 conn.close();
43 } catch (SQLException ex) {
44 ex.printStackTrace();
45 }
46 }
47 }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/caubert/CSCI_3410

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/caubert/CSCI_3410

Clone this repository using git:
git clone git://git.rocketgit.com/user/caubert/CSCI_3410

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main