Skip to content

Commit

Permalink
Merge pull request microsoft#345 from Microsoft/metadataCaching
Browse files Browse the repository at this point in the history
Metadata caching
  • Loading branch information
AfsanehR-zz authored Jun 16, 2017
2 parents 1da02b5 + 24913f0 commit 369e913
Show file tree
Hide file tree
Showing 23 changed files with 4,254 additions and 395 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ local.properties
.classpath
.vscode/
.settings/
.gradle/
.loadpath

# External tool builders
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ repositories {
dependencies {
compile 'com.microsoft.azure:azure-keyvault:0.9.7',
'com.microsoft.azure:adal4j:1.1.3'

testCompile 'junit:junit:4.12',
'org.junit.platform:junit-platform-console:1.0.0-M3',
'org.junit.platform:junit-platform-commons:1.0.0-M3',
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>2.6.0</version>
<version>2.6.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
28 changes: 28 additions & 0 deletions src/main/java/com/microsoft/sqlserver/jdbc/ParsedSQLMetadata.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Microsoft JDBC Driver for SQL Server
*
* Copyright(c) Microsoft Corporation All rights reserved.
*
* This program is made available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/

package com.microsoft.sqlserver.jdbc;

/**
* Used for caching of meta data from parsed SQL text.
*/
final class ParsedSQLCacheItem {
/** The SQL text AFTER processing. */
String processedSQL;
int parameterCount;
String procedureName;
boolean bReturnValueSyntax;

ParsedSQLCacheItem(String processedSQL, int parameterCount, String procedureName, boolean bReturnValueSyntax) {
this.processedSQL = processedSQL;
this.parameterCount = parameterCount;
this.procedureName = procedureName;
this.bReturnValueSyntax = bReturnValueSyntax;
}
}

Loading

0 comments on commit 369e913

Please sign in to comment.