2
2
@(require scribble/bnf
3
3
"common.rkt " )
4
4
5
- @title[#:tag "pnr -protocol " ]{Package Name Resolver Protocol}
5
+ @title[#:tag "catalog -protocol " ]{Package Catalog Protocol}
6
6
7
- A @tech{package name resolver } is specified by a URL in one of three
7
+ A @tech{package catalog } is specified by a URL in one of three
8
8
forms:
9
9
10
10
@itemlist[
@@ -19,10 +19,10 @@ forms:
19
19
20
20
]
21
21
22
- @section{Remote and Directory Indexes }
22
+ @section{Remote and Directory Catalogs }
23
23
24
- In the case of a remote URL or a local directory naming an
25
- @tech{index }, the URL/path is extended as follows to obtain
24
+ In the case of a remote URL or a local directory naming a
25
+ @tech{package catalog }, the URL/path is extended as follows to obtain
26
26
information about packages:
27
27
28
28
@itemlist[
@@ -64,14 +64,14 @@ information about packages:
64
64
]}
65
65
66
66
@item{@litchar{pkgs} path element: Obtains a list of package names
67
- that are mapped by the @tech{index }. An HTTP request for a remote URL
67
+ that are mapped by the @tech{package catalog }. An HTTP request for a remote URL
68
68
should respond with a @racket[read]-able list of strings. A
69
69
path in a local directory formed by adding @filepath{pkg} and
70
70
@nonterm{package} should refer to a file that similarly
71
71
contains a @racket[read]-able list of strings.
72
72
73
- This URL/path form is used by @command-ref{index -copy} and
74
- tools that allow a user to browse an index .
73
+ This URL/path form is used by @command-ref{catalog -copy} and
74
+ tools that allow a user to browse an catalog .
75
75
76
76
In the case of a local directory, if no @filepath{pkgs} file is
77
77
available, a list is created by listing all files in the
@@ -98,67 +98,67 @@ Note that a local directory served as files through an HTTP server
98
98
works as a remote URL, as long as the @filepath{pkgs} and
99
99
@filepath{pkgs-all} files are present.
100
100
101
- The source for the PLT-hosted @tech{package name resolvers } is in the
102
- @racket[(collection-file-path "pkg-index " "meta " )]
101
+ The source for the PLT-hosted @tech{package catalog } is in the
102
+ @racket[(collection-file-path "pkg-catalog " "meta " )]
103
103
directory of the full Racket distribution.
104
104
105
105
@; ----------------------------------------
106
106
107
- @section{SQLite Indexes }
107
+ @section{SQLite Catalogs }
108
108
109
- A SQLite database @tech{index } is meant to be constructed and queries
110
- using the @racketmodname[pkg/pnr- db] library, but the database can be
109
+ A SQLite database @tech{package catalog } is meant to be constructed and queries
110
+ using the @racketmodname[pkg/db] library, but the database can be
111
111
constructed in any way as long as it contains the following tables:
112
112
113
113
@itemlist[
114
114
115
- @item{A @tt{pnr } table with the format
115
+ @item{A @tt{catalog } table with the format
116
116
117
117
@verbatim[#:indent 2 ]{(id SMALLINT,
118
118
url TEXT,
119
119
pos SMALLINT)}.
120
120
121
121
Normally, the only row in this table is @tt{(0 , "local " , 0 )},
122
122
but a database that records the content of a set of other
123
- indexes can also be used as an index , in which case each row
124
- represents an index ; the @tt{id} field is a unique identifier
125
- for each index , the @tt{url} field is the index 's URL, and the
126
- @tt{pos} column orders the index relative to others (where a
123
+ catalogs can also be used as an catalog , in which case each row
124
+ represents an catalog ; the @tt{id} field is a unique identifier
125
+ for each catalog , the @tt{url} field is the catalog 's URL, and the
126
+ @tt{pos} column orders the catalog relative to others (where a
127
127
lower @tt{pos} takes precedence).}
128
128
129
129
@item{A @tt{pkg} table with the format
130
130
131
131
@verbatim[#:indent 2 ]{(name TEXT,
132
- pnr SMALLINT,
132
+ catalog SMALLINT,
133
133
author TEXT,
134
134
source TEXT,
135
135
checksum TEXT,
136
136
desc TEXT)}
137
137
138
- The @tt{pnr } field is normally @tt{0 }; in the case that the
139
- database reflects multiple other indexes , the @tt{pnr } field
140
- indicates the package entry's source index .
138
+ The @tt{catalog } field is normally @tt{0 }; in the case that the
139
+ database reflects multiple other catalogs , the @tt{catalog } field
140
+ indicates the package entry's source catalog .
141
141
142
- The @tt{pkg} and @tt{pnr } fields together determine a unique
142
+ The @tt{pkg} and @tt{catalog } fields together determine a unique
143
143
row in the table.}
144
144
145
145
@item{A @tt{tags} table with the form
146
146
147
147
@verbatim[#:indent 2 ]{(pkg TEXT,
148
- pnr TEXT,
148
+ catalog TEXT,
149
149
tag TEXT)}
150
150
151
- where the @tt{pkg} and @tt{pnr } combination identifies a unique
151
+ where the @tt{pkg} and @tt{catalog } combination identifies a unique
152
152
row in @tt{pkg}.}
153
153
154
154
@item{A @tt{modules} table with the form
155
155
156
156
@verbatim[#:indent 2 ]{(name TEXT,
157
157
pkg TEXT,
158
- pnr SMALLINT,
158
+ catalog SMALLINT,
159
159
checksum TEXT)}
160
160
161
- where the @tt{pkg} and @tt{pnr } combination identifies a unique
161
+ where the @tt{pkg} and @tt{catalog } combination identifies a unique
162
162
row in @tt{pkg}, and @racket[name] is a printed module path.
163
163
164
164
This table is not currently used by any @exec{raco pkg}
0 commit comments