You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, and thanks in advance to anyone who takes the time to try and help me with this!
If i wanted to query this model and list all records 'CREATE MODEL IF NOT EXISTS apps.jotsy (username: string, password: string, notes: list { type: string })'
what would be the correct logic to use?
when i try this, it closes the skysh client and connection:
SELECT ALL * FROM apps.jotsy LIMIT 100
-cli error: client error. protocol error: invalid data received from server
this is how i built the model.
CREATE SPACE IF NOT EXISTS apps
CREATE MODEL IF NOT EXISTS apps.jotsy (username: string, password: string, notes: list { type: string })
INSERT INTO apps.jotsy { username: "alice", password: "pass123", notes: ["First note", "Second note"]}
INSERT INTO apps.jotsy { username: "bob", password: "secret456", notes: ["Note for Bob"]}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, and thanks in advance to anyone who takes the time to try and help me with this!
If i wanted to query this model and list all records 'CREATE MODEL IF NOT EXISTS apps.jotsy (username: string, password: string, notes: list { type: string })'
what would be the correct logic to use?
when i try this, it closes the skysh client and connection:
SELECT ALL * FROM apps.jotsy LIMIT 100
-cli error: client error. protocol error: invalid data received from server
this is how i built the model.
CREATE SPACE IF NOT EXISTS apps
CREATE MODEL IF NOT EXISTS apps.jotsy (username: string, password: string, notes: list { type: string })
INSERT INTO apps.jotsy { username: "alice", password: "pass123", notes: ["First note", "Second note"]}
INSERT INTO apps.jotsy { username: "bob", password: "secret456", notes: ["Note for Bob"]}
Beta Was this translation helpful? Give feedback.
All reactions