Git Product home page Git Product logo

Comments (5)

wyhaya avatar wyhaya commented on September 22, 2024 1

Thanks @jasongitmail

To connect to the remote D1 database, it seems that only this API is available.

I have added a simple integration that should be available in the next version.
D1

from dataflare.

wyhaya avatar wyhaya commented on September 22, 2024 1

New version released!
These features are currently unavailable because D1 disables the running of certain SQL.

  1. Schema Manager
  2. Column input suggestions in SQL editor about
  3. More...

from dataflare.

wyhaya avatar wyhaya commented on September 22, 2024 1

Column type

This is mainly because the API doesn't return the column type and we may need additional SQL query to get it.
Track it here: #57

_cf_KV

This is supposed to be a built-in table for the D1, I suspect it doesn't have anything to do with the Workers KV (I'm not sure), let's leave it here until I figure it out.

It comes from this SQL:

SELECT name FROM sqlite_master WHERE type = 'table' ORDER BY name;

from dataflare.

jasongitmail avatar jasongitmail commented on September 22, 2024

Very cool! Thanks!

from dataflare.

jasongitmail avatar jasongitmail commented on September 22, 2024

Thanks! This works great.

  • One improvement would be to show the column type (number, blob, etc) next to the col name, like you do for other database types:

  • Also, I assume this is expected, but FYI in case it's not. Should the _cf_KV table be hidden by default? I enabled Workers KV on my API key, so I assume it's just not possible, but I don't know for sure.

from dataflare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.