Comments (3)
The original pull request introduces table
and ttable
output formats for the tt console
:
#535
The pull request introduces format
for standalone tuples:
tarantool/tarantool#8549
from tt.
Blocked by: tarantool/tarantool#10005
We discussed the issue with @sergepetrenko and decided to implement the feature by our team. It does not look like a big deal (but it may take time for RFC/approve/etc).
from tt.
The idea is here to implement console.eval analogue in the file:
https://github.com/tarantool/tt/blob/master/cli/connect/lua/console_eval_func_body.lua
We already have something like that in:
https://github.com/tarantool/tt/blob/master/cli/connect/lua/eval_func_body.lua
And call it instead. The difference will be after the line:
https://github.com/tarantool/tarantool/blob/b32b20c6640bb0b1a6ca278bad8061529d46b5b0/src/box/lua/console.lua#L428
Here we need to transform raw lua-tuples and form a table with a metadata(format) in the SQL
manner:
> box.execute([[SELECT * FROM SEQSCAN TABLE1;]])
---
- metadata:
- name: COLUMN1
type: integer
- name: COLUMN2
type: string
rows:
- [10, 'Hello SQL world!']
- [20, 'Hello LUA world!']
...
It could although require an additional flag to notify the tt
that the source data is a raw lua tuples. It will help to output into Lua/YAML as before:
- metadata:
- name: COLUMN1
type: integer
- name: COLUMN2
type: string
lua: true
rows:
- [10, 'Hello SQL world!']
- [20, 'Hello LUA world!']
As result, we will able to print the data in table/ttable/Lua/yaml format on the tt
side.
from tt.
Related Issues (20)
- tt coredump inspection enhancements
- Consider extending default ignore list on pack HOT 6
- Update luarocks dependency to the latest version
- Allow to ignore paths on artifact pack
- Please respect TT_CLI_CFG environment variable as a path to tt.yaml HOT 1
- tt clean always fails with multiple rm attempts HOT 1
- Support the manual master switch using the failover coordinator HOT 3
- Look up failover coordinators status
- Describe a way how to migrate from cartridge-cli pack
- tt help mustn't require config
- tt crashes with "Operation is not permitted" HOT 3
- ``tt replicaset status``: no clear error when incorrect orchestrator is forced
- cartridge app is failing to start after `tt clean` HOT 1
- Tarantool 3 config instance fails to use 108 symbols control socket on tt start HOT 1
- `tt status`: show RO/RW status HOT 2
- `tt status`: give more status information
- Publish workflow and tests on self-hosted mac os runners do not work. HOT 2
- pack: duplicate environment directories and configs if instances.enabled=.
- `instances_enabled: "."` in `tt.yaml` leads to incorrect app naming in some cases HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tt.