Comments (2)
I think the fix here would be to make this code deal with cases where pk
is already set to a value and, possibly, error when it isn't and its type is not an integer.
from deta.
Looks like the problem is SQLite-specific. Its dialect-supports-returning?
is #f
and its (dialect-last-id-query dialect)
is always going to return the automatically-created rowid
column regardless of what the primary key column is.
from deta.
Related Issues (20)
- [Question] Use with North HOT 2
- Postgresql binary type support HOT 2
- Maybe `insert-one!` ought to query entity inserted? HOT 1
- uuid PostgreSQL data type HOT 1
- Question: convey "where" conditions as values? HOT 3
- group-by: name collision with racket/list HOT 1
- Question / suggestion: "virtual" fields? HOT 16
- Question: polymorphic operations on entities? HOT 3
- join isn't support subquery contract correct HOT 1
- Support for MySQL HOT 3
- A use case for DISTINCT
- How to go about turning a schema entity to json? HOT 1
- jsonb operators HOT 2
- query-exec fails with queries that generate prepared statements HOT 7
- sqlite3 dialet: cannot convert given value to SQL type HOT 2
- How to define foreign keys? HOT 3
- integer exceed default `type?` contract? HOT 1
- Consider provide `define-type` from deta/type module
- SQLite RETURNING clause support
- Identifiers aren't always quoted HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deta.