-
Notifications
You must be signed in to change notification settings - Fork 27
chore: create shared lib for connections #420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
olavloite
wants to merge
22
commits into
main
Choose a base branch
from
spanner-lib
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
d1d3109
chore: create shared lib for connections
olavloite 3447ae4
Merge branch 'main' into spanner-lib
olavloite 4d7aad9
chore: add more features
olavloite 21a1c4a
Merge branch 'main' into spanner-lib
olavloite 93f38ba
feat: add transactions
olavloite 312ff67
docs: add code comments
olavloite f898b49
Merge branch 'main' into spanner-lib
olavloite 251d4ce
feat: move metadata and stats to separate result sets
olavloite 8ac5e6b
feat: add option to return metadata and stats
olavloite 304082f
Merge branch 'main' into return-metadata-and-stats
olavloite f9ff983
Merge branch 'return-metadata-and-stats' into spanner-lib
olavloite 2de8b88
feat: support timestampbound for single-use read-only tx
olavloite 6667833
test: add more tests
olavloite 3a1ce86
feat: add mutations support
olavloite 91cf56c
test: add tests for dotnet
olavloite b819fd9
Merge branch 'main' into spanner-lib
olavloite 3db43be
Merge branch 'main' into spanner-lib
olavloite 872a83d
chore: go mod tidy
olavloite ce6db93
chore: refactor dotnet lib
olavloite 9ab50f2
chore: use separate classes per arch
olavloite 4b910fb
chore: update description
olavloite 2cf0e32
chore: change libraries to packed content
olavloite File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
name: Spanner Lib Tests | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
go-version: [1.23.x, 1.24.x] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Run unit tests | ||
working-directory: spannerlib/exported | ||
run: go test -race -short | ||
|
||
build-lib: | ||
strategy: | ||
matrix: | ||
go-version: [1.23.x, 1.24.x] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Build shared lib | ||
working-directory: spannerlib | ||
run: go build -o spannerlib.so -buildmode=c-shared | ||
|
||
|
||
test-dotnet: | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.24 | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Build shared lib | ||
working-directory: spannerlib | ||
run: go build -o spannerlib.so -buildmode=c-shared | ||
- name: Copy lib to dotnet folder | ||
working-directory: spannerlib | ||
run: cp spannerlib.so dotnet-spannerlib/Google.Cloud.SpannerLib/native/linux-x64/spannerlib.so | ||
- name: Install dotnet | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '9.0.x' | ||
- name: dotnet version | ||
run: dotnet --version | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
working-directory: spannerlib/dotnet-spannerlib | ||
- name: Build | ||
run: dotnet build --no-restore | ||
working-directory: spannerlib/dotnet-spannerlib | ||
- name: Unit Tests | ||
working-directory: spannerlib/dotnet-spannerlib/Google.Cloud.SpannerLib.Tests | ||
run: dotnet test --no-build --verbosity normal |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.