Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loading schema in Windows #559

Open
vughtwv opened this issue Aug 31, 2021 · 4 comments
Open

Add loading schema in Windows #559

vughtwv opened this issue Aug 31, 2021 · 4 comments

Comments

@vughtwv
Copy link

vughtwv commented Aug 31, 2021

Problem to Solve

For now the documentation on vaticle.com does not include how to load a schema in windows

Current Workaround

use the following
option 1.
typedb console --command="transaction [name] schema write" --command="source [path without spaces]" --command="commit"
option 2.

transaction [name] schema write
Source [path without spaces with double backslashes or forward slashes]

Proposed Solution

add this to the documentation

Additional Information

@su-suvvy
Copy link

su-suvvy commented Dec 8, 2021

Hi @flyingsilverfin
I am running typedb server on a docker. I executed the following commands

  1. I launched typdedb console with :
    docker exec -ti typedb bash -c '/opt/typedb-all-linux/typedb console
  2. transaction mykg schema write
  3. source ~/TypeDB/My_kg/KG/Schema/V9.tql (source with lowercase s)

I got the error
Failed to open file '~/TypeDB/My_kg/KG/Schema/V9.tql'

3 bis) Source ~/TypeDB/My_kg/KG/Schema/V9.tql (source with Uppercase S)

I got the following error even if my file starts with the word define
[TQL03] TypeQL Error: There is a syntax error at line 1:
Source ~/TypeDB/My_kg/KG/Schema/V9.tql
^
mismatched input 'Source' expecting {'match', 'define', 'undefine', 'insert', 'compute'}

Can you please help about this?
Thanks!

@flyingsilverfin
Copy link
Member

flyingsilverfin commented Dec 10, 2021

you can't use ~ I believe, you should use a relative or absolute path @su-suvvy

This issue also isn't exactly your question - next time please open a new issue or ask this question in our forum forum.vaticle.com or on our discord server where our community lives: https://discord.com/invite/vaticle

@su-suvvy
Copy link

@flyingsilverfin Thank you for your reply! Sure I will post on Discord next time

@izmalk
Copy link
Contributor

izmalk commented Jan 10, 2023

It would be a good idea to test and document workarounds for Windows IMHO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants