0.1.4 • Published 2 years ago

@xata.io/shell v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Shell

The shell opens a REPL with a xata global variable containing an initialized XataClient generated for your current database and branch.

# The shell will use the env variables XATA_DATABASE_URL and XATA_API.
# You can define them in an `.env` file in the current directory.
npx @xata.io/shell

The shell uses the Node.js repl package with a couple of additions:

  • Expressions that return a promise are resolved automatically.
  • If you end an expression with \t, it will be printed with console.table().

Example:

// You can do
xata.db.teams.getMany() \t
// Which is equivalent to
console.table(await xata.db.teams.getMany())
0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.0

2 years ago