Expand documentation
See original GitHub issueIn 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:
- Created 5 years ago
- Reactions:9
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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@brainless would be great tbh, currently stuck with joining tables 😃