1
Fork 0
mirror of https://github.com/Airsequel/AirGQL.git synced 2025-10-31 15:35:56 +01:00
Commit graph

21 commits

Author SHA1 Message Date
58e3f0bb7b Add insertonly endpoint to airgql server
I removed the `readonlyGqlPostHandler` thingy from airgql,
as it seemed to be a slightly worse version of the existing more
general gql post handler. The one difference is that it was trying
to use the readonly db directory, although the token already protected
the queries to reading only, so this didn't matter. Moreover, the
writeonly endpoint was also using the readonly directory, which seemed
like a mistake (I removed that handler as well in favour of passing the
`writeonly` access mode to the existing handler).

I also fixed a TODO, making it so the readonly airsequel-cli handler
takes the edition into account.
2024-12-07 16:47:58 +01:00
997455c3d8 Implement insert-only tokens 2024-12-07 16:30:24 +01:00
7a9914325d Prevent naming conflicts for _by_pk queries/mutations 2024-11-20 00:30:49 +01:00
9088c8fd05 Remove commented out code from graphiql playground component
Also make it so `_by_pk` is only disallowed as a table suffix, not infix
2024-11-15 16:14:34 +01:00
768b711a6f Add tests for _by_pk queries 2024-11-15 14:34:36 +01:00
9cebb6dc2d Migrate all gql code to share types with introspection 2024-11-14 18:04:10 +01:00
8894f14002 Detect primary key constraints properly
So far we were going off the primary_key flag given to us by sqlite, but
this flag is only set to true for one column when using multi-column
primary keys.

Moreover, this commit also implements a `isRowid` property on
`ColumnEntry`, which is both there for convenience, and to reuse the
"proper" (i.e., taking into account rowid columns named _rowid_) rowid
detection logic.
2024-11-14 18:01:55 +01:00
41a459fe09 Update graphiql & implement simpler introspection system 2024-11-14 18:01:55 +01:00
81018cd481 Fix typo 2024-10-01 02:39:50 +02:00
5394fcd9bc Explain what the "database or disk is full" error means to the user 2024-10-01 02:30:47 +02:00
d3378c7ecd Ensure sql names are always quoted properly 2024-10-01 02:02:19 +02:00
0d52017745 Add backend tests for reference following 2024-10-01 01:09:46 +02:00
cb0127ddd1 Implement main reference following mechanism on the backend 2024-10-01 01:09:46 +02:00
5372e9253c Add "goto reference" icon to frontend 2024-10-01 01:09:46 +02:00
449d6c84ff Bump sqlite parser 2024-09-04 23:26:40 +02:00
4350c1f539 Do not allow WITHOUT ROWID columns
PR: 
2024-07-21 00:16:34 +02:00
529573b675 Mark non-null gql query output fields as such 2024-07-20 21:58:05 +00:00
f4323b661b Fix BLOB display in query tab 2024-07-09 19:18:02 +02:00
ad679d32ca Fix tests after previous change 2024-05-27 14:18:20 +02:00
3cef611c85 Mark primary keys as UNIQUE 2024-05-27 12:56:07 +02:00
Adrian Sieber
fbee31a849 AirGQL: Clean up documentation, remove obsolete references to Airsequel 2024-05-03 08:39:25 +00:00