Giter Site home page Giter Site logo

Comments (3)

wd60622 avatar wd60622 commented on June 2, 2024 1

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.

wd60622 avatar wd60622 commented on June 2, 2024

I think this sounds very useful. Do you think returning Table objects and Field objects instead of string would still be useful?

from pypika.

Ovid avatar Ovid commented on June 2, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.