real-ladybug 0.0.1.dev1__tar.gz → 0.0.1.dev2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of real-ladybug might be problematic. Click here for more details.

Files changed (46) hide show
  1. sdist/PKG-INFO +1 -1
  2. sdist/pyproject.toml +1 -1
  3. sdist/real_ladybug-source/CMakeLists.txt +9 -1
  4. sdist/real_ladybug-source/Makefile +10 -9
  5. sdist/real_ladybug-source/scripts/update-nightly-build-version.py +1 -1
  6. sdist/real_ladybug-source/src/common/file_system/local_file_system.cpp +2 -1
  7. sdist/real_ladybug-source/src/include/common/types/interval_t.h +1 -1
  8. sdist/real_ladybug-source/src/include/common/types/types.h +3 -3
  9. sdist/real_ladybug-source/src/include/common/types/value/value.h +67 -67
  10. sdist/real_ladybug-source/src/include/function/cast/functions/cast_string_non_nested_functions.h +2 -3
  11. sdist/real_ladybug-source/src/include/main/database.h +1 -1
  12. sdist/real_ladybug-source/src/include/storage/index/index.h +2 -2
  13. sdist/real_ladybug-source/tools/java_api/build.gradle +9 -9
  14. sdist/real_ladybug-source/tools/java_api/example/build.gradle +1 -1
  15. sdist/real_ladybug-source/tools/java_api/example/src/main/java/Main.java +1 -1
  16. sdist/real_ladybug-source/tools/java_api/src/jni/lbug_java.cpp +99 -98
  17. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/Connection.java +1 -1
  18. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/DataType.java +1 -1
  19. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/DataTypeID.java +1 -1
  20. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/Database.java +1 -1
  21. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/FlatTuple.java +1 -1
  22. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/InternalID.java +1 -1
  23. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/LbugList.java +1 -1
  24. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/LbugMap.java +1 -1
  25. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/LbugStruct.java +1 -1
  26. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/Native.java +1 -1
  27. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/PreparedStatement.java +1 -1
  28. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/QueryResult.java +1 -1
  29. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/QuerySummary.java +1 -1
  30. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/Value.java +1 -1
  31. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/ValueNodeUtil.java +1 -1
  32. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/ValueRecursiveRelUtil.java +1 -1
  33. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/ValueRelUtil.java +1 -1
  34. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/Version.java +1 -1
  35. sdist/real_ladybug-source/tools/java_api/src/main/java/com/lbugdb/package-info.java +1 -1
  36. sdist/real_ladybug-source/tools/java_api/src/test/java/com/lbugdb/ConnectionTest.java +1 -1
  37. sdist/real_ladybug-source/tools/java_api/src/test/java/com/lbugdb/DataTypeTest.java +1 -1
  38. sdist/real_ladybug-source/tools/java_api/src/test/java/com/lbugdb/DatabaseTest.java +1 -1
  39. sdist/real_ladybug-source/tools/java_api/src/test/java/com/lbugdb/FlatTupleTest.java +1 -1
  40. sdist/real_ladybug-source/tools/java_api/src/test/java/com/lbugdb/PreparedStatementTest.java +1 -1
  41. sdist/real_ladybug-source/tools/java_api/src/test/java/com/lbugdb/QueryResultTest.java +1 -1
  42. sdist/real_ladybug-source/tools/java_api/src/test/java/com/lbugdb/TestBase.java +1 -1
  43. sdist/real_ladybug-source/tools/java_api/src/test/java/com/lbugdb/TestHelper.java +1 -1
  44. sdist/real_ladybug-source/tools/java_api/src/test/java/com/lbugdb/ValueTest.java +1 -1
  45. sdist/real_ladybug-source/tools/java_api/src/test/java/com/lbugdb/VersionTest.java +1 -1
  46. sdist/real_ladybug.egg-info/PKG-INFO +1 -1
sdist/PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: real-ladybug
3
- Version: 0.0.1.dev1
3
+ Version: 0.0.1.dev2
4
4
  Summary: Highly scalable, extremely fast, easy-to-use embeddable graph database
5
5
  Home-page: https://github.com/lbugdb/lbug
6
6
  License: MIT
sdist/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ description = "Highly scalable, extremely fast, easy-to-use embeddable graph dat
4
4
  readme = "README.md"
5
5
  license = { text = "MIT" }
6
6
  keywords = ["graph", "database"]
7
- version = "0.0.1.dev1"
7
+ version = "0.0.1.dev2"
8
8
 
9
9
  [project.urls]
10
10
  Homepage = "https://lbugdb.com/"
@@ -1,6 +1,6 @@
1
1
  cmake_minimum_required(VERSION 3.15)
2
2
 
3
- project(Lbug VERSION 0.0.1.1 LANGUAGES CXX C)
3
+ project(Lbug VERSION 0.0.1.2 LANGUAGES CXX C)
4
4
 
5
5
  option(SINGLE_THREADED "Single-threaded mode" FALSE)
6
6
  if(SINGLE_THREADED)
@@ -23,6 +23,14 @@ set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
23
23
  # On Linux, symbols in executables are not accessible by loaded shared libraries (e.g. via dlopen(3)). However, we need to export public symbols in executables so that extensions can access public symbols. This enables that behaviour.
24
24
  set(CMAKE_ENABLE_EXPORTS TRUE)
25
25
 
26
+ # Enable ccache if available
27
+ find_program(CCACHE_PROGRAM ccache)
28
+ if(CCACHE_PROGRAM)
29
+ set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
30
+ set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
31
+ message(STATUS "ccache found and enabled")
32
+ endif()
33
+
26
34
  option(ENABLE_WERROR "Treat all warnings as errors" FALSE)
27
35
  if(ENABLE_WERROR)
28
36
  if (CMAKE_VERSION VERSION_GREATER "3.24.0" OR CMAKE_VERSION VERSION_EQUAL "3.24.0")
@@ -30,20 +30,21 @@ TEST_JOBS ?= 10
30
30
  EXTENSION_LIST ?= httpfs;duckdb;json;postgres;sqlite;fts;delta;iceberg;azure;unity_catalog;vector;neo4j;algo;llm
31
31
  EXTENSION_TEST_EXCLUDE_FILTER ?= ""
32
32
 
33
- ifeq ($(shell uname -s 2>/dev/null),Linux)
34
- NUM_THREADS ?= $(shell expr $(shell nproc) \* 2 / 3)
35
- else ifeq ($(shell uname -s 2>/dev/null),Darwin)
36
- NUM_THREADS ?= $(shell expr $(shell sysctl -n hw.ncpu) \* 2 / 3)
37
- else
38
- NUM_THREADS ?= 1
39
- endif
40
- export CMAKE_BUILD_PARALLEL_LEVEL=$(NUM_THREADS)
41
-
42
33
  ifeq ($(OS),Windows_NT)
43
34
  GEN ?= Ninja
44
35
  SHELL := cmd.exe
45
36
  .SHELLFLAGS := /c
37
+ NUM_THREADS ?= $(shell set /a %NUMBER_OF_PROCESSORS% * 2 / 3)
38
+ else
39
+ ifeq ($(shell uname -s 2>/dev/null),Linux)
40
+ NUM_THREADS ?= $(shell expr $(shell nproc) \* 2 / 3)
41
+ else ifeq ($(shell uname -s 2>/dev/null),Darwin)
42
+ NUM_THREADS ?= $(shell expr $(shell sysctl -n hw.ncpu) \* 2 / 3)
43
+ else
44
+ NUM_THREADS ?= 1
45
+ endif
46
46
  endif
47
+ export CMAKE_BUILD_PARALLEL_LEVEL=$(NUM_THREADS)
47
48
 
48
49
  ifdef GEN
49
50
  CMAKE_FLAGS += -G "$(GEN)"
@@ -36,7 +36,7 @@ def main():
36
36
  if latest_dev_version is None and latest_stable_version is None:
37
37
  print("No versions found. Defaulting to 0.0.1.dev1.")
38
38
  dev_version = "0.0.1.dev1"
39
- elif latest_dev_version is None or Version(latest_dev_version) < Version(latest_stable_version):
39
+ elif latest_dev_version is None or latest_stable_version is not None and Version(latest_dev_version) < Version(latest_stable_version):
40
40
  print("The latest stable version is newer than dev version or no dev version exists. Bumping dev version from stable version.")
41
41
  latest_stable_version_split = latest_stable_version.split(".")
42
42
  latest_stable_version_split[-1] = str(int(latest_stable_version_split[-1]) + 1)
@@ -10,10 +10,11 @@
10
10
  #include "main/settings.h"
11
11
 
12
12
  #if defined(_WIN32)
13
+ #include <sys/stat.h>
14
+
13
15
  #include "common/windows_utils.h"
14
16
  #include <fileapi.h>
15
17
  #include <io.h>
16
- #include <sys/stat.h>
17
18
  #include <windows.h>
18
19
  #else
19
20
  #include "sys/stat.h"
@@ -16,7 +16,7 @@ namespace common {
16
16
  struct timestamp_t;
17
17
  struct date_t;
18
18
 
19
- enum class LBUG_API DatePartSpecifier : uint8_t {
19
+ enum class DatePartSpecifier : uint8_t {
20
20
  YEAR,
21
21
  MONTH,
22
22
  DAY,
@@ -272,7 +272,7 @@ class LogicalType {
272
272
  LBUG_API LogicalType(const LogicalType& other);
273
273
 
274
274
  public:
275
- LBUG_API LogicalType() : typeID{LogicalTypeID::ANY}, extraTypeInfo{nullptr} {
275
+ LogicalType() : typeID{LogicalTypeID::ANY}, extraTypeInfo{nullptr} {
276
276
  physicalType = getPhysicalType(this->typeID);
277
277
  };
278
278
  explicit LBUG_API LogicalType(LogicalTypeID typeID, TypeCategory info = TypeCategory::INTERNAL);
@@ -285,11 +285,11 @@ public:
285
285
  static bool isBuiltInType(const std::string& str);
286
286
  static LogicalType convertFromString(const std::string& str, main::ClientContext* context);
287
287
 
288
- LBUG_API LogicalTypeID getLogicalTypeID() const { return typeID; }
288
+ LogicalTypeID getLogicalTypeID() const { return typeID; }
289
289
  bool containsAny() const;
290
290
  bool isInternalType() const { return category == TypeCategory::INTERNAL; }
291
291
 
292
- LBUG_API PhysicalTypeID getPhysicalType() const { return physicalType; }
292
+ PhysicalTypeID getPhysicalType() const { return physicalType; }
293
293
  LBUG_API static PhysicalTypeID getPhysicalType(LogicalTypeID logicalType,
294
294
  const std::unique_ptr<ExtraTypeInfo>& extraTypeInfo = nullptr);
295
295