repr should be very fast repr should allow for recreation of the object but this may not be practical
[ins] In [1]: import ibis
[ins] In [2]: from ibis import _
[ins] In [3]: con = ibis.duckdb.connect("/home/gil/data/imdb.ddb")
[ins] In [4]: ratings = con.tables.ratings
[ins] In [5]: basics = con.tables.basics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ibis | |
| # Need to define a schema for each table in the SQL | |
| catalog = { | |
| "employee": {"first_name": "string", "last_name": "string", "id": "int64"}, | |
| } | |
| # SQL to translate | |
| sql = "SELECT *, first_name as first FROM employee WHERE id < 5 ORDER BY id DESC" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from xonsh.imphooks import XonshImportHook | |
| from xonsh.execer import Execer | |
| sys.meta_path.append(XonshImportHook(Execer())) | |
| from tiny_scriptlet import * | |
| def test_xonsh_function(): |
OlderNewer