FUCKING PATCHED SURREALDB BECAUSE TOKIO GUHHHHH
Find a file
Tobie Morgan Hitchcock 24c11f97f6 Update dependencies
2019-11-28 17:34:49 +00:00
.circleci Switch to go mod 2019-09-29 11:28:53 +01:00
build Fix build tags 2016-03-18 16:19:09 +00:00
cli Don’t use log hooks 2019-11-21 00:44:44 +00:00
cnf Update rixxdb 2019-10-08 00:47:46 +01:00
db Update dependencies 2019-11-28 17:34:49 +00:00
doc Use idents not strings in SQL examples 2017-03-03 00:48:03 +00:00
kvs Simplify errors 2019-11-28 16:33:09 +00:00
log Don’t use log hooks 2019-11-21 00:44:44 +00:00
sql Update dependencies 2019-11-28 17:34:49 +00:00
txn Remove temporary code 2019-11-20 16:56:07 +00:00
util Improve database speed 2019-11-20 13:20:27 +00:00
web Allow exporting for NS and DB users 2019-11-28 17:30:59 +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 Ignore db files in git 2018-07-04 11:39:34 +01:00
Dockerfile Use alpine linux for base docker image 2018-03-19 11:47:29 +00:00
go.mod Update dependencies 2019-11-28 17:34:49 +00:00
go.sum Update dependencies 2019-11-28 17:34:49 +00:00
LICENSE Add correct copyright notice 2016-05-11 19:07:10 +01:00
main.go Improve database speed 2019-11-20 13:20:27 +00:00
Makefile Remove coveralls 2019-09-29 11:29:03 +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