mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
SQLite support
This commit is contained in:
parent
2181ca4ec8
commit
578a96ee09
7 changed files with 319 additions and 5 deletions
|
|
@ -70,6 +70,7 @@ export const EVENT_COLORS = [
|
|||
export const RELATIONAL = 'relational';
|
||||
export const POSTGRESQL = 'postgresql';
|
||||
export const MYSQL = 'mysql';
|
||||
export const SQLITE = 'sqlite';
|
||||
export const CLICKHOUSE = 'clickhouse';
|
||||
|
||||
export const MYSQL_DATE_FORMATS = {
|
||||
|
|
@ -88,6 +89,14 @@ export const POSTGRESQL_DATE_FORMATS = {
|
|||
year: 'YYYY-01-01',
|
||||
};
|
||||
|
||||
export const SQLITE_DATE_FORMATS = {
|
||||
minute: '%Y-%m-%d %H:%M:00',
|
||||
hour: '%Y-%m-%d %H:00:00',
|
||||
day: '%Y-%m-%d',
|
||||
month: '%Y-%m-01',
|
||||
year: '%Y-01-01',
|
||||
};
|
||||
|
||||
export const CLICKHOUSE_DATE_FORMATS = {
|
||||
minute: '%Y-%m-%d %H:%M:00',
|
||||
hour: '%Y-%m-%d %H:00:00',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue