Skip to content

Commit

Permalink
rename PostgresCustomSyntax to PostgresSyntax
Browse files Browse the repository at this point in the history
  • Loading branch information
adnelson committed Jul 30, 2020
1 parent 29deb95 commit 586a2c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Note that while an ORM could be written using `requery` to structure queries, `r
- `RowEncode`: functions to serialize domain objects into "rows", that is, the data that goes into an `INSERT INTO` query.
- `RowDecode`: functions to deserialize information returned by a query (e.g. a `SELECT` or an `INSERT` which returns data) into domain objects.
- `Client`: an abstraction of the actual database object. This allows you to interact with your database using the `requery` abstractions.
- `PostgresCustomSyntax`: type-safe AST for PostgresQL. Very much a WIP.
- `PostgresSyntax`: type-safe AST for PostgresQL. Very much a WIP.
- `PostgresClient`: functionality to connect to a postgres database.

## Examples
Expand Down
4 changes: 2 additions & 2 deletions __tests__/PostgresTests.re
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ open Jest;
open Expect;
module RE = Requery.RowEncode;

open PostgresCustomSyntax;
module QB = PostgresCustomSyntax.QueryBuilder;
open PostgresSyntax;
module QB = QueryBuilder;

let onConflictConstraint =
Sql.OnConflict.{
Expand Down
4 changes: 2 additions & 2 deletions src/PostgresClient.re
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module Config = {
};

// Postgres doesn't know about nested tables :)
type query = PostgresCustomSyntax.query(Sql.TableName.t);
type query = PostgresSyntax.query(Sql.TableName.t);

// Postgres results are wrapped in this type
type result = Pg.Result.t(Js.Json.t);
Expand All @@ -64,7 +64,7 @@ module Pool = {
~onQuery?,
~onResult?,
~queryRaw=runRaw,
~queryToSql=PostgresCustomSyntax.render,
~queryToSql=PostgresSyntax.render,
~resultToRows=(result: result) => RowDecode.toRows(result##rows),
(),
)
Expand Down
File renamed without changes.

0 comments on commit 586a2c4

Please sign in to comment.