1# Project:M36 Client Library
3The Project:M36 client library is the preferred method for interacting with Project:M36 databases. It supports all features of the DBMS while other interfaces may not.
5The client supports both in-process and remote Project:M36 access.
91. Import the library's symbols
11import ProjectM36.Client
132. Create a Connection with a ConnectionInfo in the Either monad
15conn <- connectProjectM36 (InProcessConnectionInfo NoPersistence)
18## Executing Expressions
201. Execute relational expression queries
22result <- executeRelationalExpr conn (Union (RelationVariable "x") (RelationVariable "y"))
242. Execute database context expressions which modify the current, mutable database context
26maybeErr <- executeDatabaseContextExpr conn (Define "person" (attributesFromList [Attribute "name" StringAtomType, Attribute "age" IntAtomType, Attribute "id" StringAtomType]))
283. Execute a transaction graph expression
30maybeErr <- executeGraphExpr conn (JumpToHead "branch2")
351. Close the connection
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list