001// Licensed under the MIT license. See LICENSE file in the project root for full license information.
002
003package de.bytefish.pgbulkinsert.pgsql.model.range;
004
005// https://github.com/npgsql/npgsql/blob/d4132d0d546594629bcef658bcb1418b4a8624cc/src/Npgsql/NpgsqlTypes/NpgsqlRange.cs
006public class RangeFlags {
007
008    public static final int None = 0;
009
010    public static final int Empty = 1;
011
012    public static final int LowerBoundInclusive = 2;
013
014    public static final int UpperBoundInclusive = 4;
015
016    public static final int LowerBoundInfinite = 8;
017
018    public static final int UpperBoundInfinite = 16;
019
020    public static final int Inclusive = LowerBoundInclusive | UpperBoundInclusive;
021
022    public static final int Infinite = LowerBoundInfinite | UpperBoundInfinite;
023
024    public static final int LowerInclusiveInfinite = LowerBoundInclusive | LowerBoundInfinite;
025
026    public static final int UpperInclusiveInfinite = UpperBoundInclusive | UpperBoundInfinite;
027}