Git Product home page Git Product logo

Comments (1)

HidekiSugimoto189 avatar HidekiSugimoto189 commented on June 12, 2024

The following extraction conditions are supported.

method generated sql comment
equal("col", "value") col = 'value'
notEqual("col", "value") col != 'value'
greaterThan("col", 1) col > 1
lessThan("col", 1) col < 1
greaterEqual("col", 1) col >= 1
lessThan("col", 1) col <= 1
in("col", "val1", "val2") col in ('val1', 'val2')
in("col", List.of("val1", "val2")) col in ('val1', 'val2')
notIn("col", "val1", "val2") col not in ('val1', 'val2')
notIn("col", List.of("val1", "val2")) col not in ('val1', 'val2')
like("col", "%val%") like '%val%' "%val%" does not escape
startsWith("col", "val") like 'val%' "val" does escape
endsWith("col", "val") like '%val' "val" does escape
contains("col", "val") like '%val%' "val" does escape
notLike("col", "%val%") not like '%val%' "%val%" does not escape
notStartsWith("col", "val") not like 'val%' "val" does escape
notEndsWith("col", "val") not like '%val' "val" does escape
notContains("col", "val") not like '%val%' "val" does escape
between("col", 1, 2) col between 1 and 2
isNull("col") col is null
isNotNull("col") col is not null
where("col = 1 or col = 2") (col = 1 or col = 2) If specified with more than one or other extraction conditions, it is combined with an AND operator
asc("col1", "col2") order by col1 asc, col2 asc Specify NULLS LAST if NULLS is available
asc("col1", Nulls.FIRST) order by col1 asc NULLS FIRST When specified more than once, they are arranged in call order
desc("col1", "col2") order by col1 desc, col2 desc Specify NULLS LAST if NULLS is available
desc("col1", Nulls.FIRST) order by col1 desc NULLS FIRST When specified more than once, they are arranged in call order
limit(10) LIMIT 10 Throw UroborosqlRuntimeException if the limit database can not be used. The sentence to be output is switched depending on the dialect of the database.
offset(10) OFFSET 10 Throw UroborosqlRuntimeException if the offset database can not be used. The sentence to be output is switched depending on the dialect of the database.

from uroborosql.

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.