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

fixes #31 create files if they don't exist #36

Merged
merged 1 commit into from Mar 4, 2020

Conversation

moxious
Copy link
Contributor

@moxious moxious commented Mar 3, 2020

I thought it was going to take more than this but it ended up being embarrassingly easy.

Demo:

user@strongbad gqlite (issue-31-file-existence) $ ./target/debug/g -f IDoNotExist.db 'CREATE (p:Foo { x: "Hello" })'
plan: Create { src: Argument, nodes: [NodeSpec { slot: 0, labels: [4], props: [MapEntryExpr { key: 5, val: Lit(String("Hello")) }] }], rels: [] }
--- About to write ---
(`dbe66cda-5d7a-11ea-802a-c112443ebfed`:Foo {"x":"Hello"})

------
user@strongbad gqlite (issue-31-file-existence) $ cat IDoNotExist.db 
(`dbe66cda-5d7a-11ea-802a-c112443ebfed`:Foo {"x":"Hello"})

@jakewins
Copy link
Owner

jakewins commented Mar 4, 2020

Lol that's fantastic

@jakewins jakewins merged commit 49cf342 into jakewins:master Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants