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