Coder Social home page Coder Social logo

Comments (9)

rodo avatar rodo commented on May 20, 2024 1

@theory I'm ok to work on this if you think it's still a goood idea, I'll submit a PR with new is_indexed functions

-- is_indexed( schema, table, columns[], description )                                                                                                                    
-- is_indexed( schema, table, columns[] )                                                                                                                                 
-- is_indexed( schema, table, column/expression, description )                                                                                                            
-- is_indexed( schema, table, column/expression )                                                                                                                        
-- is_indexed( table, columns[], description )                                                                                                                            
-- is_indexed( table, columns[] )                                                                                                                                         
-- is_indexed( table, column/expression, description )                                                                                                                    
-- is_indexed( table, column/expression ) 

from pgtap.

theory avatar theory commented on May 20, 2024

Makes sense. Want to submit a pull request with that version?

from pgtap.

keithf4 avatar keithf4 commented on May 20, 2024

Not sure when/if I'll have the time to look into the code and figure out how to make another version. Not something I was needing immediately, so I can wait until you have the chance to work on it.

from pgtap.

theory avatar theory commented on May 20, 2024

Might be a bit tricky, given polymorphism issues. I would see adding:

has_index( schema, table, description )
has_index( schema, table )
has_index( table, description )
has_index( table )

But these will conflict with existing 2- and 3-argument forms.

from pgtap.

keithf4 avatar keithf4 commented on May 20, 2024

Doh. Well, never know unless I asked. Thanks. :)

from pgtap.

keithf4 avatar keithf4 commented on May 20, 2024

How about calling it something different like: has_index_column

from pgtap.

theory avatar theory commented on May 20, 2024

Indexes don't necessarily index columns.

Could go with is_indexed(). Maybe.

from pgtap.

keithf4 avatar keithf4 commented on May 20, 2024

Even better

from pgtap.

theory avatar theory commented on May 20, 2024

Done in #103, thanks!

from pgtap.

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.