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

Actually insert data into the table #2

Merged
merged 7 commits into from
Dec 13, 2018
Merged

Conversation

kevinmichaelchen
Copy link
Owner

@kevinmichaelchen kevinmichaelchen commented Dec 13, 2018

Ran into a lot of import issues. Best to read this at some point: https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html

  • table! macro not found in schema.rs. (Solved by bringing in diesel crate)
  • Diesel derive macros (Insertable and Queryable) not found in scope. (Solved by bringing in diesel crate)
  • import from schema not working
  • diesel warnings: "names from parent modules are not accessible without an explicit import"; possibly due to nightly version of rust compiler?

@kevinmichaelchen kevinmichaelchen merged commit f404580 into mysql Dec 13, 2018
kevinmichaelchen added a commit that referenced this pull request Dec 13, 2018
* mod hero import fails; mismatched types for db connection

* fix db connection tuple access

* move Hero for now. import was acting weird

* Set up Diesel

* Actually insert data into the table (#2)

* table macro not found in schema.rs; Diesel derive macros not found in scope; import from schema not working

* file separation

* fmt

* bring in Diesel crate

* do not double import Diesel

* still have errors

* 🙉 the table_name had to match schema.rs
@kevinmichaelchen kevinmichaelchen deleted the mysql-imports branch December 13, 2018 20:47
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.

1 participant