Comments (1)
@ansarizafar at the moment, this is intentional. It only checks to see if the namespace exists when inserting data into the database with INSERT
, CREATE
, UPDATE
, RELATE
, DELETE
, or when configuring the database with DEFINE
statements.
The USE
query does not actually query the underlying key-value store in any way (there is a reason for this, and it's related to embedded mode - where you can pass in the desired namespace/database before starting the embedded database). Obviously this will become important down the line a little bit.
Therefore, currently SurrealDB still allows you to switch to a new namespace or database using USE
, and to perform SELECT
queries.
With regard to SELECT
queries we could change it so that it returns an error if the specified table/database/namespace to select data from does not exist?
This has to be thought through a little bit.
from surrealdb.
Related Issues (20)
- Bug: Unable To Make an Entity With a u128 Attribute
- Feature: Type Safe Record Id's HOT 7
- Bug: $before and $after futures are computed in wrong context
- Feature: Merge Objects of an Array
- Bug: futures in table views do not update
- Feature: do not return error on CHANGEFEED if datetime is before table create
- Bug: Live queries should include a delete table notification and live query termination notifcation
- Feature: Moving otel.name="surrealdb.rpc/ping" from DEBUG to TRACE logs
- Bug: re-executing `DEFINE SCOPE` erases all existing JWTs HOT 1
- Bug: partial search on full-text index is not working
- Bug: Since 1.2.0, adding a `WHERE` clause to a query resolving record links or graph edges, causes those links to result in `NONE` HOT 4
- Bug: MATH::SQRT_2 not working
- Feature: Add WHERE NOT EXISTS for INSERT HOT 1
- Bug: Index not used in select when condition value is uuid or date
- Bug: exit code: 0xc0000005, STATUS_ACCESS_VIOLATION HOT 3
- Bug: Unable to filter entries via edge tables HOT 2
- Bug: Unable to create directory structure for SURREAL_OBJECT_CACHE
- Bug: full-text search not working
- Bug: query never finish with DEFINE FIELD HOT 3
- Bug: Expired token is working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from surrealdb.