surrealdb / surrealist

Surrealist is the ultimate way to visually manage your SurrealDB database
https://surrealist.app/
MIT License
1.09k stars 83 forks source link

Database imports seem not to be working #187

Closed AlbertMarashi closed 6 months ago

AlbertMarashi commented 6 months ago

Describe the bug A clear and concise description of what the bug is. If applicable, add screenshots to help explain your problem.

May be related to https://github.com/surrealdb/surrealdb/issues/3548

AlbertMarashi commented 6 months ago

Running the script via terminal works correctly, but only when using the HTTP endpoint setting

surreal import --namespace app --database foo -u root -p root --endpoint http://localhost:8000 database.surql

So issue may be that websockets do not support imports unlike HTTP

macjuul commented 6 months ago

The import functionality in Surrealist simply executes the statements found in a .surql file so it should be unaffected by such restrictions. You could open the devtools (Command + Option + i) and see if there are any errors logged in the console

AlbertMarashi commented 6 months ago

Was running an older version without realsing