Skip to content

Commit fb6ea35

Browse files
authored
Merge pull request #31 from cipherstash/prep-for-release
chore: clean up repo
2 parents 354c931 + fcd0734 commit fb6ea35

File tree

9 files changed

+66
-893
lines changed

9 files changed

+66
-893
lines changed

GETTINGSTARTED.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ We plan to support direct language integration in the future.
1515
### Installation
1616

1717
In order to use EQL, you must first install the EQL extension in your PostgreSQL database.
18-
You can do this by running the following command, which will execute the SQL from the `src/install.sql` file:
1918

20-
Update the database credentials based on your environment.
19+
1. Download the [cipherstash-encrypt-dsl.sql](./release/cipherstash-encrypt-dsl.sql) file
20+
2. Run the following command to install the custom types and functions:
2121

2222
```bash
23-
psql -U postgres -d postgres -f src/install.sql
23+
psql -U postgres -d postgres -f cipherstash-encrypt-dsl.sql
2424
```
2525

2626
> Note: We also have direct language specific ORM support for installing the extension. See the `languages` directory for more information.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ Encrypted data is stored as `jsonb` with a specific schema:
583583
}
584584
```
585585
586-
The format is defined as a [JSON Schema](src/cs_encrypted_v1.schema.json).
586+
The format is defined as a [JSON Schema](./cs_encrypted_v1.schema.json).
587587
588588
It should never be necessary to directly interact with the stored `jsonb`.
589589
Cipherstash proxy handles the encoding, and EQL provides the functions.
File renamed without changes.

languages/go/goeql/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/encrypt-query-language/go/goeql
1+
module github.com/cipherstash/encrypt-query-language/languages/go/goeql
22

33
go 1.21.3
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { defineConfig } from 'drizzle-kit'
1+
import { defineConfig } from "drizzle-kit";
22

33
export default defineConfig({
4-
schema: './src/schema.ts',
5-
out: './migrations',
6-
dialect: 'postgresql',
7-
dbCredentials: {
8-
host: process.env.DB_HOST,
9-
user: process.env.DB_USER,
10-
password: process.env.DB_PASSWORD,
11-
database: process.env.DB_NAME,
12-
},
13-
})
4+
schema: "./src/schema.ts",
5+
out: "./migrations",
6+
dialect: "postgresql",
7+
dbCredentials: {
8+
host: process.env.DB_HOST,
9+
user: process.env.DB_USER,
10+
password: process.env.DB_PASSWORD,
11+
database: process.env.DB_NAME,
12+
},
13+
});
Lines changed: 44 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,45 @@
11
{
2-
"name": "@cipherstash/eql",
3-
"version": "0.0.0",
4-
"description": "CipherStash Encrypted Query Language TypeScript Library",
5-
"keywords": [
6-
"encrypted",
7-
"query",
8-
"language",
9-
"typescript",
10-
"ts",
11-
"eql"
12-
],
13-
"homepage": "https://github.com/cipherstash/encrypt-query-language/tree/main/packages/ts-eql",
14-
"bugs": {
15-
"url": "https://github.com/cipherstash/encrypt-query-language/issues"
16-
},
17-
"repository": {
18-
"type": "git",
19-
"url": "git+https://github.com/cipherstash/encrypt-query-language.git"
20-
},
21-
"license": "MIT",
22-
"author": "CipherStash <hello@cipherstash.com>",
23-
"type": "module",
24-
"exports": {
25-
".": {
26-
"types": "./dist/index.d.ts",
27-
"import": "./dist/index.js",
28-
"require": "./dist/index.cjs"
29-
},
30-
"./drizzle": {
31-
"types": "./dist/drizzle/index.d.ts",
32-
"import": "./dist/drizzle/index.js",
33-
"require": "./dist/drizzle/index.cjs"
34-
}
35-
},
36-
"scripts": {
37-
"build": "tsup",
38-
"dev": "tsup --watch",
39-
"generate-types": "json2ts ../../../src/cs_encrypted_v1.schema.json --output ./cs_encrypted_v1.ts"
40-
},
41-
"devDependencies": {
42-
"@types/bun": "latest",
43-
"json-schema-to-typescript": "^15.0.2",
44-
"tsup": "^8.3.0"
45-
},
46-
"peerDependencies": {
47-
"typescript": "^5.0.0"
48-
},
49-
"publishConfig": {
50-
"access": "public"
51-
}
52-
}
2+
"name": "@cipherstash/eql",
3+
"version": "0.0.0",
4+
"description": "CipherStash Encrypted Query Language TypeScript Library",
5+
"keywords": ["encrypted", "query", "language", "typescript", "ts", "eql"],
6+
"homepage": "https://github.com/cipherstash/encrypt-query-language/tree/main/packages/ts-eql",
7+
"bugs": {
8+
"url": "https://github.com/cipherstash/encrypt-query-language/issues"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/cipherstash/encrypt-query-language.git"
13+
},
14+
"license": "MIT",
15+
"author": "CipherStash <hello@cipherstash.com>",
16+
"type": "module",
17+
"exports": {
18+
".": {
19+
"types": "./dist/index.d.ts",
20+
"import": "./dist/index.js",
21+
"require": "./dist/index.cjs"
22+
},
23+
"./drizzle": {
24+
"types": "./dist/drizzle/index.d.ts",
25+
"import": "./dist/drizzle/index.js",
26+
"require": "./dist/drizzle/index.cjs"
27+
}
28+
},
29+
"scripts": {
30+
"build": "tsup",
31+
"dev": "tsup --watch",
32+
"generate-types": "json2ts ../../../cs_encrypted_v1.schema.json --output ./cs_encrypted_v1.ts"
33+
},
34+
"devDependencies": {
35+
"@types/bun": "latest",
36+
"json-schema-to-typescript": "^15.0.2",
37+
"tsup": "^8.3.0"
38+
},
39+
"peerDependencies": {
40+
"typescript": "^5.0.0"
41+
},
42+
"publishConfig": {
43+
"access": "public"
44+
}
45+
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { defineConfig } from 'tsup'
1+
import { defineConfig } from "tsup";
22

33
export default defineConfig({
4-
entry: ['src/index.ts'],
5-
format: ['cjs', 'esm'],
6-
sourcemap: true,
7-
dts: true,
8-
})
4+
entry: ["src/index.ts"],
5+
format: ["cjs", "esm"],
6+
sourcemap: true,
7+
dts: true,
8+
});

0 commit comments

Comments
 (0)