This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {UserPermissionEnum} from '@poop/db'; | |
import pg from 'pg'; | |
import {LocalDate, LocalDateTime, LocalTime, ZonedDateTime} from '@js-joda/core'; | |
type pgBOOL = boolean; | |
type pgBYTEA = Buffer; | |
type pgCHAR = string; | |
type pgINT8 = number; | |
type pgINT2 = number; | |
type pgINT4 = number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type {AnyTable} from './types'; | |
import type {ReferenceExpression} from 'kysely'; | |
const UNARY_COMPARISON_OPERATORS_COMMON = (['is null', 'is not null'] as const); | |
const UNARY_COMPARISON_OPERATORS_BOOLEAN_ONLY = (['is true', 'is not true', 'is false', 'is not false', 'is unknown', 'is not unknown'] as const); | |
const UNARY_COMPARISON_OPERATORS = [...UNARY_COMPARISON_OPERATORS_COMMON, ...UNARY_COMPARISON_OPERATORS_BOOLEAN_ONLY] as const; | |
type UnaryComparisonOperatorCommon = (typeof UNARY_COMPARISON_OPERATORS_COMMON[number]); | |
type UnaryComparisonOperatorBooleanOnly = (typeof UNARY_COMPARISON_OPERATORS_BOOLEAN_ONLY[number]); | |
type UnaryComparisonOperator<T> = (T extends boolean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<!-- Demo styles. --> | |
<style> | |
body { | |
body { | |
display: flex; |