-
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
68
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 13 commits
Commits
Show all changes
68 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 cc9fc07
chore: refactor dotnet lib
olavloite c25dcee
chore: separate native lib + use standard dotnet runtime setup
olavloite 56d667e
Merge branch 'main' into spanner-lib
olavloite e83455c
chore: cleanup
olavloite 9a4249b
Merge branch 'main' into spanner-lib
olavloite 9a33505
chore: add benchmark
olavloite 6a6999e
Merge branch 'main' into spanner-lib
olavloite dc717a3
chore: bump native lib version
olavloite 94a3746
chore: bump version for both dotnet libs
olavloite bfc8923
refactor: add grpc server
olavloite aaba345
chore: test with CPP lib
olavloite 5fccbde
Merge branch 'main' into spanner-lib
olavloite 4825aa4
chore: add generic transactional connection state
olavloite 1803771
chore: move connection variables to connection state
olavloite 7f78b3b
chore: parse SET/SHOW statements with simple parser
olavloite 5da0cbe
chore: use a callback to supply tx opts
olavloite cf68db7
chore: replace ExecOptions for connection variables
olavloite d7b55fc
Merge branch 'main' into replace-exec-options-with-connection-variables
olavloite 72aa0c8
Merge branch 'main' into replace-exec-options-with-connection-variables
olavloite abc6e5b
Merge branch 'replace-exec-options-with-connection-variables' into sp…
olavloite 88f2dbf
feat: create/drop database statements
olavloite bd4e2b4
Merge branch 'create-drop-database' into spanner-lib
olavloite d0a5fc3
feat: create/drop database statements
olavloite 5d9f46e
Merge branch 'create-drop-database' into spanner-lib
olavloite 2c18d41
Merge branch 'main' into spanner-lib
olavloite 5a193a8
chore: cache parsed statements and remove regex loading
olavloite 617308d
chore: move parser to separate package
olavloite c299895
Merge branch 'main' into move-parser-to-separate-package
olavloite 8064e3d
chore: cleanup and add comments
olavloite 16dd72e
Merge branch 'move-parser-to-separate-package' into spanner-lib
olavloite 9c99bcb
chore: add more tests
olavloite 448daab
Merge branch 'main' into spanner-lib
olavloite d3fe254
Merge branch 'main' into spanner-lib
olavloite dd4ed73
chore: remove the backend package
olavloite 0e5ac05
chore: pull retry_aborts_internally when needed
olavloite 928ee4d
chore: add options for numRows and encoding
olavloite 23f6ea6
Merge branch 'pull-retry-aborts' into spanner-lib
olavloite ec75601
feat: support BEGIN, COMMIT and ROLLBACK statements
olavloite 2bf6e3e
Merge branch 'tx-statements' into spanner-lib
olavloite 900e003
chore: remove transaction id from api
olavloite c7c0792
Merge branch 'main' into spanner-lib
olavloite 013a61c
chore: add .NET specification tests
olavloite f6366d4
chore: remove as many proto files as possible
olavloite 5b272c9
Merge branch 'main' into spanner-lib
olavloite bd774ef
chore: remove more protos
olavloite 63f4ac6
chore: remove unused code
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,39 @@ | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
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 | ||
|
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.
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.