tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
220 stars 37 forks source link

Query plan limits from the API #488

Closed penberg closed 1 year ago

penberg commented 1 year ago

We currently have the plan limits hard-coded into the CLI. Let's add a new API for this and use that.

Mr-Destructive commented 1 year ago

I would like to work on this. Can I get more information? Like the repository where the API is built? Is it chiselstrike?

v1/plans/ This is the current api endpoint right? which gives this response

{
  "plans": [
    {
      "name": "starter",
      "price": "0"
    },
    {
      "name": "scaler",
      "price": "29"
    }
  ]
}

So, need to add more fields like max_row_reads and max_row_writes?

penberg commented 1 year ago

@Mr-Destructive The API server is not open source so unfortunately you won't be able to work on this until we implement the plans stuff there.

Mr-Destructive commented 1 year ago

Ok, cool, will look into other issues.

athoscouto commented 1 year ago

That is fixed on turso plan show. I'll close this as the new command will eventually replace turso account show.