GithubHelp home page GithubHelp logo

Operator istore - int[] about istore HOT 5 CLOSED

ArturFormella avatar ArturFormella commented on May 26, 2024
Operator istore - int[]

from istore.

Comments (5)

chochkov avatar chochkov commented on May 26, 2024

@ArturFormella the functionality already exists as a function:

nikola@[local] nikola # \dx istore
            List of installed extensions
  Name  | Version | Schema |       Description
--------+---------+--------+-------------------------
 istore | 0.1.6   | public | an integer based hstore
(1 row)

nikola@[local] nikola # select delete('1=>0, 2=>0, 3=>0'::istore, '{2,3}'::integer[]);
  delete
----------
 "1"=>"0"
(1 row)

from istore.

ArturFormella avatar ArturFormella commented on May 26, 2024

Oh, thank you for pointing this out!

from istore.

einhverfr avatar einhverfr commented on May 26, 2024

In that case it should be really easy to add an operator, if it is helpful. I will look at this.

from istore.

rapimo avatar rapimo commented on May 26, 2024

do we finally want this as operator? What are the benefits having an operator over a function?

from istore.

einhverfr avatar einhverfr commented on May 26, 2024

On further thought I think a function is clearer here than an operator (which is just semantic sugar around a function anyway). A subtraction operator might not be sufficiently clear in that case especially if you think of istore as a sparse array.

from istore.

Related Issues (13)

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.