> For the complete documentation index, see [llms.txt](https://alekcz.gitbook.io/datahike-tuts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alekcz.gitbook.io/datahike-tuts/basic-transacting.md).

# Basic transacting

Let's write some data. Sorry I mean transact.

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 }])
```
