Comments (9)
@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.
Makes sense. Want to submit a pull request with that version?
from pgtap.
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.
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.
Doh. Well, never know unless I asked. Thanks. :)
from pgtap.
How about calling it something different like: has_index_column
from pgtap.
Indexes don't necessarily index columns.
Could go with is_indexed()
. Maybe.
from pgtap.
Even better
from pgtap.
Done in #103, thanks!
from pgtap.
Related Issues (20)
- Cannot run pg_prove example from docs HOT 2
- Misleading Installation Instructions HOT 4
- table_privs_are is falsely reporting extra privileges HOT 4
- Question: pgTap on Greenplum? HOT 3
- How to use the return value of an insert? HOT 7
- [pg_prove] "tests out of sequence" failure with multiple checks in a single statement HOT 1
- Is Postgres 15 supported? HOT 1
- Regression test ruletap.sql failed due to recent change in PG16
- Unable to install on MacOS HOT 2
- New release with PG16 support HOT 10
- `col_type_is` cannot handle expected type `interval second(0)` HOT 24
- Add support for IDENTITY columns HOT 2
- add has_comment()
- Allow to test with snapshots HOT 2
- How to install and use pgtap in different schema? HOT 1
- passing the name of a test directory to pg_prove return 'Result: NOTESTS' HOT 1
- Cannot install pgTAP 1.3.1 HOT 4
- No longer installable by non-superuser HOT 9
- Function to check procedure privileges HOT 3
- Bad links in documentation 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 pgtap.