Commit graph

145 commits

Author SHA1 Message Date
Tobie Morgan Hitchcock
d619633340 Enable new database strict mode configuration 2022-07-27 18:20:04 +01:00
Tobie Morgan Hitchcock
7777e3bccd Log a message on startup with root authentication info
Closes #11
2022-07-24 01:15:26 +01:00
Tobie Morgan Hitchcock
960a5a768b Disable root authentication when no password is set
Closes #10
2022-07-24 01:15:26 +01:00
Tobie Morgan Hitchcock
db2208a33a Store all macros in a separate module 2022-07-24 01:15:26 +01:00
Tobie Morgan Hitchcock
428fcf697a Ensure CORS headers are set on failed HTTP responses
Closes #6
2022-07-24 01:15:26 +01:00
Tobie Morgan Hitchcock
05cf6960c2 Set correct description for ‘—log’ command argument 2022-07-19 23:27:06 +01:00
Tobie Morgan Hitchcock
e1c6245151 Use new ‘—log’ command argument to specify server log level 2022-07-19 13:39:35 +01:00
Tobie Morgan Hitchcock
91b8baff3d Set default logging level for import/export/backup commands 2022-07-19 12:58:19 +01:00
Tobie Morgan Hitchcock
7860a205db Use configuration constants in version cli command 2022-07-19 12:54:50 +01:00
Tobie Morgan Hitchcock
a2619a8d72 Don’t show default random password in command-line help 2022-07-19 12:29:43 +01:00
Tobie Morgan Hitchcock
81bad3211d Improve command-line logging 2022-07-19 09:28:24 +01:00
Tobie Morgan Hitchcock
4468e10bd1 Change the default port to 8000 2022-07-18 18:49:43 +01:00
Tobie Morgan Hitchcock
d425f67a8b Allow NULL and missing values in RPC query method 2022-07-08 21:56:04 +01:00
Tobie Morgan Hitchcock
11a3911f70 Add RPC let’ command as a duplicate of ‘set’ command 2022-07-08 21:55:44 +01:00
Tobie Morgan Hitchcock
3c7bd098f3 Enable concurrent requests in WebSocket RPC Server 2022-07-07 11:25:22 +01:00
Tobie Morgan Hitchcock
4438415b55 Fix error in RPC Modify method query 2022-07-07 11:22:41 +01:00
Tobie Morgan Hitchcock
508538e0cc Add initial WebSocket JSON RPC implementation 2022-07-04 02:32:26 +01:00
Tobie Morgan Hitchcock
410295c800 Improve map! macro to allow extending the map with other map 2022-07-04 02:02:03 +01:00
Tobie Morgan Hitchcock
983a7b3f5c Add mrg! macro for merging Maps together 2022-07-04 02:02:03 +01:00
Tobie Morgan Hitchcock
7bb4aa74f3 Move authentication code to separate module 2022-07-04 01:46:09 +01:00
Tobie Morgan Hitchcock
187d9c08dc Allow ‘application/octet-stream’ content-type when importing 2022-07-04 01:25:35 +01:00
Tobie Morgan Hitchcock
d04db02ee0 Add introductory message to command-line app 2022-06-28 11:54:04 +01:00
Tobie Morgan Hitchcock
eff4d2c5e9 Implement scope signup and signin functionality 2022-06-20 12:29:06 +01:00
Tobie Morgan Hitchcock
b4e2082196 Use BTreeMap for database execution variables 2022-06-20 02:13:28 +01:00
Tobie Morgan Hitchcock
52e8954ae4 Ensure library works in multi-threaded and single-threaded environments 2022-05-16 00:04:11 +01:00
Tobie Morgan Hitchcock
f414198fad Only begin a transaction if needed for authentication 2022-05-13 22:07:56 +01:00
Tobie Morgan Hitchcock
7bd5802e99 Remove tokio as a dependency
Closes SUR-102
2022-05-13 21:57:40 +01:00
Tobie Morgan Hitchcock
e4619be89a Implement WebSocket queries for /sql endpoint 2022-05-11 22:34:28 +01:00
Tobie Morgan Hitchcock
d29961ee19 Ensure Errors can be converted into Strings 2022-05-11 21:43:11 +01:00
Tobie Morgan Hitchcock
f5687abeab Add documentation comments to main binary package 2022-05-11 15:23:15 +01:00
Tobie Morgan Hitchcock
17e8ea55b5 Implement SQL database exporting and importing 2022-05-11 15:23:15 +01:00
Tobie Morgan Hitchcock
3498e57e04 Implement web authentication session validation 2022-05-11 15:23:15 +01:00
Tobie Morgan Hitchcock
d761a6df47 Add TLS support to SurrealDB server 2022-05-11 15:23:08 +01:00
Tobie Morgan Hitchcock
ba7c31e2dc Improve server configuration parsing and option storage 2022-05-11 15:23:08 +01:00
Tobie Morgan Hitchcock
69b18cc659 Change content length limits of http routes 2022-05-11 15:23:08 +01:00
Tobie Morgan Hitchcock
f7b82bc7bd When unset, ensure default root password in randomised 2022-05-07 16:11:19 +01:00
Tobie Morgan Hitchcock
0ff3d0f7d0 Remove auth CLI argument and use user + pass instead 2022-05-07 15:13:58 +01:00
Tobie Morgan Hitchcock
ffc3ed82f7 Simplify external API when working with Datastore 2022-05-04 00:07:46 +01:00
Tobie Morgan Hitchcock
7e2eae32c5 Ensure query auth level checks are logically correct 2022-04-01 00:36:23 +01:00
Tobie Morgan Hitchcock
b3c4f982ec Fix clippy lint errors 2022-03-25 20:31:45 +00:00
Tobie Morgan Hitchcock
7e4bf91a48 Forbid all usage of unsafe code 2022-03-23 15:12:29 +00:00
Tobie Morgan Hitchcock
2a0d46a2b6 Remove unused macros 2022-03-07 18:14:42 +00:00
Tobie Morgan Hitchcock
d1c2daaee4 Apply cargo clippy lint recommendations 2022-03-05 14:42:58 +00:00
Tobie Morgan Hitchcock
d5c53b7791 Extract core surrealdb code into separate library 2022-02-22 14:16:50 +00:00
Tobie Morgan Hitchcock
12aea63928 Use trice instead of std::time for performance measurement 2022-02-19 23:30:43 +00:00
Tobie Morgan Hitchcock
222e417c79 Change method argument names 2022-02-19 23:09:23 +00:00
Tobie Morgan Hitchcock
8a08de951e Ensure session auth data is passed to executor options 2022-02-18 19:09:00 +00:00
Tobie Morgan Hitchcock
691d6ac895 Move byte formatting macro to macro module 2022-02-17 08:05:25 +00:00
Tobie Morgan Hitchcock
10a76ec3a1 Inject datastore instance instead of globally instantiated instance 2022-02-17 08:04:08 +00:00
Tobie Morgan Hitchcock
b98986fa12 Remove unnecessary 'anyhow' crate 2022-02-16 23:45:23 +00:00