2025-01-01 14:49:27 +00:00
|
|
|
namespace AIStudio.Assistants.ERI;
|
|
|
|
|
|
|
|
public static class DataSourcesExtensions
|
|
|
|
{
|
2025-05-28 21:14:05 +00:00
|
|
|
private static string TB(string fallbackEN) => Tools.PluginSystem.I18N.I.T(fallbackEN, typeof(DataSourcesExtensions).Namespace, nameof(DataSourcesExtensions));
|
|
|
|
|
2025-01-01 14:49:27 +00:00
|
|
|
public static string Name(this DataSources dataSource) => dataSource switch
|
|
|
|
{
|
2025-05-28 21:14:05 +00:00
|
|
|
DataSources.NONE => TB("No data source selected"),
|
|
|
|
DataSources.CUSTOM => TB("Custom description"),
|
2025-01-01 14:49:27 +00:00
|
|
|
|
2025-05-28 21:14:05 +00:00
|
|
|
DataSources.FILE_SYSTEM => TB("File system (local or network share)"),
|
|
|
|
DataSources.OBJECT_STORAGE => TB("Object storage, like Amazon S3, MinIO, etc."),
|
|
|
|
DataSources.KEY_VALUE_STORE => TB("Key-Value store, like Redis, etc."),
|
|
|
|
DataSources.DOCUMENT_STORE => TB("Document store, like MongoDB, etc."),
|
|
|
|
DataSources.RELATIONAL_DATABASE => TB("Relational database, like MySQL, PostgreSQL, etc."),
|
|
|
|
DataSources.GRAPH_DATABASE => TB("Graph database, like Neo4j, ArangoDB, etc."),
|
2025-01-01 14:49:27 +00:00
|
|
|
|
2025-05-28 21:14:05 +00:00
|
|
|
_ => TB("Unknown data source")
|
2025-01-01 14:49:27 +00:00
|
|
|
};
|
|
|
|
}
|