Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kwil-db v0.10 changes #59

Open
3 of 13 tasks
KwilLuke opened this issue Jan 7, 2025 · 0 comments
Open
3 of 13 tasks

Kwil-db v0.10 changes #59

KwilLuke opened this issue Jan 7, 2025 · 0 comments

Comments

@KwilLuke
Copy link
Contributor

KwilLuke commented Jan 7, 2025

Immediate Changes

These need to be implemented by the time kwil-db v0.10 reaches final release.

  • Move Firebird to be the first item in the nav bar list

  • On the database tab, if a user is not connected to an instance, prompt them to deploy one in firebird.

  • On firebird deployment page, change Kwil Version to 0.10.0

  • Change Kwil CLI sample code to:

      1. Install instructions:
    kwil-cli version
      1. Connect to provider:
    kwil-cli utils ping
      1. Interact with Database. Use an Ethereum Private Key at <your-private-key>.
    • Create a table:
    kwil-cli database execute -s "CREATE TABLE users (id uuid primary key, name text notnull);" \n
    --provider=<provider-address> \n
    --chain-id=<chain-id> \n
    --private-key=<your-private-key>
    • Insert data:
    kwil-cli database execute -s "INSERT INTO users (id, name) VALUES (<generate-uuid>, 'Bob');" \n
    --provider=<provider-address> \n
    --chain-id=<chain-id> \n
    --private-key=<your-private-key>

    NOTE: The DB admin should auto-generate a uuid at <generate-uuid>

  • Change JavaScript sample code to match behavior in kwil cli.

  • When clicking Connect to Provider change the two options to:

    • Execute SQL (link to IDE page)
    • View Data (link to Databases page)
  • On IDE page, change each file to be a .sql file, and apply SQL validation logic (if simple, if not, SQL validation can be a future item).

  • On the databases page, show all schemas, including schemas that start with _kwild (@brennanjl - can you give your opinion on this? should all schemas be visible through the db admin?)

    • image
  • Update how the schema information is retrieved (e.g., actions, schemas, tables, etc.). See this document for reference: https://docs.google.com/document/d/1NfOicqc4WE5SEVNzxYkFrGwj6qn_Cid1GKe7C2kFxec/edit?usp=drive_link

  • Remove Other Database

  • Change Pinned Databases and My Databases to Pinned Schemas and My Schemas

Future Changes

These can be implemented after the release.

  • Add a terminal-like interface/modal to the databases page that allows people to execute ad-hoc SQL. This interface should be able to expand and contract.
  • Add a similar terminal-like interface to the deployments page on the firebird section, allowing users to execute queries immediately after they deploy (decrease the amount of navigation the user needs to do to start using the DB)
    • There should be a section that gives similar tips to the kwil-cli and Javascrip section; however, a user should be able to hide the tips if they wish.
    • E.g,. Screen Shot 2025-01-07 at 11 54 24 AM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant