congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SupportSQLiteDatabase.getPath
Code IndexAdd Tabnine to your IDE (free)

How to use
getPath
method
in
androidx.sqlite.db.SupportSQLiteDatabase

Best Java code snippets using androidx.sqlite.db.SupportSQLiteDatabase.getPath (Showing top 3 results out of 315)

origin: ankidroid/Anki-Android

  /**
   * @return The full path to this database file.
   */
  public String getPath() {
    return mDatabase.getPath();
  }
}
origin: ankidroid/Anki-Android

  /** Send error message, but do not call super() which would delete the database */
  public void onCorruption(SupportSQLiteDatabase db) {
    Timber.e("The database has been corrupted: %s", db.getPath());
    AnkiDroidApp.sendExceptionReport(new RuntimeException("Database corrupted"), "DB.MyDbErrorHandler.onCorruption", "Db has been corrupted: " + db.getPath());
    CollectionHelper.getInstance().closeCollection(false);
    DatabaseErrorDialog.databaseCorruptFlag = true;
  }
}
origin: ankidroid/Anki-Android

/**
 * Closes a previously opened database connection.
 */
public void close() {
  try {
    mDatabase.close();
    Timber.d("Database %s closed = %s", mDatabase.getPath(), !mDatabase.isOpen());
  } catch (Exception e) {
    // The pre-framework requery API ate this exception, but the framework API exposes it.
    // We may want to propagate it in the future, but for now maintain the old API and log.
    Timber.e(e, "Failed to close database %s", this.getDatabase().getPath());
  }
}
androidx.sqlite.dbSupportSQLiteDatabasegetPath

Popular methods of SupportSQLiteDatabase

  • execSQL
  • close
  • query
  • beginTransaction
  • disableWriteAheadLogging
  • endTransaction
  • insert
  • setTransactionSuccessful
  • enableWriteAheadLogging
  • inTransaction
  • isOpen
  • isWriteAheadLoggingEnabled
  • isOpen,
  • isWriteAheadLoggingEnabled,
  • setForeignKeyConstraintsEnabled,
  • update

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • String (java.lang)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now