اسکای‌لایت

کتابخانه androidx.sqlite شامل رابط‌های انتزاعی به همراه پیاده‌سازی‌های اولیه است که می‌توانند برای ساخت کتابخانه‌های شخصی شما که به SQLite دسترسی دارند، استفاده شوند.

شاید بخواهید از کتابخانه Room استفاده کنید، که یک لایه انتزاعی روی SQLite فراهم می‌کند تا دسترسی به پایگاه داده قوی‌تری را فراهم کند و در عین حال از تمام قدرت SQLite بهره ببرد.

آخرین به‌روزرسانی انتشار پایدار کاندیدای انتشار انتشار بتا انتشار آلفا
۱ ژوئیه ۲۰۲۶ ۲.۷.۰ - - -

اعلام وابستگی‌ها

برای افزودن وابستگی به SQLite، باید مخزن Google Maven را به پروژه خود اضافه کنید. برای اطلاعات بیشتر، مخزن Maven گوگل را مطالعه کنید.

وابستگی‌های مربوط به مصنوعات مورد نیاز خود را در فایل build.gradle برای برنامه یا ماژول خود اضافه کنید:

گرووی

dependencies {
    def sqlite_version = "2.7.0"

    // Java language implementation
    implementation "androidx.sqlite:sqlite:$sqlite_version"

    // Kotlin
    implementation "androidx.sqlite:sqlite-ktx:$sqlite_version"

    // Implementation of the AndroidX SQLite interfaces via the Android framework APIs.
    implementation "androidx.sqlite:sqlite-framework:$sqlite_version"
}

کاتلین

dependencies {
    val sqlite_version = "2.7.0"

    // Java language implementation
    implementation("androidx.sqlite:sqlite:$sqlite_version")

    // Kotlin
    implementation("androidx.sqlite:sqlite-ktx:$sqlite_version")

    // Implementation of the AndroidX SQLite interfaces via the Android framework APIs.
    implementation("androidx.sqlite:sqlite-framework:$sqlite_version")
}

برای اطلاعات بیشتر در مورد وابستگی‌ها، به «افزودن وابستگی‌های ساخت» مراجعه کنید.

بازخورد

بازخورد شما به بهبود Jetpack کمک می‌کند. اگر مشکلات جدیدی کشف کردید یا ایده‌هایی برای بهبود این کتابخانه دارید، به ما اطلاع دهید. لطفاً قبل از ایجاد یک کتابخانه جدید، نگاهی به مشکلات موجود در این کتابخانه بیندازید. می‌توانید با کلیک بر روی دکمه ستاره، رأی خود را به یک مشکل موجود اضافه کنید.

ایجاد یک مسئله جدید

برای اطلاعات بیشتر به مستندات ردیاب مشکل مراجعه کنید.

نسخه ۲.۷

نسخه ۲.۷.۰

۱ ژوئیه ۲۰۲۶

androidx.sqlite:sqlite-*:2.7.0 is released. Version 2.7.0 contains these commits .

تغییرات مهم از زمان ۲.۶.۰:

  • Add js and wasmJs targets to androidx.sqlite:sqlite along with asynchronous version of the driver APIs: SQLiteDriver.open() , SQLiteConnection.prepare() and SQLiteStatement.step() for the web targets.
  • Existing projects that don't target web can continue using the synchronous APIs in common code, but once a project targets web then only the asynchronous APIs are available. For convenience a new artifact andriodx.sqlite:sqlite-async includes top-level suspend functions that use the synchronous naming scheme (along with executeSQL ) and are expect / actual declarations that will invoke the right variant based on the platform. It is recommended to use these APIs for common code targeting both web and non-web targets.
  • This release also includes a new artifact androidx.sqlite:sqlite-web which contains WebWorkerSQLiteDriver , a SQLiteDriver implementation for the web that communicates with a Web Worker to perform database operation via a simple messaging protocol. The protocol is documented in the WebWorkerSQLiteDriver and even though there is no default worker implementation with the artifact, one can be provided via the constructor. For a more concrete example on how this new artifact can be used, check out the Room 3.0 release notes .

نسخه ۲.۷.۰-rc01

۱۷ ژوئن ۲۰۲۶

androidx.sqlite:sqlite-*:2.7.0-rc01 منتشر شد. نسخه 2.7.0-rc01 شامل این کامیت‌ها است.

از نسخه ۲.۷.۰-alpha06 تغییر قابل توجهی رخ نداده است.

نسخه ۲.۷.۰-alpha06

۳ ژوئن ۲۰۲۶

androidx.sqlite:sqlite-*:2.7.0-alpha06 منتشر شد. نسخه 2.7.0-alpha06 شامل این کامیت‌ها است.

از نسخه ۲.۷.۰-alpha05 تغییر قابل توجهی رخ نداده است.

نسخه ۲.۷.۰-آلفا۰۵

۱۹ مه ۲۰۲۶

androidx.sqlite:sqlite-*:2.7.0-alpha05 منتشر شد. نسخه 2.7.0-alpha05 شامل این کامیت‌ها است.

نسخه ۲.۷.۰-آلفا۰۴

۶ مه ۲۰۲۶

androidx.sqlite:sqlite-*:2.7.0-alpha04 منتشر شد. نسخه 2.7.0-alpha04 شامل این کامیت‌ها است.

نسخه ۲.۷.۰-آلفا۰۳

۸ آوریل ۲۰۲۶

androidx.sqlite:sqlite-*:2.7.0-alpha03 منتشر شد. نسخه 2.7.0-alpha03 شامل این کامیت‌ها است.

تغییرات API

  • Remove openAsync() , prepareAsync() and stepAsync() from the common interfaces, keeping the suspend APIs only on the web source set interfaces. The suspend APIs are renamed, dropping the 'async' suffix since they no longer conflict with their blocking counterparts in the non-web source set.
  • The top-level suspend extension functions are moved into a new artifact andriodx.sqlite:sqlite-async and a new package androidx.sqlite.async . This is done in order to avoid sub-optimal usages of these extension functions on common sources that do not target web. They should also be avoided if the targets are only web. However, if targeting both web and non-web platforms, then the top-level functions are useful and allow writing common code for all platforms that uses the SQLiteDriver interfaces. ( I63c2c , b/336758416 , b/493837704 )

مشارکت خارجی

  • sqlite-ktx را در کتابخانه sqlite ادغام کنید. همه افزونه‌های کاتلین اکنون بخشی از مصنوع اصلی sqlite هستند. sqlite-ktx اکنون برای سازگاری یک مصنوع خالی است. ( Ib9512 )

نسخه ۲.۷.۰-آلفا۰۲

۲۵ مارس ۲۰۲۶

androidx.sqlite:sqlite-*:2.7.0-alpha02 منتشر شد. نسخه 2.7.0-alpha02 شامل این کامیت‌ها است.

رفع اشکالات

  • مشکل گم شدن نمادها در iOS هنگام استفاده از NativeSQLiteDriver و پیوند پویا به کتابخانه SQLite IOS ( b/434324365 ) برطرف شد.

نسخه ۲.۷.۰-آلفا۰۱

۱۱ مارس ۲۰۲۶

androidx.sqlite:sqlite-*:2.7.0-alpha01 منتشر شد. نسخه 2.7.0-alpha01 شامل این کامیت‌ها است.

ویژگی‌های جدید

  • اهداف js و wasmJs را به همراه نسخه ناهمزمان API های درایور به androidx.sqlite:sqlite اضافه کنید: SQLiteDriver.openAsync() ، SQLiteConnection.prepareAsync() و SQLiteStatement.stepAsync() .
  • پروژه‌های موجود که وب را هدف قرار نمی‌دهند، می‌توانند به استفاده از APIهای همگام در کد مشترک ادامه دهند، اما هنگامی که یک پروژه وب را هدف قرار می‌دهد، فقط APIهای ناهمگام در دسترس هستند. برای راحتی، بسته androidx.sqlite همچنین شامل توابع suspend سطح بالا است که از طرح نامگذاری همگام (همراه با executeSQL ) استفاده می‌کنند و اعلان‌های expect/actual هستند که نوع مناسب را بر اساس پلتفرم فراخوانی می‌کنند. توصیه می‌شود از این APIها برای کد مشترکی که اهداف وب و غیر وب را هدف قرار می‌دهد، استفاده کنید.
  • این نسخه همچنین شامل یک مصنوع جدید androidx.sqlite:sqlite-web است که شامل WebWorkerSQLiteDriver ، یک پیاده‌سازی SQLiteDriver برای وب است که با یک Web Worker برای انجام عملیات پایگاه داده از طریق یک پروتکل پیام‌رسانی ساده ارتباط برقرار می‌کند. این پروتکل در WebWorkerSQLiteDriver مستند شده است و حتی اگر هیچ پیاده‌سازی پیش‌فرضی برای worker با این مصنوع وجود نداشته باشد، می‌توان از طریق سازنده آن را ارائه داد. برای مثالی ملموس‌تر در مورد نحوه استفاده از این مصنوع جدید، یادداشت‌های انتشار Room 3.0 را بررسی کنید.

نسخه ۲.۶

نسخه ۲.۶.۲

۱۹ نوامبر ۲۰۲۵

androidx.sqlite:sqlite-*:2.6.2 منتشر شد. نسخه 2.6.2 شامل این کامیت‌ها است.

رفع اشکالات

  • بهبود عملکرد BundledSQLiteDriver با استفاده از @FastNative برای بهبود فراخوانی‌های JNI. ( 952b92 ، b/313895287 )
  • Enable extended error codes on the SQLite connections created by BundledSQLiteDriver . This means error messages coming from SQLite will have a more detailed code which is useful for diagnosing I/O issues and constraint violations. ( f1ec6f )

نسخه ۲.۶.۱

۲۴ سپتامبر ۲۰۲۵

androidx.sqlite:sqlite-*:2.6.1 منتشر شد. نسخه 2.6.1 شامل این کامیت‌ها است.

رفع اشکالات

  • قانون R8 برای توابع بومی اصلاح شد تا امکان مبهم‌سازی مناسب فراهم شود ( b/442489402 ).
  • یک NPE که ممکن است هنگام استفاده از API پشتیبانی getBeginTransactionMethod در یک سناریوی همزمان رخ دهد را برطرف کنید. ( b/444049518 ).
  • Reduce the JNI/native dependencies of bundled-sqlite to increase compatibility when loading the library. ( b/442489402 ).
  • مشکلی را در AndroidSQLiteDriver برطرف کردیم که باعث می‌شد حتی اگر ژورنال روی حالت WAL تنظیم شده بود، مجموعه اتصالات چندگانه غیرفعال شود ( b/444286035 ).

نسخه ۲.۶.۰

۱۰ سپتامبر ۲۰۲۵

androidx.sqlite:sqlite-*:2.6.0 منتشر شد. نسخه 2.6.0 شامل این کامیت‌ها است.

تغییرات مهم از زمان ۲.۵.۰:

  • Support loading SQLite extensions by adding the addExtension function to BundledSQLiteDriver , which can be used to register extensions that SQLite should dynamically load for connections opened with that particular driver.
  • پشتیبانی از KMP برای سیستم‌عامل‌های Watch OS و Tv OS اضافه شد.
  • به‌روزرسانی minSDK اندروید کتابخانه از API 21 به API 23.

نسخه ۲.۶.۰-rc02

۲۷ آگوست ۲۰۲۵

androidx.sqlite:sqlite-*:2.6.0-rc02 منتشر شد. نسخه 2.6.0-rc02 شامل این کامیت‌ها است.

تغییرات API

نسخه ۲.۶.۰-rc01

۱۳ آگوست ۲۰۲۵

androidx.sqlite:sqlite-*:2.6.0-rc01 منتشر شد. نسخه 2.6.0-rc01 شامل این کامیت‌ها است.

نسخه ۲.۶.۰-بتا۰۱

۱ آگوست ۲۰۲۵

androidx.sqlite:sqlite-*:2.6.0-beta01 منتشر شد. نسخه 2.6.0-beta01 شامل این کامیت‌ها است.

ویژگی‌های جدید

  • androidx.sqlite اکنون با افزودن متد addExtension به BundledSQLiteDriver ، از بارگذاری افزونه‌های SQLite پشتیبانی می‌کند، که می‌تواند برای ثبت افزونه‌هایی که SQLite باید به صورت پویا در برابر اتصالات باز شده در برابر آن درایور خاص بارگذاری کند، استفاده شود. با تشکر از Simon Binder برای این مشارکت! ( I64d6f ، I2721b ، b/430960837 ، b/434203987 )

نسخه ۲.۶.۰-آلفا۰۱

۱۶ ژوئیه ۲۰۲۵

androidx.sqlite:sqlite-*:2.6.0-alpha01 منتشر شد. نسخه 2.6.0-alpha01 شامل این کامیت‌ها است.

ویژگی‌های جدید

تغییرات API

  • Add an API for checking if a SQLiteConnection has an active transaction. Since SQLite transactions are not nested this API can help the applications determine if they should use BEGIN / COMMIT or SAVEPOINT / RELEASE. ( I5bf5e , b/319627988 )
  • Add an API to SQLiteDriver to report if internally it has a connection pool or not. ( I52a51 , b/408010324 )

نسخه ۲.۵

نسخه ۲.۵.۲

۱۸ ژوئن ۲۰۲۵

androidx.sqlite:sqlite-*:2.5.2 منتشر شد. نسخه 2.5.2 شامل این کامیت‌ها است.

رفع اشکالات

  • برای جلوگیری از مبهم‌سازی توابع JNI/external، قوانین R8/Proguard که وجود ندارند را اضافه کنید. ( b/421626199 )
  • Fix a bug where leading comments in a SQL would cause statements to be executed as if they were non-read queries. ( b/413061402 )

نسخه ۲.۵.۱

۷ مه ۲۰۲۵

androidx.sqlite:sqlite-*:2.5.1 منتشر شد. نسخه 2.5.1 شامل این کامیت‌ها است.

تغییرات API

  • Allow androidx.sqlite:sqlite-bundled to load its native component from a specified path via the system property named androidx.sqlite.driver.bundled.path . b/381282544

نسخه ۲.۵.۰

۹ آوریل ۲۰۲۵

androidx.sqlite:sqlite-*:2.5.0 منتشر شد. نسخه 2.5.0 شامل این کامیت‌ها است.

تغییرات مهم از زمان ۲.۴.۰

  • Kotlin Multi-Platform (KMP) Support: With the release of Room KMP version 2.7.0 the SQLite APIs that enable Room to be KMP have also been updated. The package andriodx.sqlite contains three interfaces that define low-level SQLite APIs: SQLiteDriver , SQLiteConnection and SQLiteStatement . The artifact androidx.sqlite:sqlite-framework offers implementation of the interfaces for Android and iOS natively, while androidx.sqlite:sqlite-bundled offers an implementation that uses SQLite compiled from source (also known as “bundled SQLite”). For more information about the SQLite Driver API refer to the official SQLite KMP documentation .

نسخه ۲.۵.۰-rc03

۲۶ مارس ۲۰۲۵

androidx.sqlite:sqlite-*:2.5.0-rc03 منتشر شد. نسخه 2.5.0-rc03 شامل این کامیت‌ها است.

رفع اشکالات

  • یک تغییر ناسازگار با شکستن دودویی را که به اشتباه APIهای SupportSQLiteCompat مورد استفاده توسط کتابخانه‌های دیگر مانند Room ( b/402796648 ) را حذف کرده بود، برگردانید.

نسخه ۲.۵.۰-rc02

۱۲ مارس ۲۰۲۵

androidx.sqlite:sqlite-*:2.5.0-rc02 is released with no notable changes since the last release. Version 2.5.0-rc02 contains these commits .

نسخه ۲.۵.۰-rc01

۲۶ فوریه ۲۰۲۵

androidx.sqlite:sqlite-*:2.5.0-rc01 منتشر شد. نسخه 2.5.0-rc01 شامل این کامیت‌ها است.

رفع اشکالات

  • اصلاح متادیتای Gradle مربوط به artifacts مربوط به androidx.sqlite برای JVM که باعث می‌شد پروژه‌های JVM نوع اندروید را حل کنند و منجر به NoClassDefFoundError: androidx/sqlite/SQLiteDriver ( b/396148592 و b/396184120 ) شوند.

نسخه ۲.۵.۰-بتا۰۱

۱۲ فوریه ۲۰۲۵

androidx.sqlite:sqlite-*:2.5.0-beta01 is released with no notable changes since the last alpha. Version 2.5.0-beta01 contains these commits .

نسخه ۲.۵.۰-آلفا۱۳

۲۹ ژانویه ۲۰۲۵

androidx.sqlite:sqlite-*:2.5.0-alpha13 منتشر شد. نسخه 2.5.0-alpha13 شامل این کامیت‌ها است.

تغییرات API

  • androidx.sqlite.use که اکنون با AutoCloseable.use کاتلین در stdlib جایگزین شده است، حذف کنید. ( I470f0 ، b/315461431 )
  • این کتابخانه اکنون با کاتلین ۲.۰ کامپایل شده است و برای استفاده در پروژه‌ها حداقل به نسخه ۲.۰ نیاز دارد. ( I8efb0 , b/315461431 , b/384600605 )

رفع اشکالات

  • بارگذاری کتابخانه بومی BundledSQLiteDriver را به حالت lazy و هنگام باز شدن اولین اتصال تغییر دهید تا از احتمال انجام IO در نخ اصلی جلوگیری شود. ( I78e92 ، b/363985585 )

نسخه ۲.۵.۰-آلفا۱۲

۱۱ دسامبر ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha12 منتشر شد. نسخه 2.5.0-alpha12 شامل این کامیت‌ها است.

نسخه ۲.۵.۰-آلفا۱۱

۳۰ اکتبر ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha11 منتشر شد. نسخه 2.5.0-alpha11 شامل این کامیت‌ها است.

نسخه ۲.۵.۰-آلفا۱۰

۱۶ اکتبر ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha10 منتشر شد. نسخه 2.5.0-alpha10 شامل این کامیت‌ها است.

تغییرات API

  • برای فعال کردن بازیابی نوع داده یک ستون، SQLiteStatement.getColumnType() را به همراه ثابت‌های مختلف نتیجه SQLITE_DATA_* اضافه کنید. ( I1985c ، b/369636251 )

نسخه ۲.۵.۰-alpha09

۲ اکتبر ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha09 منتشر شد. نسخه 2.5.0-alpha09 شامل این کامیت‌ها است.

Version 2.5.0-alpha08

۱۸ سپتامبر ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha08 is released. Version 2.5.0-alpha08 contains these commits .

نسخه ۲.۵.۰-alpha07

۲۱ آگوست ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha07 منتشر شد. نسخه 2.5.0-alpha07 شامل این کامیت‌ها است.

ویژگی‌های جدید

  • پشتیبانی از لینوکس ARM 64 در JVM/دسکتاپ اضافه شد. ( b/358045505 )

نسخه ۲.۵.۰-alpha06

۷ آگوست ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha06 منتشر شد. نسخه 2.5.0-alpha06 شامل این کامیت‌ها است.

ویژگی‌های جدید

  • پشتیبانی از هدف چند پلتفرمی linuxArm64 Kotlin ( I139d3 ، b/338268719 ) اضافه شد.

نسخه ۲.۵.۰-آلفا۰۵

۱۰ ژوئیه ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha05 منتشر شد. نسخه 2.5.0-alpha05 شامل این کامیت‌ها است.

تغییرات API

  • SQLiteKt به SQLite و BundledSQLiteKt به BundledSQLite تغییر نام داد. ( I8b501 )

نسخه ۲.۵.۰-آلفا۰۴

۱۲ ژوئن ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha04 is released. Version 2.5.0-alpha04 contains these commits .

تغییرات API

  • Added an open() overload API to BundledSQLiteDriver to pass open flags when opening a database connection. Useful for opening a database in read-only mode or using the serialized thread safe mode instead of the multi-thread mode bundled SQLite is compiled with ( b/340949940 ).

رفع اشکالات

  • مشکل لینک‌دهی در درایور SQLite Bundled که باعث می‌شد به دلیل از دست رفتن نمادهای اتمی در دستگاه‌های اندروید با ARM32، UnsatisfiedLinkError نمایش داده شود، برطرف شد. ( b/341639198 )
  • مشکلی در درایورها که در آن اتصال یک آرایه بایت با طول صفر به یک ستون، هنگام خواندن از آن منجر به مقدار تهی می‌شد، برطرف شد.

نسخه ۲.۵.۰-alpha03

۲۹ مه ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha03 منتشر شد. نسخه 2.5.0-alpha03 شامل این کامیت‌ها است.

رفع اشکالات

  • مشکلی را با BundledSQLiteDriver برطرف کنید که در آن پایگاه‌های داده ایجاد شده با آن شامل کاراکتر پایانه تهی C می‌شدند. ( b/340822359 )

Version 2.5.0-alpha02

۱۴ مه ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha02 بدون هیچ تغییر قابل توجهی از زمان 2.5.0-alpha01 منتشر شده است. نسخه 2.5.0-alpha02 شامل این کامیت‌ها است.

نسخه ۲.۵.۰-آلفا۰۱

۱ مه ۲۰۲۴

androidx.sqlite:sqlite-*:2.5.0-alpha01 منتشر شد. نسخه 2.5.0-alpha01 شامل این کامیت‌ها است.

ویژگی‌های جدید

  • Kotlin Multi-Platform (KMP) Support : With the release of Room 2.7.0-alpha01 which is the first release of Room KMP, the SQLite APIs that enable Room to be KMP have also been updated. The package andriodx.sqlite contains three interfaces that define low-level SQLite APIs: SQLiteDriver , SQLiteConnection and SQLiteStatement . The artifact androidx.sqlite:sqlite-framework offers implementation of the interfaces for Android and iOS Natively, while androidx.sqlite:sqlite-bundled offers an implementation that uses SQLite compiled from source (also known as “bundled SQLite”). For more information about the SQLite Driver API refer to the official SQLite KMP documentation .

نسخه ۲.۴

نسخه ۲.۴.۰

۱۸ اکتبر ۲۰۲۳

androidx.sqlite:sqlite:2.4.0 ، androidx.sqlite:sqlite-framework:2.4.0 و androidx.sqlite:sqlite-ktx:2.4.0 منتشر شدند. نسخه 2.4.0 شامل این کامیت‌ها است.

تغییرات مهم از زمان ۲.۳.۰

  • رفع اشکالات مختلف اضافه شده است.

نسخه ۲.۴.۰-rc01

۲۰ سپتامبر ۲۰۲۳

androidx.sqlite:sqlite:2.4.0-rc01 ، androidx.sqlite:sqlite-framework:2.4.0-rc01 و androidx.sqlite:sqlite-ktx:2.4.0-rc01 منتشر شدند. نسخه 2.4.0-rc01 شامل این کامیت‌ها است.

نسخه ۲.۴.۰-بتا۰۱

۲۳ آگوست ۲۰۲۳

androidx.sqlite:sqlite:2.4.0-beta01 , androidx.sqlite:sqlite-framework:2.4.0-beta01 , and androidx.sqlite:sqlite-ktx:2.4.0-beta01 are released. Version 2.4.0-beta01 contains these commits.

نسخه ۲.۴.۰-آلفا۰۳

۹ آگوست ۲۰۲۳

androidx.sqlite:sqlite:2.4.0-alpha03 , androidx.sqlite:sqlite-framework:2.4.0-alpha03 , and androidx.sqlite:sqlite-ktx:2.4.0-alpha03 are released. Version 2.4.0-alpha03 contains these commits.

نسخه ۲.۴.۰-آلفا۰۲

۲۱ ژوئن ۲۰۲۳

androidx.sqlite:sqlite:2.4.0-alpha02 ، androidx.sqlite:sqlite-framework:2.4.0-alpha02 و androidx.sqlite:sqlite-ktx:2.4.0-alpha02 بدون هیچ تغییری منتشر شده‌اند. نسخه 2.4.0-alpha02 شامل این کامیت‌ها است.

نسخه ۲.۴.۰-آلفا۰۱

۲۲ مارس ۲۰۲۳

androidx.sqlite:sqlite:2.4.0-alpha01 , androidx.sqlite:sqlite-framework:2.4.0-alpha01 , and androidx.sqlite:sqlite-ktx:2.4.0-alpha01 are released. Version 2.4.0-alpha01 contains these commits.

رفع اشکالات

  • خطای NullPointerException که ممکن بود در SupportSQLiteQueryBuilder رخ دهد، برطرف شد. ( 5df8698 )

نسخه ۲.۳.۱

نسخه ۲.۳.۱

۲۲ مارس ۲۰۲۳

androidx.sqlite:sqlite:2.3.1 , androidx.sqlite:sqlite-framework:2.3.1 , and androidx.sqlite:sqlite-ktx:2.3.1 are released. Version 2.3.1 contains these commits.

رفع اشکالات

  • از مشکل فریم‌ورک که در آن کوئری‌های SQL پس از تغییر طرحواره در طول مهاجرت‌ها نامعتبر نمی‌شوند، جلوگیری کنید. FrameworkSupportSQLiteOpenHelper اکنون حداقل حافظه پنهان دستور SQL را در طول مهاجرت‌ها تنظیم می‌کند تا از این مشکل جلوگیری شود. ( 0ad2a8f )
  • مشکلی که باعث می‌شد دایرکتوری کش برای استفاده توسط SupportSQLiteLock در دسترس نباشد، برطرف شد، بنابراین یک فایل تهی باید به درستی مدیریت شود. ( 9d177dc )
  • Fixed an issue where attachedDbs was not returning the full list of attached databases. ( 5f008e1 )

نسخه ۲.۳.۰

نسخه ۲.۳.۰

۱۱ ژانویه ۲۰۲۳

androidx.sqlite:sqlite:2.3.0 , androidx.sqlite:sqlite-framework:2.3.0 , and androidx.sqlite:sqlite-ktx:2.3.0 are released. Version 2.3.0 contains these commits.

تغییرات مهم از زمان ۲.۲.۰

  • گروه کتابخانه‌ای androidx.sqlite sources از جاوا به کاتلین تبدیل شده است. توجه داشته باشید که به دلیل اینکه androidx.sqlite برخی از حاشیه‌نویسی‌های nullability را از دست داده است، اگر منابع شما به زبان کاتلین باشند و کد nullability اشتباهی را استنباط کند، ممکن است با خطاهای ناسازگاری منبع مواجه شوید. علاوه بر این، برخی از متدهای getter به ویژگی‌هایی تبدیل شده‌اند که نیاز به سینتکس دسترسی به ویژگی در فایل‌های کاتلین دارند. لطفاً در صورت وجود هرگونه ناسازگاری قابل توجه، یک اشکال (bug) ثبت کنید. ( b/240707042 )
  • یک API در پیکربندی SupportSQLite's اضافه کنید تا امکان از دست رفتن داده‌ها در حین مکانیسم بازیابی فراهم شود. ( I1b830 ، b/215592732 )
  • Added API for multi-process lock and usage at the FrameworkSQLite* level, to protect multi-process 1st time database creation and migrations. ( Ied267 , b/193182592 )

نسخه ۲.۳.۰-rc01

۷ دسامبر ۲۰۲۲

androidx.sqlite:sqlite:2.3.0-rc01 ، androidx.sqlite:sqlite-framework:2.3.0-rc01 و androidx.sqlite:sqlite-ktx:2.3.0-rc01 منتشر شدند. نسخه 2.3.0-rc01 شامل این کامیت‌ها است.

رفع اشکالات

  • حل مشکل NPE در SupportSQLiteQueryBuilder برای ستون‌های nullable. ( Ica8f5 )

نسخه ۲.۳.۰-بتا۰۲

۹ نوامبر ۲۰۲۲

androidx.sqlite:sqlite:2.3.0-beta02 , androidx.sqlite:sqlite-framework:2.3.0-beta02 , and androidx.sqlite:sqlite-ktx:2.3.0-beta02 are released. Version 2.3.0-beta02 contains these commits.

  • رفع مشکل APIهای مختلفی که آرگومان‌های پرس‌وجو را از ثابت ( Array<Any?> ) به غیرمتغیر ( Array<out Any?> ) می‌گیرند تا با رفتار آرایه جاوا مطابقت داشته باشند. ( b/253531073 )

نسخه ۲.۳.۰-بتا۰۱

۵ اکتبر ۲۰۲۲

androidx.sqlite:sqlite:2.3.0-beta01 ، androidx.sqlite:sqlite-framework:2.3.0-beta01 و androidx.sqlite:sqlite-ktx:2.3.0-beta01 منتشر شدند. نسخه 2.3.0-beta01 شامل این کامیت‌ها است.

تغییرات API

  • تمام منابع android.sqlite از جاوا به کاتلین تبدیل شده‌اند. b/240707042
  • یکی از تغییرات قابل توجه در این تبدیل این است که توابع geter زیر به property تبدیل شده‌اند:
    • در SupportSQLiteDatabase :
    • attachedDbs
    • isDatabaseIntegrityOk
    • isDbLockedByCurrentThread
    • isOpen
    • isReadOnly
    • isWriteAheadLoggingEnabled
    • maximumSize
    • pageSize
    • path
    • version
    • در SupportSQLiteOpenHelper :
    • databaseName
    • readableDatabase
    • writableDatabase

نسخه ۲.۳.۰-آلفا۰۵

۲۴ آگوست ۲۰۲۲

androidx.sqlite:sqlite:2.3.0-alpha05 ، androidx.sqlite:sqlite-framework:2.3.0-alpha05 و androidx.sqlite:sqlite-ktx:2.3.0-alpha05 منتشر شدند. نسخه 2.3.0-alpha05 شامل این کامیت‌ها است.

تغییرات API

  • The library group androidx.sqlite sources has been converted from Java to Kotlin. Be aware that because androidx.sqlite had some missing nullability annotations you might experience source incompatibility errors if your sources are in Kotlin and the code was inferring the wrong nullability. Please file a bug if there are any significant incompatibility. ( b/240707042 )

نسخه ۲.۳.۰-آلفا۰۴

۱۰ آگوست ۲۰۲۲

androidx.sqlite:sqlite:2.3.0-alpha04 ، androidx.sqlite:sqlite-framework:2.3.0-alpha04 و androidx.sqlite:sqlite-ktx:2.3.0-alpha04 منتشر شدند. نسخه 2.3.0-alpha04 شامل این کامیت‌ها است.

تغییرات API

  • قابلیت تهی‌سازی به‌روزرسانی‌شده ( I29fbd )

نسخه ۲.۳.۰-آلفا۰۳

۱ ژوئن ۲۰۲۲

androidx.sqlite:sqlite:2.3.0-alpha03 ، androidx.sqlite:sqlite-framework:2.3.0-alpha03 و androidx.sqlite:sqlite-ktx:2.3.0-alpha03 منتشر شدند. نسخه 2.3.0-alpha03 شامل این کامیت‌ها است.

تغییرات API

  • androidx.sqlite.ProcessLock را محدود کنید. این API به عملکرد خود در androidx.sqlite محدود و محدود شده است و نباید به عنوان یک قفل چند فرآیندی عمومی استفاده شود. ( I1643f )

نسخه ۲.۳.۰-آلفا۰۲

۶ آوریل ۲۰۲۲

androidx.sqlite:sqlite:2.3.0-alpha02 ، androidx.sqlite:sqlite-framework:2.3.0-alpha02 و androidx.sqlite:sqlite-ktx:2.3.0-alpha02 منتشر شدند. نسخه 2.3.0-alpha02 شامل این کامیت‌ها است.

  • از زمان نسخه ۲.۳.۰-alpha01 تغییر قابل توجهی رخ نداده است

نسخه ۲.۳.۰-آلفا۰۱

۲۳ فوریه ۲۰۲۲

androidx.sqlite:sqlite:2.3.0-alpha01 ، androidx.sqlite:sqlite-framework:2.3.0-alpha01 و androidx.sqlite:sqlite-ktx:2.3.0-alpha01 منتشر شدند. نسخه 2.3.0-alpha01 شامل این کامیت‌ها است.

تغییرات API

  • Add an API in SupportSQLite's configuration to allow data loss during the recovery mechanism. ( I1b830 , b/215592732 )
  • Added API for multi-process lock and usage at the FrameworkSQLite* level, to protect multi-process 1st time database creation and migrations. ( Ied267 , b/193182592 )

نسخه ۲.۲.۰

نسخه ۲.۲.۰

۱۵ دسامبر ۲۰۲۱

androidx.sqlite:sqlite:2.2.0 , androidx.sqlite:sqlite-framework:2.2.0 , and androidx.sqlite:sqlite-ktx:2.2.0 are released. Version 2.2.0 contains these commits.

تغییرات مهم از زمان ۲.۱.۰

متد پیش‌فرض برای execPerConnectionSQL() در SupportSQLiteDatabase اضافه کنید.

نسخه ۲.۲.۰-rc01

۱ دسامبر ۲۰۲۱

androidx.sqlite:sqlite:2.2.0-rc01 , androidx.sqlite:sqlite-framework:2.2.0-rc01 , and androidx.sqlite:sqlite-ktx:2.2.0-rc01 are released. Version 2.2.0-rc01 contains these commits.

از زمان نسخه ۲.۲.۰-بتا۰۱ تغییر قابل توجهی رخ نداده است.

نسخه ۲.۲.۰-بتا۰۱

۱۳ اکتبر ۲۰۲۱

androidx.sqlite:sqlite:2.2.0-beta01 ، androidx.sqlite:sqlite-framework:2.2.0-beta01 و androidx.sqlite:sqlite-ktx:2.2.0-beta01 منتشر شدند. نسخه 2.2.0-beta01 شامل این کامیت‌ها است.

  • هیچ تغییری نسبت به نسخه آلفای قبلی وجود ندارد.

نسخه ۲.۲.۰-آلفا۰۲

۲۱ ژوئیه ۲۰۲۱

androidx.sqlite:sqlite:2.2.0-alpha02 ، androidx.sqlite:sqlite-framework:2.2.0-alpha02 و androidx.sqlite:sqlite-ktx:2.2.0-alpha02 منتشر شدند. نسخه 2.2.0-alpha02 شامل این کامیت‌ها است.

از زمان انتشار نسخه ۲.۲.۰-alpha۰۱ تغییر قابل توجهی نداشته است. این نسخه صرفاً برای هماهنگی با نسخه 2.4.0-alpha04 منتشر شده است.

نسخه ۲.۲.۰-آلفا۰۱

۱۶ ژوئن ۲۰۲۱

androidx.sqlite:sqlite:2.2.0-alpha01 , androidx.sqlite:sqlite-framework:2.2.0-alpha01 , and androidx.sqlite:sqlite-ktx:2.2.0-alpha01 are released. Version 2.2.0-alpha01 contains these commits.

تغییرات API

  • متد پیش‌فرض برای execPerConnectionSQL() در SupportSQLiteDatabase ( I86326 ، b/172270145 ) اضافه کنید.

نسخه ۲.۱.۰

نسخه ۲.۱.۰

۲۲ ژانویه ۲۰۲۰

androidx.sqlite:sqlite:2.1.0 ، androidx.sqlite:sqlite-framework:2.1.0 و androidx.sqlite:sqlite-ktx:2.1.0 بدون هیچ تغییری از 2.1.0-rc01 منتشر شده‌اند. نسخه 2.1.0 شامل این کامیت‌ها است .

تغییرات مهم از زمان ۲.۰.۱

  • پشتیبانی از useNoBackupDirectory که می‌تواند برای نشان دادن اینکه پایگاه داده باید در دایرکتوری no backup هنگام استفاده از SupportSQLiteOpenHelper ایجاد شود، استفاده شود.

نسخه ۲.۱.۰-rc01

۸ ژانویه ۲۰۲۰

androidx.sqlite:sqlite-*:2.1.0-rc01 منتشر شد. نسخه 2.1.0-rc01 شامل این کامیت‌ها است .

این نسخه مشابه نسخه 2.1.0-beta01 است.

نسخه ۲.۱.۰-بتا۰۱

۴ دسامبر ۲۰۱۹

androidx.sqlite:sqlite:2.1.0-beta01 ، androidx.sqlite:sqlite-framework:2.1.0-beta01 و androidx.sqlite:sqlite-ktx:2.1.0-beta01 بدون هیچ تغییری از زمان 2.1.0-alpha01 منتشر شده‌اند. نسخه 2.1.0-beta01 شامل این کامیت‌ها است .

نسخه ۲.۱.۰-آلفا۰۱

۷ نوامبر ۲۰۱۹

androidx.sqlite:sqlite:2.1.0-alpha01 ، androidx.sqlite:sqlite-framework:2.1.0-alpha01 و androidx.sqlite:sqlite-ktx:2.1.0-alpha01 منتشر شدند. نسخه 2.1.0-alpha01 شامل این کامیت‌ها است .

تغییرات API

  • یک ویژگی جدید به نام useNoBackupDirectory به SupportSQLiteOpenHelper.Configuration اضافه شد تا نشان دهد که یک پایگاه داده مبتنی بر فایل باید ایجاد شود و از دایرکتوری no backup مکان‌یابی شود.

نسخه ۲.۰.۱

نسخه ۲.۰.۱

۱۳ مارس ۲۰۱۹

نسخه ۲.۰.۱ از گروه artifact androidx.sqlite با دو رفع اشکال منتشر شد.

رفع اشکالات

  • دو مشکلی که باعث می‌شد FrameworkSQLiteOpenHelper به درستی از یک پایگاه داده خراب یا یک مهاجرت بد در طول مقداردهی اولیه بازیابی نشود، برطرف شد. ( b/111504749 و b/111519144 )