airsequel / airgql Goto Github PK
View Code? Open in Web Editor NEWAutomatically generate a GraphQL API for an SQLite database
Home Page: https://docs.airsequel.com/graphql-api
Automatically generate a GraphQL API for an SQLite database
Home Page: https://docs.airsequel.com/graphql-api
data
field must always be an objectextensions
field should be merged with oursRight now it doesn’t return any rows if one entry overflows:
"data": {
"misc": null
},
However, it should return the correct entries like this:
{
"data": {
"misc": [
{
"int_col": 2343
},
{
"int_col": null
},
{
"int_col": 5
},
]
},
"errors": [
{
"locations": [
{
"column": 5,
"line": 3
}
],
"message": "Unable to coerce result to Int.",
"path": [
"misc",
2,
"int_col"
]
}
]
}
Can probably be achieved by translating it to EXPLAIN QUERY PLAN
SQL queries.
This would be great for writing front-end tests, where the fron-end sends a few GraphQL queries on initial usage to check whether the backend changed.
From docs (https://www.sqlite.org/lang_upsert.html):
The UPSERT processing happens only for uniqueness constraints. A "uniqueness constraint" is an explicit UNIQUE or PRIMARY KEY constraint within the CREATE TABLE statement, or a [unique index](https://www.sqlite.org/lang_createindex.html#uniqueidx).
I wonder if we should also support it for other columns. This would then be executed by the server, since SQLite doesn’t support it. Basically if insert causes an error, run:
UPDATE "users"
SET name = 'Marc'
WHERE name == 'John'
(Must be one transaction)
This repo contains code for how to handle them in Elm:
github.com/higherkindness/mu-graphql-example-elm
And don’t return a 500 when executing a SQL query over a BLOB column.
Should then probably be written in Rust instead. E.g. with github.com/asg017/sqlite-loadable-rs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.