Skip to content
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

Add SurrealDB datasource support #1361

Open
wants to merge 40 commits into
base: development
Choose a base branch
from

Conversation

vaidehiadhi
Copy link
Contributor

@vaidehiadhi vaidehiadhi commented Jan 4, 2025

Pull Request Template

Description:

  • i have added surrealDB datasource support to gofr following the previous datasource implementation as an example
  • closes the issue Add support for SurrealDB Add support for SurrealDB #1348

Additional Information:

  • i am running docker locally and then connecting it to the surrealDB database.
    this is the docker command
    surreal sql --conn ws://localhost:8000 --user root --pass root
    Checklist:

  • I have formatted my code using goimport and golangci-lint.

  • All new code is covered by unit tests.

  • This PR does not decrease the overall code coverage.

  • I have reviewed the code comments and documentation for clarity.

Thank you for your contribution!

docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealDB.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealDB.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealDB.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealDB.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealDB.go Outdated Show resolved Hide resolved
pkg/gofr/external_db.go Outdated Show resolved Hide resolved
pkg/gofr/external_db.go Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/interface.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/utils.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/utils.go Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/external_db.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb_test.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/interface.go Outdated Show resolved Hide resolved
docs/advanced-guide/injecting-databases-drivers/page.md Outdated Show resolved Hide resolved
pkg/gofr/container/datasources.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/interface.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/container/datasources.go Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
@ccoVeille
Copy link
Contributor

BTW @vaidehiadhi thank you for baring with my reviews, feedbacks and questions.

I appreciate

pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
pkg/gofr/datasource/surrealdb/surrealdb.go Outdated Show resolved Hide resolved
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.

5 participants