Skip to content

Commit

Permalink
Remove SQLite support due to incompatibility reason
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Dec 28, 2023
1 parent 9490b8d commit a33160a
Show file tree
Hide file tree
Showing 34 changed files with 65 additions and 57 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

Starting from v2.2.5, all notable changes to this project will be documented in this file.

## v2.4.1

- Skip TLS verification for earthquake event data source API
- Remove SQLite support due to MIPS architecture incompatibility
- Make frontend className conditional rendering logic more predictable
- Correct frontend map anchor point offset

## v2.4.0

- Optimization on CPU usage metrics calculation
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

AnyShake Observer is an open-source, cross-platform software that can be used to monitor, archive, and export seismic data from [AnyShake Explorer](https://github.com/anyshake/explorer) via serial port. It provides a user-friendly web-based interface to visualize and analyze the seismic data. For more professional users, it supports exporting the data to SAC or MiniSEED format for further analysis.

This software is written in Go and TypeScript, which means it can easily port to a variety of OS and CPU architectures, even embedded Linux devices, AnyShake Observer also supports PostgreSQL, MariaDB (MySQL), SQLite, and SQL Server as seismic data archiving engines. We're currently trying to integrate the SEEDLink server on this software (Using pure Go implementation).
This software is written in Go and TypeScript, which means it can easily port to a variety of OS and CPU architectures, even embedded Linux devices, AnyShake Observer also supports PostgreSQL, MariaDB (MySQL) and SQL Server as seismic data archiving engines. We're currently trying to integrate the SEEDLink server on this software (Using pure Go implementation).

As of the release of the software documentation, AnyShake has successfully captured more than 40 earthquake events, the furthest captured earthquake event is [M 7.1 - 180 km NNE of Gili Air, Indonesia](https://earthquake.usgs.gov/earthquakes/eventpage/us7000krjx/executive), approximately 4,210 km, by the station located in Chongqing, China.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.4.0
v2.4.1
14 changes: 0 additions & 14 deletions driver/dao/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

"gorm.io/driver/mysql"
"gorm.io/driver/postgres"
"gorm.io/driver/sqlite"
"gorm.io/driver/sqlserver"
"gorm.io/gorm"
"gorm.io/gorm/logger"
Expand Down Expand Up @@ -55,19 +54,6 @@ func (m *MariaDB) openDBConn(host string, port int, username, password, database
})
}

type SQLite struct{}

func (s *SQLite) isCompatible(engine string) bool {
return engine == "sqlite" || engine == "sqlite3"
}

func (s *SQLite) openDBConn(host string, port int, username, password, database string) (*gorm.DB, error) {
return gorm.Open(sqlite.Open(database), &gorm.Config{
Logger: logger.Default.LogMode(logger.Silent),
SkipDefaultTransaction: true, // Disable transaction to improve performance
})
}

type SQLServer struct{}

func (s *SQLServer) isCompatible(engine string) bool {
Expand Down
5 changes: 3 additions & 2 deletions driver/dao/open.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import (

func Open(host string, port int, engine, username, password, database string) (*gorm.DB, error) {
engines := []dbEngine{
&PostgreSQL{}, &MariaDB{},
&SQLite{}, &SQLServer{},
&PostgreSQL{},
&MariaDB{},
&SQLServer{},
}
for _, e := range engines {
if e.isCompatible(engine) {
Expand Down
16 changes: 8 additions & 8 deletions frontend/dist/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "/static/css/main.40ace055.css",
"main.js": "/static/js/main.b75096a0.js",
"main.js": "/static/js/main.0c991c67.js",
"static/css/290.525e2941.chunk.css": "/static/css/290.525e2941.chunk.css",
"static/js/290.d405901a.chunk.js": "/static/js/290.d405901a.chunk.js",
"static/js/290.b863e121.chunk.js": "/static/js/290.b863e121.chunk.js",
"static/js/735.26a45829.chunk.js": "/static/js/735.26a45829.chunk.js",
"static/js/252.0f6c5ff7.chunk.js": "/static/js/252.0f6c5ff7.chunk.js",
"static/js/253.e64c7cc8.chunk.js": "/static/js/253.e64c7cc8.chunk.js",
"static/js/332.587820cf.chunk.js": "/static/js/332.587820cf.chunk.js",
"static/js/252.e70521e2.chunk.js": "/static/js/252.e70521e2.chunk.js",
"static/js/253.b495b4ba.chunk.js": "/static/js/253.b495b4ba.chunk.js",
"static/js/332.60fa82e5.chunk.js": "/static/js/332.60fa82e5.chunk.js",
"static/js/377.f0e1c66a.chunk.js": "/static/js/377.f0e1c66a.chunk.js",
"static/js/453.30461b97.chunk.js": "/static/js/453.30461b97.chunk.js",
"static/js/59.a77c052b.chunk.js": "/static/js/59.a77c052b.chunk.js",
Expand All @@ -16,8 +16,8 @@
"static/js/165.41b9296d.chunk.js": "/static/js/165.41b9296d.chunk.js",
"static/js/979.14e4e415.chunk.js": "/static/js/979.14e4e415.chunk.js",
"static/js/822.ae40dac1.chunk.js": "/static/js/822.ae40dac1.chunk.js",
"static/js/912.b91c9724.chunk.js": "/static/js/912.b91c9724.chunk.js",
"static/js/669.29bd1401.chunk.js": "/static/js/669.29bd1401.chunk.js",
"static/js/912.edb28760.chunk.js": "/static/js/912.edb28760.chunk.js",
"static/js/669.daeb5973.chunk.js": "/static/js/669.daeb5973.chunk.js",
"static/media/gear-solid.svg": "/static/media/gear-solid.bf34f9d52ff44a67baec8a0d4220d3a3.svg",
"static/media/bug-solid.svg": "/static/media/bug-solid.7f781f9ddd35c29f11111e36602dcc87.svg",
"static/media/earth-americas-solid.svg": "/static/media/earth-americas-solid.4105ee3951f1c7ac60331fccafc17c1f.svg",
Expand Down Expand Up @@ -48,6 +48,6 @@
},
"entrypoints": [
"static/css/main.40ace055.css",
"static/js/main.b75096a0.js"
"static/js/main.0c991c67.js"
]
}
2 changes: 1 addition & 1 deletion frontend/dist/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/><link rel="icon" href="/favicon.ico"/><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.b75096a0.js"></script><link href="/static/css/main.40ace055.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/><link rel="icon" href="/favicon.ico"/><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.0c991c67.js"></script><link href="/static/css/main.40ace055.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1 change: 0 additions & 1 deletion frontend/dist/static/js/252.0f6c5ff7.chunk.js

This file was deleted.

1 change: 1 addition & 0 deletions frontend/dist/static/js/252.e70521e2.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/dist/static/js/253.b495b4ba.chunk.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion frontend/dist/static/js/253.e64c7cc8.chunk.js

This file was deleted.

1 change: 1 addition & 0 deletions frontend/dist/static/js/290.b863e121.chunk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a33160a

Please sign in to comment.