diff --git a/assets/SleekDB-Logo.jpg b/assets/SleekDB-Logo.jpg new file mode 100644 index 0000000..c78e942 Binary files /dev/null and b/assets/SleekDB-Logo.jpg differ diff --git a/index.html b/index.html index 86946bd..e9775ec 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.

Features

-

Installing SleekDB

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

Using dev version (Not recommended)

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

First Example - Insert and Fetch Data

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

Deleting A Store

$userStore->deleteStore();
@@ -494,6 +493,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 +509,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 +575,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 +782,7 @@

    Example 2

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

    Example

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

    Example 2

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

    Example

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

    Example 4

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

    Examples

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

    Example

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

    Example 3

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

    Result

    ] @@ -2994,7 +2999,7 @@

    Not using DateTime

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

    Example 2

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

    LIMIT

    @@ -3491,7 +3496,7 @@

    Example

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

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

    Return value

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

    @@ -4122,7 +4127,7 @@

    Cache

    function delete()
    @@ -4132,6 +4137,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 +4685,7 @@

    Contributing

    Please write details about your PR.

    @@ -4683,14 +4698,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..513312f 100644 --- a/versions/1.5/index.html +++ b/versions/1.5/index.html @@ -193,7 +193,6 @@

    SleekDB - A NoSQL Database made using PHP

    Features

    -

    Installing SleekDB