{"repo":"hfhbd/postgres-native-sqldelight","free":true,"listed":false,"github":"https://github.com/hfhbd/postgres-native-sqldelight","clone":"git clone https://github.com/hfhbd/postgres-native-sqldelight.git","description":"A Kotlin native Postgres driver for SqlDelight.","language":"Kotlin","stars":49,"topics":["kotlin-native","postgresql","sqldelight"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"PostgreSQL native SQLDelight driver A native Postgres driver using libpq. You can use the driver with SQLDelight, but this is not required. - Source code Keep in mind, until now, this is only a single-threaded wrapper over libpq using 1 connection only. There is no connection pool nor multithread support (like JDBC or R2DBC). Install You need libpq installed and available in your $PATH . This package is uploaded to MavenCentral and supports macOS and linuxX64. Windows is currently not supported. Usage Listeners This driver supports local and remote listeners. Local listeners only notify this client, ideally for testing or using the database with only one client at a time. Remote listener support uses NOTIFY and LISTEN , so you can use this to sync multiple clients or with existing database triggers. SQLDelight uses and expects the table name as payload, but you can provide a mapper function. SQLDelight Support Just create the driver and use your database instances in the usual way. Raw usage Beside SQLDelight you could also use this driver with raw queries. The identifier is used to reuse prepared statements. It also supports a real lazy cursor by using a Flow . The fetchSize parameter defines how many rows are fetched at once: And for bulk imports, use the copy method. You need to enable COPY first: License Apache 2 Contributing Devcontainers Start the devcontainer, that's it. Local docker compose This is the preferred local option. The app service contains the JVM as well a","default_branch":null,"files":null,"tree":[],"storefront":"/r/hfhbd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hfhbd/postgres-native-sqldelight/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."}