Code Monkey home page Code Monkey logo

Comments (5)

alphabitserial avatar alphabitserial commented on August 19, 2024

I have some questions, as I've noticed some inconsistencies in the original pages ("All About Inserts" & "All About Updates"), and I'd like to make them consistent while I update them:

  • In the SQL code blocks, should I be using $1 etc. or ? ?
  • Should I include or exclude the --binds ["foo"] SQL comments?

from diesel.rs-website.

weiznich avatar weiznich commented on August 19, 2024

First of all: Thanks for working on this. Your PR's are really helpful.

To answer your two questions:

In the SQL code blocks, should I be using $1 etc. or ? ?

I would use $1 etc. there as this is the postgres specific bind syntax and all of the guides currently assume that you use postgres.

Should I include or exclude the --binds ["foo"] SQL comments?

I would include the binds there, as this is the output generated by debug_query. Additionally that gives an hint which values where used in place of the bind.

I'm only able to perform a complete review of your PR's next week, as I'm away from my PC for this weekend.

from diesel.rs-website.

alphabitserial avatar alphabitserial commented on August 19, 2024

Okay, sounds great. I ended up busier this weekend than I expected, but I will have time this week to finish up.

from diesel.rs-website.

weiznich avatar weiznich commented on August 19, 2024

No worries, take your time. Your contributions are already really helpful.

from diesel.rs-website.

weiznich avatar weiznich commented on August 19, 2024

Fixed by #160

from diesel.rs-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.