constants.tsx 838 B

12345678910111213141516171819202122232425
  1. /**
  2. * The supported relational database system values are based on what is
  3. * set in the Sentry Python SDK. The only currently supported NoSQL DBMS is MongoDB.
  4. *
  5. * https://github.com/getsentry/sentry-python/blob/master/sentry_sdk/integrations/sqlalchemy.py#L125
  6. */
  7. export enum SupportedDatabaseSystem {
  8. // SQL
  9. SQLITE = 'sqlite',
  10. POSTGRESQL = 'postgresql',
  11. MARIADB = 'mariadb',
  12. MYSQL = 'mysql',
  13. ORACLE = 'oracle',
  14. // NoSQL
  15. MONGODB = 'mongodb',
  16. }
  17. export const DATABASE_SYSTEM_TO_LABEL: Record<SupportedDatabaseSystem, string> = {
  18. [SupportedDatabaseSystem.SQLITE]: 'SQLite',
  19. [SupportedDatabaseSystem.POSTGRESQL]: 'PostgreSQL',
  20. [SupportedDatabaseSystem.MARIADB]: 'MariaDB',
  21. [SupportedDatabaseSystem.MYSQL]: 'MySQL',
  22. [SupportedDatabaseSystem.ORACLE]: 'Oracle',
  23. [SupportedDatabaseSystem.MONGODB]: 'MongoDB',
  24. };