# Basic transacting

Connect to your DB quick and let's get busy.&#x20;

```
$ lein repl
=> (d/create-database config)
=> (def conn (d/connect config))
```

{% hint style="info" %}
I'm assuming you've gone through the material up to this point. If not, you know what to do fam.&#x20;
{% endhint %}

```
;; The first transaction will be the schema we are using:
=> (d/transact conn [{:db/ident :name
                      :db/valueType :db.type/string
                      :db/cardinality :db.cardinality/one }
                     {:db/ident :age
                      :db/valueType :db.type/long
                      :db/cardinality :db.cardinality/one }])
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alekcz.gitbook.io/datahike-tuts/basic-transacting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
