db: added #:use-sources for db/base exports
This commit is contained in:
parent
f966ea8876
commit
622a947bc4
|
@ -338,7 +338,7 @@ Base connections are made using the following functions.
|
|||
|
||||
@section{Connection Pooling}
|
||||
|
||||
@declare-exporting[db db/base]
|
||||
@declare-exporting[db db/base #:use-sources (db/base)]
|
||||
|
||||
Creating a database connection can be a costly operation; it may
|
||||
involve steps such as process creation and SSL negotiation. A
|
||||
|
@ -415,7 +415,7 @@ a transaction, the transaction is rolled back.
|
|||
|
||||
@section{Virtual Connections}
|
||||
|
||||
@declare-exporting[db db/base]
|
||||
@declare-exporting[db db/base #:use-sources (db/base)]
|
||||
|
||||
A @deftech{virtual connection} creates actual connections on demand and
|
||||
automatically releases them when they are no longer needed.
|
||||
|
@ -506,7 +506,7 @@ execute parameterized queries expressed as strings or encapsulated via
|
|||
|
||||
@section[#:tag "kill-safe"]{Kill-safe Connections}
|
||||
|
||||
@declare-exporting[db db/base]
|
||||
@declare-exporting[db db/base #:use-sources (db/base)]
|
||||
|
||||
@defproc[(kill-safe-connection [c connection?])
|
||||
connection?]{
|
||||
|
@ -526,7 +526,7 @@ shutting down its ports.
|
|||
|
||||
@section{Data Source Names}
|
||||
|
||||
@declare-exporting[db db/base]
|
||||
@declare-exporting[db db/base #:use-sources (db/base)]
|
||||
|
||||
A DSN (data source name) is a symbol associated with a connection
|
||||
specification in a DSN file. They are inspired by, but distinct from,
|
||||
|
@ -667,7 +667,7 @@ ODBC's DSNs.
|
|||
|
||||
@section[#:tag "managing-connections"]{Mangaging Connections}
|
||||
|
||||
@declare-exporting[db db/base]
|
||||
@declare-exporting[db db/base #:use-sources (db/base)]
|
||||
|
||||
@defproc[(connection? [x any/c])
|
||||
boolean?]{
|
||||
|
|
|
@ -61,10 +61,11 @@ file. This library currently supports only cleartext and md5-hashed
|
|||
passwords, and it does not send cleartext passwords unless explicitly
|
||||
ordered to (see @racket[postgresql-connect]). These correspond to the
|
||||
@tt{md5} and @tt{password} authentication methods in the parlance of
|
||||
@tt{pg_hba.conf}, respectively. On Linux, @tt{ident} authentication is
|
||||
automatically supported for local sockets, but not TCP sockets. The
|
||||
@tt{gss}, @tt{sspi}, @tt{krb5}, @tt{pam}, and @tt{ldap} methods are
|
||||
not supported.
|
||||
@tt{pg_hba.conf}, respectively. On Linux and Mac OS X, @tt{ident}
|
||||
authentication is automatically supported for local sockets (as of
|
||||
PostgreSQL 9.1, this authentication method has been renamed
|
||||
@tt{peer}). The @tt{gss}, @tt{sspi}, @tt{krb5}, @tt{pam}, and
|
||||
@tt{ldap} methods are not supported.
|
||||
|
||||
|
||||
@section{MySQL Authentication}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
@title[#:tag "query-api"]{Queries}
|
||||
|
||||
@declare-exporting[db db/base]
|
||||
@declare-exporting[db db/base #:use-sources (db/base)]
|
||||
|
||||
This library provides a high-level functional query API,
|
||||
unlike many other database libraries, which present a stateful,
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
@title[#:tag "sql-types"]{SQL Types and Conversions}
|
||||
|
||||
@declare-exporting[db db/base]
|
||||
@declare-exporting[db db/base #:use-sources (db/base)]
|
||||
|
||||
Connections automatically convert query results to appropriate Racket
|
||||
types. Likewise, query parameters are accepted as Racket values and
|
||||
|
|
Loading…
Reference in New Issue
Block a user