blob: a82cdb09698b0ae0ea6e55f2ca84f6eb20134d22 [file]
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:ffi/ffi.dart';
import 'third_party/sqlite3.g.dart';
/// The machine's hostname.
///
/// Returns `null` if looking up the machines host name fails.
String get version {
final nativeString = sqlite3_libversion();
return nativeString.cast<Utf8>().toDartString();
}