Skip to content

Commit

Permalink
Update file
Browse files Browse the repository at this point in the history
  • Loading branch information
mak08 committed Dec 18, 2019
1 parent e37888e commit 5b12aba
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ d mine.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Connect to tables.sdb (create if does not exist), and create table TEST
;;; The WITH-CURRENT-CONNECTION macro opens a DB connection, and binds *CURRENT-CONNECTION* to it.
;;; It also binds the provided variable (C in this case) to the connection.
;;; All the 'embedded SQL' functions (names beginning with % and ?) use *current-connection*.
;;; It also binds the provided variable to the connection.
;;; All the 'embedded SQL' functions (names beginning with % and ?) use *CURRENT-CONNECTION*.
(with-current-connection (c *db* :if-does-not-exist :create)
Expand Down Expand Up @@ -63,6 +63,14 @@ d mine.
(?select '* :from 'test))))
```

## DB Connection

* Macro **with-open-connection**

* Macro **with-current-connection**

Like **with-open-connection** but in addition, it binds **\*current-connection\***

## Data Definition

### Schemas
Expand Down

0 comments on commit 5b12aba

Please sign in to comment.