en-US/about_Ldbc.help.txt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
TOPIC
    about_Ldbc
 
SHORT DESCRIPTION
    LiteDB Cmdlets, the document store in PowerShell
 
LONG DESCRIPTION
    The module provides the following commands:
 
        New-LiteDatabase
            Opens new or existing database and creates the database instance
 
        Use-LiteDatabase
            Opens the database, invokes the script, and closes the database
 
        Use-LiteTransaction
            Invokes the script operating on data with a transaction
 
        Invoke-LiteCommand
            Invokes the LiteDB SQL command and gets results
 
        Get-LiteCollection
            Gets the collection with optional auto id
 
        Add-LiteData
        Get-LiteData
        Set-LiteData
        Test-LiteData
        Remove-LiteData
        Update-LiteData
            Operate on documents in the collection
 
        Register-LiteType
            Registers types with custom serialization.
 
HELPERS
        [Ldbc.Dictionary]
            PowerShell friendly wrapper of [LiteDB.BsonDocument].
            It is used as the default type of output documents.
            It is effective as input, too, avoiding conversions.
 
            Features:
            - dot-notation for getting and setting values
            - usual IDictionary properties and methods
            - Print() - gets indented formatted JSON
            - FromJson() - creates data from JSON
            - EnsureId() - generates ObjectId
            - ToBsonDocument() - gets the wrapped document
            - ditto by implicit conversion to BsonDocument
 
        [Ldbc.Collection]
            PowerShell friendly wrapper of [LiteDB.BsonArray].
            It is mostly used for arrays in output documents.
            Normally you do not have to create it directly.
 
            Features:
            - usual IList properties and methods
            - ToBsonArray() - gets the wrapped array
            - ditto by implicit conversion to BsonArray
 
        [Ldbc.Expression]
            PowerShell friendly wrapper of [LiteDB.BsonExpression].
 
            Features:
            - Parameters, wrapped by [Ldbc.Dictionary] for dot-notation
 
SEE ALSO
    Ldbc https://github.com/nightroman/Ldbc
    LiteDB https://www.litedb.org