bind_parameter_name method

String? bind_parameter_name(
  1. PtrStmt arg1,
  2. int arg2
)
inherited

Implementation

String? bind_parameter_name(PtrStmt arg1, int arg2) {
  if (libVersionNumber < 3000005) {
    throw dbsql.DatabaseException(
        'API sqlite3_bind_parameter_name is not available before 3.0.5 beta');
  }
  PtrString result = ffi.nullptr;
  try {
    var result = _h_sqlite3_bind_parameter_name!(arg1, arg2);
    return result == ffi.nullptr ? null : result.toDartString();
  } finally {
    pkgffi.malloc.free(result);
  }
}