Skip to content

Commit 618b10e

Browse files
committed
fix esm stuff
1 parent 71f316f commit 618b10e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<a href="https://www.powersync.com" target="_blank"><img src="https://github.com/powersync-ja/.github/assets/7372448/d2538c43-c1a0-4c47-9a76-41462dba484f"/></a>
33
</p>
44

5-
*[PowerSync](https://www.powersync.com) is a sync engine for building local-first apps with instantly-responsive UI/UX and simplified state transfer. Syncs between SQLite on the client-side and Postgres or MongoDB on the server-side (MySQL coming soon).*
5+
_[PowerSync](https://www.powersync.com) is a sync engine for building local-first apps with instantly-responsive UI/UX and simplified state transfer. Syncs between SQLite on the client-side and Postgres or MongoDB on the server-side (MySQL coming soon)._
66

77
# PowerSync Service
88

modules/module-mysql/dev/docker/mysql/docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ services:
77
MYSQL_USER: myuser
88
MYSQL_PASSWORD: mypassword
99
ports:
10-
- "3306:3306"
10+
- '3306:3306'
1111
volumes:
1212
- ./init-scripts/my.cnf:/etc/mysql/my.cnf
1313
- ./init-scripts/mysql.sql:/docker-entrypoint-initdb.d/init_user.sql
1414
- mysql_data:/var/lib/mysql
1515

1616
volumes:
17-
mysql_data:
17+
mysql_data:

modules/module-mysql/src/utils/mysql_utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { logger } from '@powersync/lib-services-framework';
2-
import mysql, { Types } from 'mysql2';
2+
import mysql from 'mysql2';
33
import mysqlPromise from 'mysql2/promise';
44
import * as types from '../types/types.js';
55

66
export const MySQLTypesMap: { [key: number]: string } = {};
7-
for (const [name, code] of Object.entries(Types)) {
7+
for (const [name, code] of Object.entries(mysql.Types)) {
88
MySQLTypesMap[code as number] = name;
99
}
1010

0 commit comments

Comments
 (0)