Updated ORM
This commit is contained in:
parent
516d366043
commit
8603d22d97
3 changed files with 28 additions and 22 deletions
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 4.0.0-beta.4
|
||||
|
||||
* Added `hasSize` to `ColumnType`
|
||||
|
||||
## 4.0.0-beta.3
|
||||
|
||||
* Updated README
|
||||
|
|
|
@ -67,8 +67,9 @@ enum IndexType {
|
|||
class ColumnType {
|
||||
/// The name of this data type.
|
||||
final String name;
|
||||
final bool hasSize;
|
||||
|
||||
const ColumnType(this.name);
|
||||
const ColumnType(this.name, [this.hasSize = false]);
|
||||
|
||||
static const ColumnType boolean = ColumnType('boolean');
|
||||
|
||||
|
@ -82,8 +83,8 @@ class ColumnType {
|
|||
static const ColumnType smallInt = ColumnType('smallint');
|
||||
static const ColumnType tinyInt = ColumnType('tinyint');
|
||||
static const ColumnType bit = ColumnType('bit');
|
||||
static const ColumnType decimal = ColumnType('decimal');
|
||||
static const ColumnType numeric = ColumnType('numeric');
|
||||
static const ColumnType decimal = ColumnType('decimal', true);
|
||||
static const ColumnType numeric = ColumnType('numeric', true);
|
||||
static const ColumnType money = ColumnType('money');
|
||||
static const ColumnType smallMoney = ColumnType('smallmoney');
|
||||
static const ColumnType float = ColumnType('float');
|
||||
|
@ -99,31 +100,32 @@ class ColumnType {
|
|||
ColumnType('timestamp with time zone');
|
||||
|
||||
// Strings
|
||||
static const ColumnType char = ColumnType('char');
|
||||
static const ColumnType varChar = ColumnType('varchar');
|
||||
static const ColumnType char = ColumnType('char', true);
|
||||
static const ColumnType varChar = ColumnType('varchar', true);
|
||||
static const ColumnType varCharMax = ColumnType('varchar(max)');
|
||||
static const ColumnType text = ColumnType('text');
|
||||
static const ColumnType text = ColumnType('text', true);
|
||||
|
||||
// Unicode strings
|
||||
static const ColumnType nChar = ColumnType('nchar');
|
||||
static const ColumnType nVarChar = ColumnType('nvarchar');
|
||||
static const ColumnType nVarCharMax = ColumnType('nvarchar(max)');
|
||||
static const ColumnType nText = ColumnType('ntext');
|
||||
static const ColumnType nChar = ColumnType('nchar', true);
|
||||
static const ColumnType nVarChar = ColumnType('nvarchar', true);
|
||||
static const ColumnType nVarCharMax = ColumnType('nvarchar(max)', true);
|
||||
static const ColumnType nText = ColumnType('ntext', true);
|
||||
|
||||
// Binary
|
||||
static const ColumnType binary = ColumnType('binary');
|
||||
static const ColumnType varBinary = ColumnType('varbinary');
|
||||
static const ColumnType varBinaryMax = ColumnType('varbinary(max)');
|
||||
static const ColumnType image = ColumnType('image');
|
||||
static const ColumnType binary = ColumnType('binary', true);
|
||||
static const ColumnType varBinary = ColumnType('varbinary', true);
|
||||
static const ColumnType varBinaryMax = ColumnType('varbinary(max)', true);
|
||||
static const ColumnType image = ColumnType('image', true);
|
||||
|
||||
// JSON.
|
||||
static const ColumnType json = ColumnType('json');
|
||||
static const ColumnType jsonb = ColumnType('jsonb');
|
||||
static const ColumnType json = ColumnType('json', true);
|
||||
static const ColumnType jsonb = ColumnType('jsonb', true);
|
||||
|
||||
// Misc.
|
||||
static const ColumnType sqlVariant = ColumnType('sql_variant');
|
||||
static const ColumnType uniqueIdentifier = ColumnType('uniqueidentifier');
|
||||
static const ColumnType xml = ColumnType('xml');
|
||||
static const ColumnType cursor = ColumnType('cursor');
|
||||
static const ColumnType table = ColumnType('table');
|
||||
static const ColumnType sqlVariant = ColumnType('sql_variant', true);
|
||||
static const ColumnType uniqueIdentifier =
|
||||
ColumnType('uniqueidentifier', true);
|
||||
static const ColumnType xml = ColumnType('xml', true);
|
||||
static const ColumnType cursor = ColumnType('cursor', true);
|
||||
static const ColumnType table = ColumnType('table', true);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_orm
|
||||
version: 4.0.0-beta.3
|
||||
version: 4.0.0-beta.4
|
||||
description: Runtime support for Angel3 ORM. Includes base classes for queries.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/orm/angel_orm
|
||||
|
|
Loading…
Reference in a new issue