Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
148
Issues
148
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
7c2e9bd9
Commit
7c2e9bd9
authored
Mar 04, 2024
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[METRICS] export to csv file
parent
ea8965c4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
5 deletions
+7
-5
corpora.sql
bin/metrics/histo/corpora.sql
+1
-1
graphs.sql
bin/metrics/histo/graphs.sql
+1
-1
phylo.sql
bin/metrics/histo/phylo.sql
+1
-1
teams.sql
bin/metrics/histo/teams.sql
+2
-1
users.sql
bin/metrics/histo/users.sql
+2
-1
No files found.
bin/metrics/histo/corpora.sql
View file @
7c2e9bd9
select
count
(
*
),
date_trunc
(
'month'
,
n
.
date
)
from
nodes
n
where
n
.
typename
=
30
group
by
2
ORDER
BY
2
;
\
COPY
(
SELECT
count
(
*
),
date_trunc
(
'month'
,
n
.
date
)
FROM
nodes
n
WHERE
n
.
typename
=
30
GROUP
BY
2
ORDER
BY
2
)
TO
'/tmp/corpora.csv'
(
FORMAT
csv
)
;
bin/metrics/histo/graphs.sql
View file @
7c2e9bd9
select
count
(
*
),
date_trunc
(
'month'
,
n
.
date
)
from
nodes
n
where
n
.
typename
=
9
group
by
2
ORDER
BY
2
;
\
COPY
(
SELECT
count
(
*
),
date_trunc
(
'month'
,
n
.
date
)
from
nodes
n
where
n
.
typename
=
9
group
by
2
ORDER
BY
2
)
TO
'/tmp/graphs.csv'
(
FORMAT
csv
)
;
bin/metrics/histo/phylo.sql
View file @
7c2e9bd9
select
count
(
*
),
date_trunc
(
'month'
,
n
.
date
)
from
nodes
n
where
n
.
typename
=
90
group
by
2
ORDER
BY
2
;
\
COPY
(
select
count
(
*
),
date_trunc
(
'month'
,
n
.
date
)
from
nodes
n
where
n
.
typename
=
90
group
by
2
ORDER
BY
2
)
TO
'/tmp/phylos.csv'
(
FORMAT
csv
)
;
bin/metrics/histo/teams.sql
View file @
7c2e9bd9
select
count
(
*
),
date_trunc
(
'month'
,
n
.
date
)
from
nodes
n
where
n
.
typename
=
210
group
by
2
ORDER
BY
2
;
\
COPY
(
select
count
(
*
),
date_trunc
(
'month'
,
n
.
date
)
from
nodes
n
where
n
.
typename
=
210
group
by
2
ORDER
BY
2
)
TO
'/tmp/teams.csv'
(
FORMAT
csv
);
...
...
bin/metrics/histo/users.sql
View file @
7c2e9bd9
select
count
(
*
),
date_trunc
(
'month'
,
a
.
date_joined
)
from
auth_user
a
group
by
2
;
\
COPY
(
select
count
(
*
),
date_trunc
(
'month'
,
a
.
date_joined
)
from
auth_user
a
group
by
2
)
TO
'/tmp/users.csv'
(
FORMAT
csv
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment