{"repo":"jhannes/fluent-jdbc","free":true,"listed":false,"github":"https://github.com/jhannes/fluent-jdbc","clone":"git clone https://github.com/jhannes/fluent-jdbc.git","description":"Java database code without ORM in a pleasant and fluent style","language":"Java","stars":36,"topics":["java","database","jdbc","fluent","library"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"fluent-jdbc Java database code without ORM in a pleasant and fluent style Motivating code example, using DbContext: Features DbContextSaveBuilder generates INSERT or UPDATE statements based on whether the object already exists in the database DbContextSelectBuilder lets you build queries where you can ensure that the ? -marks match the parameters DbContextJoinedSelectBuilder lets you build express queries with inner end left joins in a fluent way DatabaseStatement converts parameters of all statements created with Fluent JDBC. It supports UUID, Instant, OffsetDateTime, ZonedDateTime, enums and database array types DatabaseRow supports rich usage of by giving you access to any column in any table included in the query with e.g. row.table(\"persons\").getString(\"name\") . It helps you convert from database types to UUIDs, Instants, OffsetDateTime, ZonedDateTime, enums and database array types There are two ways of using fluent-jdbc: Either you pass around Connection-objects to execute and query methods on DatabaseTable, or you use DbContext to bind a connection to the thread. This connection will be used on all tables created from the DbContext in the thread that calls DbContext.startConnection . Central classes Full usage example This example shows how to create domain specific abstractions on top of fluent-jdbc. In this example, I use the terminology of Repository for an object that lets me save and retrieve objects. You are free to call this e.g. DAO if you prefer. From UsageDe","default_branch":null,"files":null,"tree":[],"storefront":"/r/jhannes","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jhannes/fluent-jdbc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}