Skip to content

Commit 99b7c82

Browse files
author
Melony QIN
authored
Merge pull request #1 from microsoft/master
merge sql sample master
2 parents 91a4434 + ee4cfac commit 99b7c82

58 files changed

Lines changed: 7986 additions & 2194 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*.php]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.bat]
14+
end_of_line = crlf

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
test_LFS.bak filter=lfs diff=lfs merge=lfs -text
2+
*.tar filter=lfs diff=lfs merge=lfs -text

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,3 +441,6 @@ samples/features/sql-management-objects/src/out/CodeCoverage/CodeCoverage.config
441441
# Certificates
442442
*.pem
443443
*.p12
444+
445+
# Composer
446+
/vendor/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![](./media/solutions-microsoft-logo-small.png)
22

3-
# SQL Server Samples Repository
4-
This GitHub repository contains code samples that demonstrate how to use Microsoft's SQL products including SQL Server, Azure SQL Database, and Azure SQL Data Warehouse. Each sample includes a README file that explains how to run and use the sample.
3+
# Azure Data SQL Samples Repository
4+
This GitHub repository contains code samples that demonstrate how to use Microsoft's Azure Data products including SQL Server, Azure SQL Database, Azure Synapse, and Azure SQL Edge. Each sample includes a README file that explains how to run and use the sample.
55

66
Note that certain features like In-Memory OLTP are edition specific for SQL Server and would be possible to implement if the edition which supports that feature is being used to run the sample.
77

composer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "microsoft/sql-server-samples",
3+
"description": "Official Microsoft GitHub Repository containing code samples for SQL Server",
4+
"type": "project",
5+
"require": {
6+
"php": ">=7.0.0"
7+
},
8+
"require-dev": {
9+
"squizlabs/php_codesniffer": "^3.5"
10+
},
11+
"license": "MIT",
12+
"minimum-stability": "stable",
13+
"scripts": {
14+
"cs-check": "phpcs -p --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1",
15+
"cs-fix": "phpcbf -p --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1"
16+
}
17+
}

composer.lock

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml.dist

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="MS SQL Server Examples">
3+
<description>The coding standard for MS SQL Server PHP Examples.</description>
4+
5+
<!-- Folders & files to be checked -->
6+
<file>samples/tutorials/php</file>
7+
8+
<!-- File extensions to be checked -->
9+
<arg name="extensions" value="php"/>
10+
11+
<!-- PSR-2 base standard -->
12+
<rule ref="PSR2"/>
13+
14+
<!-- Disable code style sniff on side effects -->
15+
<rule ref="PSR1">
16+
<exclude name="PSR1.Files.SideEffects"/>
17+
</rule>
18+
19+
<!-- General sniffs -->
20+
<rule ref="Generic.Files.LineLength"/>
21+
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
22+
<rule ref="Squiz.Commenting.FunctionCommentThrowTag"/>
23+
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
24+
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
25+
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
26+
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
27+
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
28+
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
29+
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
30+
<rule ref="Generic.Formatting.NoSpaceAfterCast"/>
31+
<rule ref="Squiz.Operators.ValidLogicalOperators"/>
32+
<rule ref="Generic.PHP.DeprecatedFunctions"/>
33+
<rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops"/>
34+
<rule ref="Squiz.PHP.Eval"/>
35+
<rule ref="Generic.PHP.ForbiddenFunctions"/>
36+
<rule ref="Squiz.PHP.NonExecutableCode"/>
37+
<rule ref="Squiz.Classes.ClassFileName"/>
38+
<rule ref="Squiz.Scope.MemberVarScope"/>
39+
<rule ref="Squiz.Scope.StaticThisUsage"/>
40+
<rule ref="Squiz.WhiteSpace.CastSpacing"/>
41+
<rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/>
42+
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
43+
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
44+
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
45+
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace"/>
46+
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
47+
<properties>
48+
<property name="equalsSpacing" value="1"/>
49+
</properties>
50+
</rule>
51+
52+
</ruleset>
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:1e1491c56b21ba95a08426946dabec69fff562c2d8fe07ecd8c64672ff1d6150
3+
size 197758464
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:aa278ddc530fa552b1af5836871db1070da77b1dfcc316555f231902041e3d65
3+
size 205559808

0 commit comments

Comments
 (0)