
Enhances database operations with Google Room library by providing tools for database validation, management, and filesystem utilities, along with extensions for SQLite connections and statements.
DBTools Room is a KMP library that makes it even easier to work with Google Room Library and SQLite Databases.
Setup
commonMain.dependencies {
implementation("org.dbtools:dbtools-room:11.0.0")
}Platforms: Android (minSdk 26), JVM, iOS (iosArm64, iosSimulatorArm64), macOS (macosArm64), Linux (linuxX64)
Room version support
| dbtools-room | Room |
|---|---|
| 10.x+ | Room 3.x KMP (androidx.room3) |
| 9.x | Room 2.7.0+ KMP (SQLite Driver) |
| 8.3.0+ | Room 2.7.0 with Support SQLite |
Features
Transactor and RoomDatabase)
CREATE statement) and column info (type, not-null, default, primary key)getColumnIndexOrThrow()getTextOrNull(), getLongOrNull(), etc)bindArgs() to bind a list of values, and getValue() / getValues() to read a column or row back as its SQLite typeString.quoteSqlIdentifier() to safely quote table/column names in SQLCopyright 2017-2026 Jeff Campbell
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
DBTools Room is a KMP library that makes it even easier to work with Google Room Library and SQLite Databases.
Setup
commonMain.dependencies {
implementation("org.dbtools:dbtools-room:11.0.0")
}Platforms: Android (minSdk 26), JVM, iOS (iosArm64, iosSimulatorArm64), macOS (macosArm64), Linux (linuxX64)
Room version support
| dbtools-room | Room |
|---|---|
| 10.x+ | Room 3.x KMP (androidx.room3) |
| 9.x | Room 2.7.0+ KMP (SQLite Driver) |
| 8.3.0+ | Room 2.7.0 with Support SQLite |
Features
Transactor and RoomDatabase)
CREATE statement) and column info (type, not-null, default, primary key)getColumnIndexOrThrow()getTextOrNull(), getLongOrNull(), etc)bindArgs() to bind a list of values, and getValue() / getValues() to read a column or row back as its SQLite typeString.quoteSqlIdentifier() to safely quote table/column names in SQLCopyright 2017-2026 Jeff Campbell
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.