Skip to content

Conversation

waqarahmed6095
Copy link
Contributor

@waqarahmed6095 waqarahmed6095 commented Apr 14, 2025

Adding sqlite implementation

Fixes #406

@waqarahmed6095 waqarahmed6095 requested a review from a team as a code owner April 14, 2025 14:09
@waqarahmed6095 waqarahmed6095 mentioned this pull request Apr 14, 2025
Copy link
Contributor

@Yuan325 Yuan325 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing! :) I left some comments for changes.

@waqarahmed6095 waqarahmed6095 requested a review from Yuan325 April 18, 2025 14:57
@waqarahmed6095 waqarahmed6095 changed the title sqlite implementation feat: sqlite implementation Apr 18, 2025
@Yuan325
Copy link
Contributor

Yuan325 commented Apr 18, 2025

/gcbrun

@waqarahmed6095 waqarahmed6095 requested a review from Yuan325 April 18, 2025 18:44
@waqarahmed6095 waqarahmed6095 requested a review from Yuan325 April 22, 2025 20:16
@Yuan325 Yuan325 added the tests: run Label to trigger Github Action tests. label Apr 23, 2025
@github-actions github-actions bot removed the tests: run Label to trigger Github Action tests. label Apr 23, 2025
waqarahmed6095 and others added 13 commits April 22, 2025 21:41
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Update SQLite source and tool configurations, add new test files, and modify .gitignore

- Added `modernc.org/sqlite` as a direct dependency in `go.mod`.
- Updated `go.sum` with new dependency versions.
- Refactored imports in `config.go` and `mcp.go` for consistency.
- Enhanced `sqlite.go` and `sqlitesql.go` with improved error handling and code formatting.
- Added new test files: `test.db`, `test.ipynb`, and `tools.yaml` to `.gitignore` for better project management.
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
waqarahmed6095 and others added 9 commits April 22, 2025 21:43
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
- Added `sqlite` to the list of tools in `.golangci.yaml`.
- Downgraded Go version to 1.22 in `go.mod` and updated toolchain version accordingly.
- Removed SQLite build steps from Cloud Build configuration files.
- Added a new integration test step for SQLite in `integration.cloudbuild.yaml`.
- Refactored `sqlitesql.go` to use `any` instead of `interface{}` for improved type handling.
@Yuan325 Yuan325 added the tests: run Label to trigger Github Action tests. label Apr 23, 2025
@github-actions github-actions bot removed the tests: run Label to trigger Github Action tests. label Apr 23, 2025
@Yuan325
Copy link
Contributor

Yuan325 commented Apr 23, 2025

@waqarahmed6095 Thank you so much for your contribution!

@Yuan325 Yuan325 merged commit fc14cbf into googleapis:main Apr 23, 2025
9 checks passed
github-actions bot pushed a commit that referenced this pull request Apr 23, 2025
Adding sqlite implementation

---------

Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan Teoh <yuanteoh@google.com> fc14cbf
github-actions bot pushed a commit to renovate-bot/googleapis-_-genai-toolbox that referenced this pull request Apr 23, 2025
Adding sqlite implementation

---------

Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan Teoh <yuanteoh@google.com> fc14cbf
duwenxin99 added a commit that referenced this pull request Apr 23, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](v0.3.0...v0.4.0)
(2025-04-23)


### Features

* Add `AuthRequired` to Neo4j & Dgraph Tools
([#434](#434))
([afbf4b2](afbf4b2))
* Add `AuthRequired` to tool manifest
([#433](#433))
([d9388ad](d9388ad))
* Add BigQuery source and tool
([#463](#463))
([8055aa5](8055aa5))
* Add Bigtable source and tool
([#418](#418))
([ae53b8e](ae53b8e))
* Add IAM AuthN to AlloyDB Source
([#399](#399))
([e8ed447](e8ed447))
* Add IAM AuthN to Cloud SQL Sources
([#414](#414))
([be85b82](be85b82))
* Add toolset feature to mcp
([#425](#425))
([e307857](e307857)),
closes [#403](#403)
* Add SQLite source and tool
([#438](#438))
([fc14cbf](fc14cbf))
* Support env replacement for tools.yaml
([#462](#462))
([eadb678](eadb678))


### Bug Fixes

* [#419](#419) TLS
https URL for SSE endpoint
([#420](#420))
([0a7d3ff](0a7d3ff))
* **docs:** Fix link 'Edit this page'
([#454](#454))
([969065e](969065e)),
closes [#427](#427)
* Update http error code from invocation
([#468](#468))
([ff7c0ff](ff7c0ff)),
closes [#465](#465)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com>
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
github-actions bot pushed a commit that referenced this pull request Apr 23, 2025
🤖 I have created a release *beep* *boop*
---

##
[0.4.0](v0.3.0...v0.4.0)
(2025-04-23)

### Features

* Add `AuthRequired` to Neo4j & Dgraph Tools
([#434](#434))
([afbf4b2](afbf4b2))
* Add `AuthRequired` to tool manifest
([#433](#433))
([d9388ad](d9388ad))
* Add BigQuery source and tool
([#463](#463))
([8055aa5](8055aa5))
* Add Bigtable source and tool
([#418](#418))
([ae53b8e](ae53b8e))
* Add IAM AuthN to AlloyDB Source
([#399](#399))
([e8ed447](e8ed447))
* Add IAM AuthN to Cloud SQL Sources
([#414](#414))
([be85b82](be85b82))
* Add toolset feature to mcp
([#425](#425))
([e307857](e307857)),
closes [#403](#403)
* Add SQLite source and tool
([#438](#438))
([fc14cbf](fc14cbf))
* Support env replacement for tools.yaml
([#462](#462))
([eadb678](eadb678))

### Bug Fixes

* [#419](#419) TLS
https URL for SSE endpoint
([#420](#420))
([0a7d3ff](0a7d3ff))
* **docs:** Fix link 'Edit this page'
([#454](#454))
([969065e](969065e)),
closes [#427](#427)
* Update http error code from invocation
([#468](#468))
([ff7c0ff](ff7c0ff)),
closes [#465](#465)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com>
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> 4ed16cc
github-actions bot pushed a commit to renovate-bot/googleapis-_-genai-toolbox that referenced this pull request Apr 23, 2025
🤖 I have created a release *beep* *boop*
---

##
[0.4.0](googleapis/genai-toolbox@v0.3.0...v0.4.0)
(2025-04-23)

### Features

* Add `AuthRequired` to Neo4j & Dgraph Tools
([googleapis#434](googleapis#434))
([afbf4b2](googleapis@afbf4b2))
* Add `AuthRequired` to tool manifest
([googleapis#433](googleapis#433))
([d9388ad](googleapis@d9388ad))
* Add BigQuery source and tool
([googleapis#463](googleapis#463))
([8055aa5](googleapis@8055aa5))
* Add Bigtable source and tool
([googleapis#418](googleapis#418))
([ae53b8e](googleapis@ae53b8e))
* Add IAM AuthN to AlloyDB Source
([googleapis#399](googleapis#399))
([e8ed447](googleapis@e8ed447))
* Add IAM AuthN to Cloud SQL Sources
([googleapis#414](googleapis#414))
([be85b82](googleapis@be85b82))
* Add toolset feature to mcp
([googleapis#425](googleapis#425))
([e307857](googleapis@e307857)),
closes [googleapis#403](googleapis#403)
* Add SQLite source and tool
([googleapis#438](googleapis#438))
([fc14cbf](googleapis@fc14cbf))
* Support env replacement for tools.yaml
([googleapis#462](googleapis#462))
([eadb678](googleapis@eadb678))

### Bug Fixes

* [googleapis#419](googleapis#419) TLS
https URL for SSE endpoint
([googleapis#420](googleapis#420))
([0a7d3ff](googleapis@0a7d3ff))
* **docs:** Fix link 'Edit this page'
([googleapis#454](googleapis#454))
([969065e](googleapis@969065e)),
closes [googleapis#427](googleapis#427)
* Update http error code from invocation
([googleapis#468](googleapis#468))
([ff7c0ff](googleapis@ff7c0ff)),
closes [googleapis#465](googleapis#465)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com>
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> 4ed16cc
jeffreyrubi pushed a commit to jeffreyrubi/genai-toolbox that referenced this pull request Jun 7, 2025
Adding sqlite implementation

---------

Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Co-authored-by: Yuan Teoh <yuanteoh@google.com>
jeffreyrubi pushed a commit to jeffreyrubi/genai-toolbox that referenced this pull request Jun 7, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](googleapis/genai-toolbox@v0.3.0...v0.4.0)
(2025-04-23)


### Features

* Add `AuthRequired` to Neo4j & Dgraph Tools
([googleapis#434](googleapis#434))
([afbf4b2](googleapis@afbf4b2))
* Add `AuthRequired` to tool manifest
([googleapis#433](googleapis#433))
([d9388ad](googleapis@d9388ad))
* Add BigQuery source and tool
([googleapis#463](googleapis#463))
([8055aa5](googleapis@8055aa5))
* Add Bigtable source and tool
([googleapis#418](googleapis#418))
([ae53b8e](googleapis@ae53b8e))
* Add IAM AuthN to AlloyDB Source
([googleapis#399](googleapis#399))
([e8ed447](googleapis@e8ed447))
* Add IAM AuthN to Cloud SQL Sources
([googleapis#414](googleapis#414))
([be85b82](googleapis@be85b82))
* Add toolset feature to mcp
([googleapis#425](googleapis#425))
([e307857](googleapis@e307857)),
closes [googleapis#403](googleapis#403)
* Add SQLite source and tool
([googleapis#438](googleapis#438))
([fc14cbf](googleapis@fc14cbf))
* Support env replacement for tools.yaml
([googleapis#462](googleapis#462))
([eadb678](googleapis@eadb678))


### Bug Fixes

* [googleapis#419](googleapis#419) TLS
https URL for SSE endpoint
([googleapis#420](googleapis#420))
([0a7d3ff](googleapis@0a7d3ff))
* **docs:** Fix link 'Edit this page'
([googleapis#454](googleapis#454))
([969065e](googleapis@969065e)),
closes [googleapis#427](googleapis#427)
* Update http error code from invocation
([googleapis#468](googleapis#468))
([ff7c0ff](googleapis@ff7c0ff)),
closes [googleapis#465](googleapis#465)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com>
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sqlite
3 participants