Skip to main content
1 vote
1 answer
58 views

I'm working on an application that embeds a surrealdb database. I'm new to Rust, but this isn't as much of a Rust specific question. How should I go about seeding the database with the schema? Right ...
Andrew's user avatar
  • 642
0 votes
1 answer
188 views

I'm working with SurrealDb, and in their docs here they implement a singleton. However, when you try to implement the same thing using a RocksDb instance it requires an asynchronous step making that ...
Andrew's user avatar
  • 642
1 vote
0 answers
33 views

I'm new to Rust, but have been programming in several other languages for years. I know y'all love the language, but so far I've been very frustrated doing (what in most languages are) simple and easy ...
jxbb's user avatar
  • 347
1 vote
3 answers
98 views

What is the most efficient way to find the latest updated row on a table with a lot of records (hundreds thousands)? Is it select * from a_table order by updated_at desc limit 1 Now there are 2000 ...
VKlapan's user avatar
  • 11
0 votes
0 answers
42 views

Can I create an unique index on a field which contains an array? I tried but it doesn't work as I expected. E.g. when I try to create a record with statuses = ["one", "two", "...
VKlapan's user avatar
  • 11
0 votes
1 answer
50 views

I have 3 tables with data and corresponding intermediate tables: directions; services; responsibles; directions_services; services_responsibles; Example: select *, ->directions_services->...
anon's user avatar
  • 1
0 votes
1 answer
36 views

i want a schema type like this, DEFINE TABLE h SCHEMAFULL; DEFINE FIELD items ON TABLE h TYPE array<object>; inside this object there should be a type like this { active: bool, key: ...
W.A Rajinda's user avatar
0 votes
1 answer
112 views

I have a surrealdb schema like this Now what i need is select all the apis and folders and collection that belong to single workspace the query that i have is this, SELECT ->...
W.A Rajinda's user avatar
0 votes
1 answer
192 views

in Surreal db i have 2 tables: category & product DEFINE TABLE category SCHEMALESS; DEFINE FIELD name ON category TYPE string; DEFINE TABLE product SCHEMALESS; DEFINE FIELD name ON product TYPE ...
eric paris's user avatar
2 votes
1 answer
53 views

Say whe have the following animals: INSERT INTO animal (id, species, age) VALUES ("titi", "cat", 3), ("mimi", "cat", 4), ("kiki", "dog", 5)...
Thomas Hügel's user avatar
0 votes
1 answer
46 views

Imagine the following situation: INSERT INTO dog (id, age) VALUES ("mr_whaf", 8), ("mrs_whaf", 3), ("whaf_jr", 0), ("whaf_whaf", 1); RELATE [dog:mr_whaf, dog:...
Thomas Hügel's user avatar
0 votes
1 answer
236 views

I have surrealdb running in docker like so docker run --rm --pull always --name surrealdb -p 0.0.0.0:8000:8000 surrealdb/surrealdb:latest start --log debug --user root --pass root memory and a node ...
dev's user avatar
  • 41
1 vote
2 answers
269 views

I want insert this: {'date': '2023-07-03T07:18:52.841147', 'open': 27430.0, 'high': 27730.0, 'low': 27420.0, 'close': 27720.0, 'final': 27490.0, 'y_final': 27190.0, 'vol': 713407.0, 'val': 19755901740....
یاقوب's user avatar
0 votes
1 answer
229 views

Here is a sample record for a SurrealDB sandbox database { locations: [ { done: true, place: 'A', time: 2 }, { done: false, place: 'B', ...
WJM's user avatar
  • 1,201
0 votes
1 answer
169 views

Is there a way to commit data inside a function in SurrealDB? It throws a syntax error if I place BEGIN TRANSACTION within the { and } blocks: There was a problem with the database: Parse error: ...
Athan Clark's user avatar
  • 3,988

15 30 50 per page
1
2 3 4 5
8