Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRunning SQLite example fails #822
Comments
This comment has been minimized.
|
I think you didn't run the migrations so the database doesn't exist and diesel cannot infer the schema |
This comment has been minimized.
Doesn't |
This comment has been minimized.
|
Oh, missed that :p |
This comment has been minimized.
|
It looks like that (just removed the relative path from the
|
This comment has been minimized.
|
If I open the test_database.db file and look at the schema it looks right: sqlite> .schema posts
CREATE TABLE posts (
id INTEGER NOT NULL PRIMARY KEY,
title VARCHAR NOT NULL,
body TEXT NOT NULL,
published BOOLEAN NOT NULL DEFAULT 0
); |
This comment has been minimized.
|
Do you have a .env file somewhere in there ? |
This comment has been minimized.
No |
This comment has been minimized.
|
Weird then :( I don't have any more ideas maybe someone with more knowledge than me can help you, sorry |
This comment has been minimized.
|
I can reproduce this (and possibly fix). If DATABASE_URL is not set, then you will see the error and you'll see it all the next times you run Try to run a |
This comment has been minimized.
|
That helped for me as well. |
palango commentedMar 22, 2017
I'm trying to run the SQLite example in
diesel/examples/sqlite. I adapted thetest_allscript to use the locally installed version, which is 0.12.I get the following compiler errors and would be interested in any hints...