generated from ensaremirerol/nextjs-fastapi-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b11e850
commit f8aa527
Showing
19 changed files
with
112 additions
and
68 deletions.
There are no files selected for viewing
Empty file.
This file contains 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 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 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 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 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 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 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 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 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,11 +1,11 @@ | ||
from server.services.core.sqlite_db_service.tables.config import ( | ||
Config, | ||
ConfigTable, | ||
) | ||
from server.services.core.sqlite_db_service.tables.workspace_metadata import ( | ||
WorkspaceMetadata, | ||
WorkspaceMetadataTable, | ||
) | ||
|
||
__all__ = [ | ||
"Config", | ||
"WorkspaceMetadata", | ||
"ConfigTable", | ||
"WorkspaceMetadataTable", | ||
] |
This file contains 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
24 changes: 24 additions & 0 deletions
24
server/services/core/sqlite_db_service/tables/file_metadata.py
This file contains 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,24 @@ | ||
from sqlalchemy import String | ||
from sqlalchemy.orm import Mapped, mapped_column | ||
|
||
from server.services.core.sqlite_db_service.base import ( | ||
Base, | ||
) | ||
|
||
|
||
class FileMetadataTable(Base): | ||
__tablename__ = "file_metadata" | ||
|
||
uuid: Mapped[str] = mapped_column( | ||
String, primary_key=True | ||
) | ||
name: Mapped[str] = mapped_column(String) | ||
stem: Mapped[str] = mapped_column(String) | ||
suffix: Mapped[str] = mapped_column(String) | ||
hash: Mapped[str] = mapped_column(String) | ||
|
||
def __repr__(self): | ||
return f"<FileMetadata(uuid={self.uuid}, name={self.name}, stem={self.stem}, suffix={self.suffix}, hash={self.hash})>" | ||
|
||
def __str__(self): | ||
return self.__repr__() |
This file contains 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
) | ||
|
||
|
||
class Plugin(Base): | ||
class PluginTable(Base): | ||
""" | ||
Table for plugin metadata. | ||
|
This file contains 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
) | ||
|
||
|
||
class PluginUIElement(Base): | ||
class PluginUIElementTable(Base): | ||
""" | ||
Table for plugin UI elements. | ||
|
This file contains 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 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
Empty file.
This file contains 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,15 @@ | ||
from kink import inject | ||
|
||
from server.service_protocols.fs_service_protocol import ( | ||
FSServiceProtocol, | ||
) | ||
from server.services.local.local_fs_service import ( | ||
LocalFSService, | ||
) | ||
|
||
|
||
@inject | ||
class LocalOntologyService: | ||
def __init__(self, fs_service: LocalFSService): | ||
self.fs_service: FSServiceProtocol = fs_service | ||
|
Oops, something went wrong.