Using the Brain

Using the Brain

If you need to import a new sqlar file, do it from directory the sqlar file is in.

Dumping and Loading

When any changes are made, be sure to dump:

sh dump.sh

If you don't, YOUR CHANGES MAY BE LOST.

Reconstruct the database with:

sh mkdb.sh

This script has the risk of OVERWRITING HISTORY, make sure to DUMP first.

Import sqlar

weewiki crate import BRAIN_PATH/a.db brain.sqlar

Logs and messages

say stuff with u/say.

Messages can be tagged with various labels.

For general stuff, use @logs.

Labels

Technically speaking, labels are groups linked to the labels group. But for all intents and purposes, they can be used interchangeably.

In the brain, one often wants to "tag" things. It makes more sense to tag things with a label than to tag things with a group.

u/labels shows all the groups. Groups can be treated as labels to "tag" stuff with.

Tag something using u/tag.

To see messages under a certain tag, use u/tagged.

Append PDF and insert into crate

Use u/append.

u/append PATH_TO_BRAIN_SQLAR PATH_TO_PDF

Blurbs

Blurbs are messages intended to describe something, and can be attached to any object. The neat thing about blurbs is that they can be updated!

To create or update a blurb, use:

$ u/blurb UUID
say: this is something. <ENTER>

Where UUID can be UUID or partial UUID.

A "say" prompt will come up. Enter the message, and press ENTER.

To retrive a blurb, use:

u/blurb UUID