Skip to content

Commit 5be1e02

Browse files
authored
Merge pull request #44 from DataSQRL/oil-and-gas
New Oil and Gas Example
2 parents deba5d0 + 310b719 commit 5be1e02

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [ "main" ]
66
pull_request:
7-
branches: [ "main" ]
87

98
jobs:
109
build:
@@ -54,6 +53,11 @@ jobs:
5453
test_commands: |
5554
test -c baseball-card-local.json --snapshot snapshots
5655
56+
- example: oil-gas
57+
path: oil-gas-agent-automation
58+
test_commands: |
59+
test -c package-local.json
60+
5761
env:
5862
TZ: 'America/Los_Angeles'
5963
SQRL_VERSION: 'v0.5.10'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
target
44
h2.db.mv.db
55
cache
6+
.project
67

78

89
# Created by https://www.toptal.com/developers/gitignore/api/python

oil-gas-agent-automation/operations-agent.sqrl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ RecentPressure := SELECT assetId, endOfSecond(timestamp, 10) AS timestamp_normal
2727
FROM Measurement
2828
GROUP BY assetId, timestamp_normalized ORDER BY timestamp_normalized DESC;
2929

30+
/*+ test */
31+
RecentPressureTest := SELECT * FROM RecentPressure ORDER BY timestamp_normalized DESC;
32+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"data":{"RecentPressureTest":[{"assetId":12221.0,"timestamp_normalized":"2025-02-11T12:21:29.999Z","pressure_psi":3399.59,"temperature_f":189.68},{"assetId":21112.0,"timestamp_normalized":"2025-02-11T12:21:29.999Z","pressure_psi":1803.95,"temperature_f":189.51},{"assetId":34443.0,"timestamp_normalized":"2025-02-11T12:21:29.999Z","pressure_psi":3686.41,"temperature_f":190.04},{"assetId":45555.0,"timestamp_normalized":"2025-02-11T12:21:29.999Z","pressure_psi":2076.75,"temperature_f":189.98},{"assetId":59995.0,"timestamp_normalized":"2025-02-11T12:21:29.999Z","pressure_psi":2999.76,"temperature_f":189.9},{"assetId":12221.0,"timestamp_normalized":"2025-02-11T12:21:19.999Z","pressure_psi":3397.36,"temperature_f":189.41},{"assetId":21112.0,"timestamp_normalized":"2025-02-11T12:21:19.999Z","pressure_psi":1808.38,"temperature_f":190.25},{"assetId":34443.0,"timestamp_normalized":"2025-02-11T12:21:19.999Z","pressure_psi":3603.5,"temperature_f":190.15},{"assetId":45555.0,"timestamp_normalized":"2025-02-11T12:21:19.999Z","pressure_psi":2127.65,"temperature_f":189.54},{"assetId":59995.0,"timestamp_normalized":"2025-02-11T12:21:19.999Z","pressure_psi":3000.97,"temperature_f":190.4}]}}

0 commit comments

Comments
 (0)