-
Notifications
You must be signed in to change notification settings - Fork 0
feat: JSONL import/export functionality for SQL adapters #133
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
19bd8aa
feat: add base converter and SQL-specific implementation
mehmetcanay c337eb4
feat: extend base and SQL adapters with import_from_jsonl support
mehmetcanay d2791f8
feat: extend base and SQL adapters with import_from_jsonl support
mehmetcanay 8493d3b
refactor: deprecate close function
mehmetcanay bc66dec
test: move JSONL export tests to base repository test setup
mehmetcanay eb9f79f
fix: conver numpy array to list before dumping into JSON
mehmetcanay 62a8302
chore(model): drop unused column from SQL schema
mehmetcanay 0bdd619
feat(import): add key validation for required fields in JSONL import
mehmetcanay 0778b08
refactor: replace str with Literal for stricter type safety in functi…
mehmetcanay dd7ea1b
chore(test): minor changes
mehmetcanay 8f0d6f8
test: add JSONL import tests for SQL adapters
mehmetcanay 93b8321
revert Weaviate adapter logic
mehmetcanay 3bef1b7
refactor: deprecate close and remove folder deletion logic from shut_…
mehmetcanay 716be07
refactor(test): remove redundant shut_down
mehmetcanay 6c0f8f1
refactor: change the deprecated function and clearing logic
mehmetcanay f9a0bad
refactor(test): clean database in setUp
mehmetcanay af84a64
fix: concept and mapping objects written into same file
mehmetcanay 2e0fb3a
refactor: expose PostgreSQLRepository
mehmetcanay 930e920
chore: used exposed repository imports
mehmetcanay 51fdd4b
delete: redundant test
mehmetcanay 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
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 |
|---|---|---|
| @@ -1,14 +1,6 @@ | ||
| from .model import Concept, Mapping, Terminology | ||
| from .postgresql import PostgreSQLRepository | ||
| from .sqllite import SQLLiteRepository | ||
| from .weaviate import WeaviateRepository | ||
| from .weaviate_schema import (concept_schema, | ||
| mapping_schema_preconfigured_embeddings, | ||
| mapping_schema_user_vectors, terminology_schema) | ||
|
|
||
| __all__ = [ | ||
| "Terminology", | ||
| "Concept", | ||
| "Mapping", | ||
| "SQLLiteRepository", | ||
| "WeaviateRepository", | ||
| ] | ||
| __all__ = ["Terminology", "Concept", "Mapping", "SQLLiteRepository", "WeaviateRepository", "PostgreSQLRepository"] |
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.