This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE DEFINER=`root`@`localhost` PROCEDURE `GetUser`() | |
| BEGIN | |
| SELECT * FROM USER ORDER BY FIRST_NAME; | |
| END | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE DEFINER=`root`@`localhost` PROCEDURE `GetUser`() | |
| BEGIN | |
| SELECT * FROM USER ORDER BY FIRST_NAME; | |
| END | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE PROCEDURE `GetByCity`(IN cityName varchar(255)) | |
| BEGIN | |
| select * from user where city=cityName; | |
| END | |
| //call test_db.GetByCity('Pune'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE PROCEDURE `GetCityCountByName`(IN cityName varchar(255), OUT total INT) | |
| BEGIN | |
| select COUNT(*) into total from user where city=cityName; | |
| END | |
| //call test_db.GetCityCountByName('Belagavi', @total); | |
| //select @total; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DELIMITER $$ | |
| CREATE PROCEDURE GetCustomerLevel( | |
| IN pCustomerNumber INT, | |
| OUT pCustomerLevel VARCHAR(20)) | |
| BEGIN | |
| DECLARE credit DECIMAL(10,2) DEFAULT 0; | |
| SELECT creditLimit | |
| INTO credit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DELIMITER $$ | |
| CREATE PROCEDURE GetDeliveryStatus( | |
| IN pOrderNumber INT, | |
| OUT pDeliveryStatus VARCHAR(100) | |
| ) | |
| BEGIN | |
| DECLARE waitingDay INT DEFAULT 0; | |
| SELECT | |
| DATEDIFF(requiredDate, shippedDate) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1xx-Informal | |
| 100-Continue | |
| 2xx-Success | |
| 200-Ok | |
| 201-Created | |
| 202-Accepted | |
| 204-No-Content | |
| 3xx-Redirection | |
| 304-Not Modified | |
| 4xx-Client Error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node { | |
| echo "=======================================" | |
| echo "JENKINS_HOME = ${env.JENKINS_HOME}" | |
| echo "JOB_NAME = ${env.JOB_NAME}" | |
| echo "REPO_GIT = " + REPO_GIT | |
| echo "DEFAULT_GIT_BRANCH = "+ DEFAULT_GIT_BRANCH | |
| echo "SONAR_SERVER = "+ SONAR_SERVER | |
| echo "=======================================" | |
| def sonarInstance=hudson.plugins.sonar.SonarInstallation.get(SONAR_SERVER).name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| /* | |
| Please make sure to add the following environment variables: | |
| HEROKU_PREVIEW=<your heroku preview app> | |
| HEROKU_PREPRODUCTION=<your heroku pre-production app> | |
| HEROKU_PRODUCTION=<your heroku production app> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Comparator vs Comparable |