File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
push :
6
6
branches :
7
- - master
7
+ - main
8
8
9
9
jobs :
10
10
build :
57
57
# Node.js version. Thus, we have to checkout the code manually.
58
58
# Doing so is a bit tricky when it comes to PRs from forks (see #249 for details). The general idea here is that
59
59
# we access Github's context information for the event triggering the action's execution and use some details on
60
- # the PR's HEAD if given. Otherwise (for executions due to master updates), we still use the provided
60
+ # the PR's HEAD if given. Otherwise (for executions due to main branch updates), we still use the provided
61
61
# environment variables.
62
62
run : |
63
63
apt-get update
Original file line number Diff line number Diff line change 1
1
C++ SQL Parser
2
2
=========================
3
- [ ![ Build Status] ( https://github.com/hyrise/sql-parser/actions/workflows/ci.yml/badge.svg?branch=master )] ( https://github.com/hyrise/sql-parser/actions?query=branch%3Amaster )
3
+ [ ![ Build Status] ( https://github.com/hyrise/sql-parser/actions/workflows/ci.yml/badge.svg?branch=main )] ( https://github.com/hyrise/sql-parser/actions?query=branch%3Amain )
4
4
5
5
6
6
This is a SQL Parser for C++. It parses the given SQL query into C++ objects.
@@ -20,7 +20,7 @@ To use the SQL parser in your own projects you simply have to follow these few s
20
20
3 . * (Optional, Recommended)* Run ` make install ` to copy the library to ` /usr/local/lib/ `
21
21
4 . Run the tests ` make test ` to make sure everything worked
22
22
5 . Include the ` SQLParser.h ` from ` src/ ` (or from ` /usr/local/lib/hsql/ ` if you installed it) and link the library in your project
23
- 6 . Take a look at the [ example project here] ( https://github.com/hyrise/sql-parser/tree/master /example )
23
+ 6 . Take a look at the [ example project here] ( https://github.com/hyrise/sql-parser/tree/main /example )
24
24
25
25
``` cpp
26
26
#include " hsql/SQLParser.h"
Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ elif [ "$1" = "staged" ]; then
19
19
# Run on all files that are staged to be committed.
20
20
git diff --diff-filter=d --cached --name-only | grep -E " $source_regex " | xargs -I{} sh -c " ${format_cmd} "
21
21
else
22
- # Run on all changed as well as untracked cpp/hpp files, as compared to the current master . Skip deleted files.
23
- { git diff --diff-filter=d --name-only master & git ls-files --others --exclude-standard; } | grep -E " $source_regex " | xargs -I{} sh -c " ${format_cmd} "
22
+ # Run on all changed as well as untracked cpp/hpp files, as compared to the current main . Skip deleted files.
23
+ { git diff --diff-filter=d --name-only main & git ls-files --others --exclude-standard; } | grep -E " $source_regex " | xargs -I{} sh -c " ${format_cmd} "
24
24
fi
You can’t perform that action at this time.
0 commit comments