File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
js/encore.dev/storage/sqldb Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,10 @@ impl ToSql for RowValue {
70
70
_ => Err ( format ! ( "string not supported for column of type {}" , ty) . into ( ) ) ,
71
71
} ,
72
72
73
- PValue :: BigInt ( _bi) => {
74
- todo ! ( )
75
- }
73
+ PValue :: BigInt ( bi) => match * ty {
74
+ Type :: TEXT | Type :: VARCHAR => bi. to_sql ( ty, out) ,
75
+ _ => Err ( format ! ( "bigint not supported for column of type {}" , ty) . into ( ) ) ,
76
+ } ,
76
77
77
78
PValue :: Number ( num) => match * ty {
78
79
Type :: INT2 => {
Original file line number Diff line number Diff line change @@ -19,7 +19,14 @@ const driverName = "node-pg";
19
19
export type Row = Record < string , any > ;
20
20
21
21
/** Represents a type that can be used in query template literals */
22
- export type Primitive = string | number | boolean | Buffer | Date | null ;
22
+ export type Primitive =
23
+ | string
24
+ | number
25
+ | bigint
26
+ | boolean
27
+ | Buffer
28
+ | Date
29
+ | null ;
23
30
24
31
/**
25
32
* Constructing a new database object will result in Encore provisioning a database with
You can’t perform that action at this time.
0 commit comments