From e781679278548f0301e88309230c19bf18ef4ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timucin=20=C3=9Cnal?= Date: Sun, 16 Oct 2022 19:48:28 +0200 Subject: [PATCH] Updated version to 2.15 --- index.html | 75 +- versions/1.5/index.html | 3 +- versions/2.0/index.html | 3 +- versions/2.1/index.html | 3 +- versions/2.10/index.html | 3 +- versions/2.11/index.html | 3 +- versions/2.12/index.html | 3 +- versions/2.13/index.html | 3 +- versions/2.14/index.html | 4724 +++++++++++++++++++++++++++++++++++++ versions/2.15/index.html | 4740 ++++++++++++++++++++++++++++++++++++++ versions/2.2/index.html | 3 +- versions/2.3/index.html | 3 +- versions/2.4/index.html | 3 +- versions/2.5/index.html | 3 +- versions/2.6/index.html | 3 +- versions/2.7/index.html | 3 +- versions/2.8/index.html | 3 +- versions/2.9/index.html | 3 +- 18 files changed, 9540 insertions(+), 44 deletions(-) create mode 100644 versions/2.14/index.html create mode 100644 versions/2.15/index.html diff --git a/index.html b/index.html index 86946bd..5011408 100644 --- a/index.html +++ b/index.html @@ -60,7 +60,7 @@ href="#/versions" title="Find all versions of SleekDB" class="menu gotoblock" - > 2.14 2.15 👋 Say Hi!

Join our Discord channel. We would love to know about you and your feedbacks.

@@ -332,7 +332,7 @@

💌 Support

@@ -365,7 +365,7 @@

Using dev version (Not recommended)

composer require rakibtg/sleekdb dev-dev
@@ -437,7 +437,7 @@

First Example - Insert and Fetch Data

@@ -480,7 +480,7 @@

Deleting A Store

$userStore->deleteStore();
@@ -494,6 +494,7 @@

Configurations

( 🚨 Deprecated since version 2.12, set it to false and if needed use set_time_limit() in your own code! )
  • primary_key
  • search
  • +
  • folder_permissions
  • They are store wide, which means they will be used on every query, if not changed on a query by query base.

    Using Custom Configuration

    @@ -509,7 +510,8 @@

    Using Custom Configuration

    "mode" => "or", "score_key" => "scoreKey", "algorithm" => Query::SEARCH_ALGORITHM["hits"] - ] + ], + "folder_permissions" => 0777 ]; $newsStore = new \SleekDB\Store("news", $dataDir, $configuration);

    Let's get familiar with the available configuration options.

    @@ -574,9 +576,13 @@

    algorithm

    They are available as a constant of the Query class.

    Example:

    Query::SEARCH_ALGORITHM["hits"] // default
    +

    folder_permissions

    +

    folder_permissions is set to 0777 by default!

    +

    It has to be a valid int. Refer to the official documentation to learn more about permissions.

    +

    The given permission is only used when creating a new folder. For example when creating a new store, that does not already exist.

    @@ -777,7 +783,7 @@

    Example 2

    // Lisa will get a auto-generated _id, because there is no _id in the document! @@ -936,7 +942,7 @@

    Example

    // Returns: 27 @@ -1185,7 +1191,7 @@

    Example 2

    // Lisa will get a auto-generated _id, because there is no _id in the document! @@ -1270,7 +1276,7 @@

    Example

    // Returns true @@ -1460,7 +1466,7 @@

    Example 4

    ]); @@ -2417,7 +2423,7 @@

    Examples

    ->fetch(); @@ -2532,7 +2538,7 @@

    Example

    ->fetch(); @@ -2654,7 +2660,7 @@

    Example 3

    ->fetch(); @@ -2851,7 +2857,7 @@

    Result

    ] @@ -2994,7 +3000,7 @@

    Not using DateTime

    // WHERE releaseDate IN ("2020-12-01", "2021-01-04", "2021-01-19") @@ -3255,7 +3261,7 @@

    Example 2

    ); @@ -3415,7 +3421,7 @@

    LIMIT

    @@ -3491,7 +3497,7 @@

    Example

    $usersUpdated = $userQuery->fetch(); @@ -3882,7 +3888,7 @@

    Searching documents using the Qu echo json_encode($result); @@ -3960,7 +3966,7 @@

    Return value

    Either int >= 0 in seconds, where 0 means infinite, or null.

    @@ -4122,7 +4128,7 @@

    Cache

    function delete()
    @@ -4132,6 +4138,7 @@

    📢 Optimizations, new query methods and more control

    SleekDB 2.X comes with so many important optimizations and other features that make it faster and more mature. This is the recommended SleekDB release version for new projects, and if you are using an older version consider upgrading as soon as possible.

    Summary

    +

    Changes from 2.14 to 2.15

    +

    Changes from 2.13 to 2.14

    @@ -4670,7 +4686,7 @@

    Contributing

    Please write details about your PR.

    @@ -4683,14 +4699,15 @@

    About

    Let us know with a tweet if you love or hate SleekDB 😄, or if you have any question mail me or tweet to my twitter handle.

    Versions

    diff --git a/versions/1.5/index.html b/versions/1.5/index.html index 4dec20f..8b684a6 100644 --- a/versions/1.5/index.html +++ b/versions/1.5/index.html @@ -786,7 +786,8 @@

    About

    Versions