Git Product home page Git Product logo

query_int_parser's Introduction

Build:

cmake <path/to/sources/directory> -DPOSTGRESQL=ON
make

(to test it in CLI, without altering PostgreSQL, remove -DPOSTGRESQL=ON)

Install:

make install

Execute SQL statement that was output in PostgreSQL (in your database as a priviliged user).

Restart PostgreSQL.

Use the function. Example: CREATE UNIQUE INDEX ON table_name(compile_query_int(query_int_column_name::text, TRUE, TRUE));.

Prototype: bytea compile_query_int(query text, bool throw_false, bool throw_true)

  • query: the text representation of the query_int
  • throw_false: throw error is expression is always false (eg: 1&!1)
  • true: throw error is expression is always true (eg: 42|!42)

GUC (configuration):

  • intarray.query_int.max_symbols: maximum number of integers in a query_int (default: 16, minimum: 2, maximum: 31)
  • intarray.query_int.max_stack_size: maximum stack size for query_int parsing (default: 256)

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.