Sha256: acd96a80e42daa1e5efc0f929d1eb9b1680902620e848a7374e43f52c6127774
Contents?: true
Size: 1.76 KB
Versions: 14
Compression:
Stored size: 1.76 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 }, contextItemFilters: { select: [ filters.schemaRestrictionMet, filters.tableRestrictionMet ], from: [ filters.schemaRestrictionMet ], where: [ filters.schemaRestrictionMet, filters.tableRestrictionMet ] } } ]); }(angular));
Version data entries
14 entries across 7 versions & 1 rubygems