Skip to content

Commit

Permalink
function to map timestamp from diagram/graph to SQL ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mirabilos committed Nov 18, 2023
1 parent 95fde4e commit e30b980
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions acquire/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,9 @@ BEGIN
END;
$$ LANGUAGE 'plpgsql';

CREATE OR REPLACE FUNCTION maptime(IN graphtime NUMERIC)
RETURNS NUMERIC(20, 9) AS $$
SELECT d + graphtime FROM o;
$$ LANGUAGE 'sql';

COMMIT;

0 comments on commit e30b980

Please sign in to comment.