Skip to content

Commit d6c7122

Browse files
authored
Rename edgedb.com urls to geldata.com (#356)
1 parent 6d24496 commit d6c7122

File tree

13 files changed

+211
-203
lines changed

13 files changed

+211
-203
lines changed

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ issues:
263263

264264
# Excluding configuration per-path, per-linter, per-text and per-source
265265
exclude-rules:
266-
# Don't complain about doc link urls that are more then 80 characters
267-
- source: "^// \\[.*\\]: http"
266+
# Exclude comments with long urls
267+
- source: "//.*http[s]?://"
268268
linters:
269269
- lll
270270

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ format:
3131
errors:
3232
type edb || (\
3333
echo "the edb command must be in your path " && \
34-
echo "see https://www.edgedb.com/docs/guides/contributing/code#building-locally" && \
34+
echo "see https://docs.geldata.com/resources/guides/contributing/code#building-locally" && \
3535
exit 1 \
3636
)
3737
edb gen-errors-json --client | \

doc.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@
5656
//
5757
// You may also connect to a database using a DSN:
5858
//
59-
// dsn := "gel://edgedb@localhost/edgedb"
59+
// dsn := "gel://admin@localhost/main"
6060
// client, err := gel.CreateClientDSN(dsn, opts)
6161
//
6262
// Or you can use Option fields.
6363
//
6464
// opts := gelcfg.Options{
65-
// Database: "edgedb",
66-
// User: "edgedb",
65+
// Branch: "main",
66+
// User: "admin",
6767
// Concurrency: 4,
6868
// }
6969
//

geltypes/datetime.go

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ func NewLocalDateTime(
134134
return LocalDateTime{sec*1_000_000 + nsec/1_000}
135135
}
136136

137-
// LocalDateTime is a date and time without timezone.
138-
// https://www.edgedb.com/docs/stdlib/datetime#type::cal::local_datetime
137+
// LocalDateTime represents [cal::local_datetime], a date and time without
138+
// a timezone.
139+
//
140+
// [cal::local_datetime]: https://docs.geldata.com/reference/stdlib/datetime#type::cal::local_datetime
139141
type LocalDateTime struct {
140142
usec int64
141143
}
@@ -223,8 +225,9 @@ func NewLocalDate(year int, month time.Month, day int) LocalDate {
223225
return LocalDate{int32((t.Unix() + timeShift) / 86400)}
224226
}
225227

226-
// LocalDate is a date without a time zone.
227-
// https://www.edgedb.com/docs/stdlib/datetime#type::cal::local_date
228+
// LocalDate represents [cal::local_date], a date without a timezone.
229+
//
230+
// [cal::local_date]: https://docs.geldata.com/reference/stdlib/datetime#type::cal::local_date
228231
type LocalDate struct {
229232
days int32
230233
}
@@ -329,8 +332,9 @@ func NewLocalTime(hour, minute, second, microsecond int) LocalTime {
329332
return LocalTime{t.UnixNano() / 1_000}
330333
}
331334

332-
// LocalTime is a time without a time zone.
333-
// https://www.edgedb.com/docs/stdlib/datetime#type::cal::local_time
335+
// LocalTime represents [cal::local_time], a time without a timezone.
336+
//
337+
// [cal::local_time]: https://docs.geldata.com/reference/stdlib/datetime#type::cal::local_time
334338
type LocalTime struct {
335339
usec int64
336340
}

geltypes/uuid.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ func ParseUUID(s string) (UUID, error) {
4545
return tmp, nil
4646
}
4747

48-
// UUID is a universally unique identifier
49-
// https://www.edgedb.com/docs/stdlib/uuid
48+
// UUID represents [std::uuid], a universally unique identifier.
49+
//
50+
// [std::uuid]: https://docs.geldata.com/reference/stdlib/uuid#type::std::uuid
5051
type UUID [16]byte
5152

5253
func (id UUID) String() string {

internal/client/connect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (c *protocolConnection) connect(r *buff.Reader, cfg *connConfig) error {
9191

9292
// The client _MUST_ close the connection
9393
// if the protocol version can't be supported.
94-
// https://www.edgedb.com/docs/internals/protocol/overview
94+
// https://docs.geldata.com/reference/reference/protocol#connection-phase
9595
if protocolVersion.LT(protocolVersionMin) ||
9696
protocolVersion.GT(ProtocolVersionMax) {
9797
_ = c.soc.Close()

internal/client/error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func positionFromHeaders(headers map[uint16]string) (*int, *int, error) {
7878
}
7979

8080
// decodeErrorResponseMsg decodes an error response
81-
// https://www.edgedb.com/docs/internals/protocol/messages#errorresponse
81+
// https://docs.geldata.com/reference/reference/protocol/messages#errorresponse
8282
func decodeErrorResponseMsg(r *buff.Reader, query string) error {
8383
r.Discard(1) // severity
8484
w := Warning{

internal/codecs/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (c *JSONCodec) encodeData(w *buff.Writer, data []byte) error {
100100
w.PushUint32(uint32(1 + len(data)))
101101

102102
// json format is always 1
103-
// https://www.edgedb.com/docs/internals/protocol/dataformats
103+
// https://docs.geldata.com/reference/reference/protocol/dataformats#std-json
104104
w.PushUint8(1)
105105

106106
w.PushBytes(data)

internal/codecs/noop.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ var (
3232
NoOpEncoder = noOpEncoder{}
3333
)
3434

35-
// noOpDecoder decodes empty blocks i.e. does nothing.
35+
// noOpDecoder decodes [empty blocks] i.e. does nothing.
3636
//
3737
// There is one special type with type id of zero:
3838
// 00000000-0000-0000-0000-000000000000.
3939
// The describe result of this type contains zero blocks.
4040
// It’s used when a statement returns no meaningful results,
4141
// e.g. the CREATE DATABASE example statement.
4242
//
43-
// https://www.edgedb.com/docs/internals/protocol/typedesc#type-descriptors
43+
// [empty blocks]: https://docs.geldata.com/reference/reference/protocol/typedesc#type-descriptors
4444
type noOpDecoder struct{}
4545

4646
func (c noOpDecoder) DescriptorID() types.UUID { return descriptor.IDZero }

internal/codecs/object.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (c *objectDecoder) Decode(r *buff.Reader, out unsafe.Pointer) error {
188188
elmLen := r.PopUint32()
189189
if elmLen == 0xffffffff {
190190
// element length -1 means missing field
191-
// https://www.edgedb.com/docs/internals/protocol/dataformats
191+
// https://docs.geldata.com/reference/reference/protocol/dataformats#tuple-namedtuple-and-object
192192
field.decoder.(OptionalDecoder).DecodeMissing(p)
193193
} else {
194194
err := field.decoder.Decode(r.PopSlice(elmLen), p)

0 commit comments

Comments
 (0)