Comments (3)
yeah, I think returning strings would not be ideal for general usage.
What do you imagine the result would store if it was not the Table
and Field
instances? Those objects hold a little surround information but not much by design.
For instance,
from pypika import Table, Field
table = Table("table")
field_from_table = table.field
field = Field("field")
table
alone doesn't store that much information
field_from_table
has table information in table
attribute
field
is standalone which could be from any table without query context
from pypika.
I think this sounds very useful. Do you think returning Table objects and Field objects instead of string would still be useful?
from pypika.
@wd60622 I'd be happy getting objects back instead of strings, so long as I can extract the extra information. However, I suspect we'd want metadata objects and not just Table
and Field
objects. For example, if we later want to extend its capabilities, we might not want to change the underlying Table
and Field
objects.
from pypika.
Related Issues (20)
- numpy style docstrings HOT 2
- Python 3.11.5 ERROR: Could not build wheels for pypika, HOT 11
- Bump the version of pypika and start a Changelog HOT 2
- Query Attribute Not Found HOT 2
- ClickHouse dialect: CREATE TABLE HOT 2
- Problem in Abstract class HOT 1
- Identifier quote escaping HOT 1
- How to use pypika to implement the 'MATCH AGAINST' statement for full-text search queries HOT 1
- NOT BETWEEN possible? HOT 4
- MySQL queries should wrap set operations HOT 4
- Join on multiple columns not working HOT 4
- Postgresql array in array HOT 3
- How to order by distance? HOT 5
- Set up documentation automation HOT 2
- [bug] ImportError: cannot import name 'ClickHouseQuery' from 'pypika.dialects' (\.venv\lib\site-packages\pypika\dialects\__init__.py) HOT 8
- Handle AliasedQuery in backend during with statement
- Discuss automations
- can we get querybuilder object from stringified obj? HOT 3
- dialect parameter without effect HOT 1
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 pypika.