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 {
7070 _ => Err ( format ! ( "string not supported for column of type {}" , ty) . into ( ) ) ,
7171 } ,
7272
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+ } ,
7677
7778 PValue :: Number ( num) => match * ty {
7879 Type :: INT2 => {
Original file line number Diff line number Diff line change @@ -19,7 +19,14 @@ const driverName = "node-pg";
1919export type Row = Record < string , any > ;
2020
2121/** 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 ;
2330
2431/**
2532 * 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