orange-orm 4.7.11-beta.0 → 4.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/docs/changelog.md +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1659,6 +1659,7 @@ async function execute() {
|
|
|
1659
1659
|
|
|
1660
1660
|
- **`string`** maps to VARCHAR or TEXT in sql
|
|
1661
1661
|
- **`numeric`** maps to INTEGER, DECIMAL, NUMERIC, TINYINT FLOAT/REAL or DOUBLE in sql.
|
|
1662
|
+
- **`bigint`** maps to INTEGER, BIGINT in sql.
|
|
1662
1663
|
- **`boolean`** maps to BIT, TINYINT(1) or INTEGER in sql.
|
|
1663
1664
|
- **`uuid`** is represented as string in javascript and maps to UUID, GUID or VARCHAR in sql.
|
|
1664
1665
|
- **`date`** is represented as ISO 8601 string in javascript and maps to DATE, DATETIME, TIMESTAMP or DAY in sql. Representing datetime values as ISO 8601 strings, rather than relying on JavaScript's native Date object, has multiple advantages, especially when dealing with databases and servers in different time zones. The datetime values are inherently accompanied by their respective time zones. This ensures that the datetime value remains consistent regardless of where it's being viewed or interpreted. On the other hand, JavaScript's Date object is typically tied to the time zone of the environment in which it's executed, which could lead to inconsistencies between the client and the database server.
|
|
@@ -1680,6 +1681,7 @@ const map = orange.map(x => ({
|
|
|
1680
1681
|
id: x.column('id').uuid().primary().notNull(),
|
|
1681
1682
|
name: x.column('name').string(),
|
|
1682
1683
|
balance: x.column('balance').numeric(),
|
|
1684
|
+
discordId: x.column('balance').bigint(),
|
|
1683
1685
|
regularDate: x.column('regularDate').date(),
|
|
1684
1686
|
tzDate: x.column('tzDate').dateWithTimeZone(),
|
|
1685
1687
|
picture: x.column('picture').binary(),
|
package/docs/changelog.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
## Changelog
|
|
2
|
+
__4.7.11__
|
|
3
|
+
Support for bigint [#102](https://github.com/alfateam/orange-orm/issues/102)
|
|
2
4
|
__4.7.10__
|
|
3
5
|
Enabled cyclic dependencies in type mapping to support true bidirectional relationships. See [#132](https://github.com/alfateam/orange-orm/issues/132)
|
|
4
6
|
__4.7.9__
|