Sha256: 71fb8a4c40f207f70782a2c7cd9da8271385cf7f47c913e1f93baa04dee9b3f7
Contents?: true
Size: 1.87 KB
Versions: 18
Compression:
Stored size: 1.87 KB
Contents
!(angular => { 'use strict'; let filters = { tableRestrictionMet(item, filterArgs) { return ((filterArgs.tableRestrict.length === 0) || _.contains(filterArgs.tableRestrict, item.table)); }, schemaRestrictionMet(item, filterArgs) { return ((filterArgs.schemaRestrict.length === 0) || _.contains(filterArgs.schemaRestrict, item.schema)); } }; angular .module('aleph.schemaCompleterConfig', []) .constant('SCHEMA_MATCHERS', [ { nameProperty: 'schema', meta: 'schema', contextRelevance: { from: 1000 } }, { nameProperty: 'column', meta: 'column', contextRelevance: { select: 1000, from: 500, where: 1000 }, contextItemFilters: { select: [ filters.schemaRestrictionMet, filters.tableRestrictionMet ], from: [ filters.schemaRestrictionMet, filters.tableRestrictionMet ], where: [ filters.schemaRestrictionMet, filters.tableRestrictionMet ] } }, { nameProperty: 'table', meta: 'table', contextRelevance: { select: 500, from: 1000, where: 500, postDot: 2000 }, contextItemFilters: { select: [ filters.schemaRestrictionMet, filters.tableRestrictionMet ], from: [ filters.schemaRestrictionMet ], postDot: [ filters.schemaRestrictionMet ], where: [ filters.schemaRestrictionMet, filters.tableRestrictionMet ] } } ]); }(angular));
Version data entries
18 entries across 9 versions & 1 rubygems