datasette-graphql
pluralize
Our great sponsors
datasette-graphql | pluralize | |
---|---|---|
2 | 1 | |
97 | 2,103 | |
- | 0.6% | |
4.1 | 4.8 | |
20 days ago | 5 months ago | |
Python | JavaScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
datasette-graphql
-
Tuql: Automatically create a GraphQL server from a SQLite database
Impressive how little code is involved here! This is really neat.
The biggest feature I can see that's missing is pagination - it looks like this doesn't have a way to retrieve e.g. ten results, then pass a next token to get back the next set.
Here's how I implemented pagination in my similar datasette-graphql plugin (which also gives you a GraphQL API for an existing SQLite database): https://github.com/simonw/datasette-graphql#pagination
-
Are there open source projects to view that would help me understand cursors/pagination/edges/nodes & Inmemorycache ?
My source code is here, but it likely won't be much use to you - it's full of weird introspection because I'm trying to make this work against any database table: https://github.com/simonw/datasette-graphql/blob/1.4/datasette_graphql/utils.py
pluralize
-
Tuql: Automatically create a GraphQL server from a SQLite database
> The primary key column is named id or thing_id or thingId, where thing is the singular form of the table name.
Is it naming relations in plural a common thing in practice?
I thought best-practice was to name relations either singular (as each tuple represents one entry) or uninflected (still singular for most words), specially when you're not a fluent speaker of the language being used to name the relations of the database.
Plurals are often irregular for commonly used words, and the fact that this requires a external dependency ( https://github.com/plurals/pluralize ) to cover for some "common plurals" is telling that supporting this feature is a complex thing indeed - that would not be required in the first place with singular everywhere.
What are some alternatives?
datasette-dashboards - Datasette plugin providing data dashboards from metadata
tuql - Automatically create a GraphQL server from a SQLite database or a SQL file
csvs-to-sqlite - Convert CSV files into a SQLite database
madatdata - 😠📈 Madatdata ("mad at data") is a TypeScript library for managing and querying SQL databases (so far including Seafowl and Splitgraph, but with an interface that makes it easy to add plugins for other databases).
datasette-auth-github - Datasette plugin that authenticates users against GitHub
profane-words - A very long list of English profanity.
datasette - An open source multi-tool for exploring and publishing data
datasette-chatgpt-plugin - A Datasette plugin that turns a Datasette instance into a ChatGPT plugin
corpora - A collection of small corpuses of interesting data for the creation of bots and similar stuff.
ilo_nimi_pi_toki_pona - A chrome extension for looking up Toki Pona words