{"version":3,"sources":["../browser/src/driver/types/ColumnTypes.ts"],"names":[],"mappings":"","file":"ColumnTypes.js","sourcesContent":["/**\n * Column types used for @PrimaryGeneratedColumn() decorator.\n */\nexport type PrimaryGeneratedColumnType = \"int\" // mysql, mssql, oracle, sqlite\n |\"int2\" // postgres, sqlite, cockroachdb\n |\"int4\" // postgres, cockroachdb\n |\"int8\" // postgres, sqlite, cockroachdb\n |\"integer\" // postgres, oracle, sqlite, mysql, cockroachdb\n |\"tinyint\" // mysql, mssql, sqlite\n |\"smallint\" // mysql, postgres, mssql, oracle, sqlite, cockroachdb\n |\"mediumint\" // mysql, sqlite\n |\"bigint\" // mysql, postgres, mssql, sqlite, cockroachdb\n |\"dec\" // oracle, mssql\n |\"decimal\" // mysql, postgres, mssql, sqlite\n |\"fixed\" // mysql\n |\"numeric\" // postgres, mssql, sqlite\n |\"number\" // oracle\n |\"uuid\"; // postgres\n\n/**\n * Column types where spatial properties are used.\n */\nexport type SpatialColumnType = \"geometry\" // postgres\n |\"geography\"; // postgres\n\n/**\n * Column types where precision and scale properties are used.\n */\nexport type WithPrecisionColumnType = \"float\" // mysql, mssql, oracle, sqlite\n |\"double\" // mysql, sqlite\n |\"dec\" // oracle, mssql, mysql\n |\"decimal\" // mysql, postgres, mssql, sqlite\n |\"fixed\" // mysql\n |\"numeric\" // postgres, mssql, sqlite, mysql\n |\"real\" // mysql, postgres, mssql, oracle, sqlite, cockroachdb\n |\"double precision\" // postgres, oracle, sqlite, mysql, cockroachdb\n |\"number\" // oracle\n |\"datetime\" // mssql, mysql, sqlite\n |\"datetime2\" // mssql\n |\"datetimeoffset\" // mssql\n |\"time\" // mysql, postgres, mssql, cockroachdb\n |\"time with time zone\" // postgres, cockroachdb\n |\"time without time zone\" // postgres\n |\"timestamp\" // mysql, postgres, mssql, oracle, cockroachdb\n |\"timestamp without time zone\" // postgres, cockroachdb\n |\"timestamp with time zone\" // postgres, oracle, cockroachdb\n |\"timestamp with local time zone\"; // oracle\n\n/**\n * Column types where column length is used.\n */\nexport type WithLengthColumnType = \"character varying\" // postgres, cockroachdb\n |\"varying character\" // sqlite\n |\"char varying\" // cockroachdb\n |\"nvarchar\" // mssql, mysql\n |\"national varchar\" // mysql\n |\"character\" // mysql, postgres, sqlite, cockroachdb\n |\"native character\" // sqlite\n |\"varchar\" // mysql, postgres, mssql, sqlite, cockroachdb\n |\"char\" // mysql, postgres, mssql, oracle, cockroachdb\n |\"nchar\" // mssql, oracle, sqlite, mysql\n |\"national char\" // mysql\n |\"varchar2\" // oracle\n |\"nvarchar2\" // oracle, sqlite\n |\"raw\" // oracle\n |\"binary\" // mssql\n |\"varbinary\" // mssql\n |\"string\"; // cockroachdb\n\nexport type WithWidthColumnType = \"tinyint\" // mysql\n |\"smallint\" // mysql\n |\"mediumint\" // mysql\n |\"int\" // mysql\n |\"bigint\"; // mysql\n\n/**\n * All other regular column types.\n */\nexport type SimpleColumnType =\n\n \"simple-array\" // typeorm-specific, automatically mapped to string\n // |\"string\" // typeorm-specific, automatically mapped to varchar depend on platform\n\n |\"simple-json\" // typeorm-specific, automatically mapped to string\n\n |\"simple-enum\" // typeorm-specific, automatically mapped to string\n\n // numeric types\n |\"bit\" // mssql\n |\"int2\" // postgres, sqlite, cockroachdb\n |\"integer\" // postgres, oracle, sqlite, cockroachdb\n |\"int4\" // postgres, cockroachdb\n |\"int8\" // postgres, sqlite, cockroachdb\n |\"int64\" // cockroachdb\n |\"unsigned big int\" // sqlite\n |\"float4\" // postgres, cockroachdb\n |\"float8\" // postgres, cockroachdb\n |\"smallmoney\" // mssql\n |\"money\" // postgres, mssql\n\n // boolean types\n |\"boolean\" // postgres, sqlite, mysql, cockroachdb\n |\"bool\" // postgres, mysql, cockroachdb\n\n // text/binary types\n |\"tinyblob\" // mysql\n |\"tinytext\" // mysql\n |\"mediumblob\" // mysql\n |\"mediumtext\" // mysql\n |\"blob\" // mysql, oracle, sqlite, cockroachdb\n |\"text\" // mysql, postgres, mssql, sqlite, cockroachdb\n |\"ntext\" // mssql\n |\"citext\" // postgres\n |\"hstore\" // postgres\n |\"longblob\" // mysql\n |\"longtext\" // mysql\n |\"bytes\" // cockroachdb\n |\"bytea\" // postgres, cockroachdb\n |\"long\" // oracle\n |\"raw\" // oracle\n |\"long raw\" // oracle\n |\"bfile\" // oracle\n |\"clob\" // oracle, sqlite\n |\"nclob\" // oracle\n |\"image\" // mssql\n\n // date types\n |\"timetz\" // postgres\n |\"timestamptz\" // postgres, cockroachdb\n |\"timestamp with local time zone\" // oracle\n |\"smalldatetime\" // mssql\n |\"date\" // mysql, postgres, mssql, oracle, sqlite\n |\"interval year to month\" // oracle\n |\"interval day to second\" // oracle\n |\"interval\" // postgres, cockroachdb\n |\"year\" // mysql\n\n // geometric types\n |\"point\" // postgres, mysql\n |\"line\" // postgres\n |\"lseg\" // postgres\n |\"box\" // postgres\n |\"circle\" // postgres\n |\"path\" // postgres\n |\"polygon\" // postgres, mysql\n |\"geography\" // mssql\n |\"geometry\" // mysql\n |\"linestring\" // mysql\n |\"multipoint\" // mysql\n |\"multilinestring\" // mysql\n |\"multipolygon\" // mysql\n |\"geometrycollection\" // mysql\n\n // range types\n |\"int4range\" // postgres\n |\"int8range\" // postgres\n |\"numrange\" // postgres\n |\"tsrange\" // postgres\n |\"tstzrange\" // postgres\n |\"daterange\" // postgres\n\n // other types\n |\"enum\" // mysql, postgres\n |\"cidr\" // postgres\n |\"inet\" // postgres, cockroachdb\n |\"macaddr\"// postgres\n |\"bit\" // postgres\n |\"bit varying\" // postgres\n |\"varbit\"// postgres\n |\"tsvector\" // postgres\n |\"tsquery\" // postgres\n |\"uuid\" // postgres, cockroachdb\n |\"xml\" // mssql, postgres\n |\"json\" // mysql, postgres, cockroachdb\n |\"jsonb\" // postgres, cockroachdb\n |\"varbinary\" // mssql\n |\"hierarchyid\" // mssql\n |\"sql_variant\" // mssql\n |\"rowid\" // oracle\n |\"urowid\" // oracle\n |\"uniqueidentifier\" // mssql\n |\"rowversion\" // mssql\n |\"array\"; // cockroachdb\n\n/**\n * Any column type column can be.\n */\nexport type ColumnType = WithPrecisionColumnType\n |WithLengthColumnType\n |WithWidthColumnType\n |SpatialColumnType\n |SimpleColumnType\n |BooleanConstructor\n |DateConstructor\n |NumberConstructor\n |StringConstructor;\n"],"sourceRoot":"../.."}
|