question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expand documentation

See original GitHub issue

In particular:

  • More examples of queries.
  • Examples of using JSON field.
  • Examples with joining tables.
  • Getting PK of inserted rows.
  • Properly document return types of the databases API.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:9
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mivadecommented, Sep 6, 2019

Digging into the code, it looks like it is in the same way as with SQLAlchemy (i.e., it gets returned when calling execute on an insert statement). Unfortunately this doesn’t always return the primary key though. For example, with SQLite, the last “rowid” gets returned which corresponds to an integer primary key (in cases where the primary key is an integer) or the “undeclared” ROWID column: https://docs.python.org/3/library/sqlite3.html#sqlite3.Cursor.lastrowid

0reactions
hp0404commented, Jul 11, 2021

@brainless would be great tbh, currently stuck with joining tables 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expanding responses | Stripe Documentation
Learn how to reduce the number of requests you make to the Stripe API by expanding objects in responses.
Read more >
Collapse or expand parts of a document - Microsoft Support
To collapse or expand all the headings in your document, right-click the heading and click Expand/Collapse > Expand All Headings or Collapse All...
Read more >
expand(_:) | Apple Developer Documentation
Expanding and collapsing items ... Indicates whether the item with the specified identifier is in an expanded state. ... Collapses the specified items...
Read more >
Expand - Wolfram Language Documentation
Expand [expr] expands out products and positive integer powers in expr. Expand[expr, patt] leaves unexpanded any parts of expr that are free of...
Read more >
expand - Documentation - Akka
expand provides access to the element flowing through the stream and let's us create extra frames in case the producer slows down: Scala:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found