FUCKING PATCHED SURREALDB BECAUSE TOKIO GUHHHHH
Find a file
Tobie Morgan Hitchcock 0490d304a3 Update gitignore file
2021-12-08 17:38:51 +00:00
build Build for amd64 and arm64 on macOS 2021-03-22 21:44:24 +00:00
cli Remove opentracing and profiling 2021-08-07 09:26:32 +01:00
cnf Add query timeout functionality 2020-09-22 10:46:00 +01:00
db Process permissions after conditional clauses 2021-10-08 16:04:08 +01:00
doc Update example queries in documentation 2021-09-09 15:27:45 +01:00
kvs Remove error logging from kvs package 2019-12-03 11:48:16 +00:00
log Add programme tracing using Google Cloud 2020-11-27 12:57:31 +00:00
sql Update 3rd party dependencies 2021-10-05 08:17:50 +01:00
txn Don’t ignore transaction errors 2019-12-02 23:29:18 +00:00
util Ensure Points are Longitude/Latitude 2021-06-01 16:25:54 +01:00
web Increase length of time for write timeout 2021-11-27 19:50:12 +00:00
.dockerignore Store ember app in 'app' folder 2016-07-05 00:03:48 +01:00
.editorconfig Update editorconfig 2016-10-01 20:18:49 +01:00
.gitignore Update gitignore file 2021-12-08 17:38:51 +00:00
Dockerfile Use alpine linux for base docker image 2018-03-19 11:47:29 +00:00
go.mod Update 3rd party dependencies 2021-10-05 08:17:50 +01:00
go.sum Update 3rd party dependencies 2021-10-05 08:17:50 +01:00
LICENSE Update LICENSE 2020-07-01 09:28:14 +01:00
main.go Remove opentracing and profiling 2021-08-07 09:26:32 +01:00
Makefile Only deploy to central docker hub 2021-10-05 08:05:01 +01:00
README.md Update README for use with rixxdb/dendrodb 2017-02-20 10:44:42 +00:00

Surreal

Surreal is a scalable, distributed, strongly-consistent, collaborative document-graph database.

Features

  • NoSQL document-graph database written in Go
  • Administrative database tools
    • Easily import data into a cluster
    • Easily export data from a cluster
    • Accessible and intuitive web interface
  • Multiple connection methods
    • Connect using REST
    • Connect using JSON-RPC
    • Connect using Websockets
  • Multiple data querying methods
    • Use advanced SQL queries
    • Query using REST url endpoints
    • Query using Websocket methods
  • Customisable authentication access
    • Specify public or private access
    • Admin access to all database data
    • Token access to all database data
    • End-user multi-tenancy authentication
  • Flexible data manipulation queries
    • Automatic creation of tables
    • Schema-less or schema-full tables
    • Automatic data field sanitization
    • Mandatory, readonly, and validated data fields
    • Define embedded fields, and object arrays
  • Advanced customisable indexing support
    • Single-column indexes
    • Multiple-column indexes
    • Multiple-compound indexes
    • Indexing of embedded data fields
    • JS/LUA scripting for custom indexes
    • Full-text indexing of all data by default
  • Collaborative editing and manipulation of data
    • Live realtime queries
    • Publish data changes
    • Subscribe to data changes
    • Built-in concurrency control
    • Pub/sub over websocket for data updates
  • Encryption out-of-the-box as standard
    • End-to-end intra-cluster communications
    • End-user SSL encryption for http endpoints
    • Encryption of all data at rest using AES-256

Installation

go get github.com/abcum/surreal

Running

surreal start --port-web 8000

Clustering

surreal start --port-web 8000 --port-tcp 33693 --db-path file://surreal-1.db --join localhost:33693 --log-level debug
surreal start --port-web 8001 --port-tcp 33694 --db-path file://surreal-2.db --join localhost:33693 --log-level debug
surreal start --port-web 8002 --port-tcp 33695 --db-path file://surreal-3.db --join localhost:33693 --log-level debug

Deployment

docker run --name surreal-1 abcum/surreal start --port-web 8000 --port-tcp 33693 --join localhost:33693 --log-level debug
docker run --name surreal-2 abcum/surreal start --port-web 8001 --port-tcp 33694 --join localhost:33693 --log-level debug
docker run --name surreal-3 abcum/surreal start --port-web 8002 --port-tcp 33695 --join localhost:33693 --log-level debug