You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+100-1Lines changed: 100 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,108 @@ This document provides essential information for working with the sqlc codebase,
7
7
### Prerequisites
8
8
9
9
-**Go 1.25.0+** - Required for building and testing
10
-
-**Docker & Docker Compose** - Required for integration tests with databases
10
+
-**Docker & Docker Compose** - Required for integration tests with databases (local development)
11
11
-**Git** - For version control
12
12
13
+
## Claude Code Remote Environment Setup
14
+
15
+
When running in the Claude Code remote environment (or any environment without Docker), you can install PostgreSQL and MySQL natively. The test framework automatically detects and uses native database installations.
16
+
17
+
### Step 1: Configure apt Proxy (Required in Remote Environment)
18
+
19
+
The Claude Code remote environment requires an HTTP proxy for apt. Configure it:
20
+
21
+
```bash
22
+
bash -c 'echo "Acquire::http::Proxy \"$http_proxy\";"'| sudo tee /etc/apt/apt.conf.d/99proxy
23
+
```
24
+
25
+
### Step 2: Install PostgreSQL
26
+
27
+
```bash
28
+
sudo apt-get update
29
+
sudo apt-get install -y postgresql
30
+
sudo service postgresql start
31
+
```
32
+
33
+
Configure PostgreSQL for password authentication:
34
+
35
+
```bash
36
+
# Set password for postgres user
37
+
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
38
+
39
+
# Enable password authentication for localhost
40
+
echo'host all all 127.0.0.1/32 md5'| sudo tee -a /etc/postgresql/16/main/pg_hba.conf
0 commit comments