expanded_sql method

String? expanded_sql(
  1. PtrStmt pStmt
)
inherited

Implementation

String? expanded_sql(PtrStmt pStmt) {
  if (libVersionNumber < 3014000) {
    throw dbsql.DatabaseException('API sqlite3_expanded_sql is not available before 3.14');
  }
  PtrString result = ffi.nullptr;
  try {
    var result = _h_sqlite3_expanded_sql!(pStmt);
    return result == ffi.nullptr ? null : result.toDartString();
  } finally {
    _h_sqlite3_free(result.cast());
  }
}