All Downloads are FREE. Search and download functionalities are using the official Maven repository.

korma.core__init.class Maven / Gradle / Ivy

????1korma/core__initjava/lang/Objectload()Vconst__0Lclojure/lang/Var;		clojure/lang/Var
getRawRoot()Ljava/lang/Object;

clojure/lang/IFnconst__1Lclojure/lang/AFn;	invoke&(Ljava/lang/Object;)Ljava/lang/Object; korma/core$loading__4910__auto__
 clojure/lang/Symbol"const__2$	%equals(Ljava/lang/Object;)Z'(
#)korma/core$fn__1093+
,java/util/concurrent/Callable.clojure/lang/LockingTransaction0runInTransaction3(Ljava/util/concurrent/Callable;)Ljava/lang/Object;23
14const__36	7
setDynamic(Z)Lclojure/lang/Var;9:
;	const__10=	>clojure/lang/IPersistentMap@setMeta (Lclojure/lang/IPersistentMap;)VBC
Djava/lang/BooleanFFALSELjava/lang/Boolean;HI	GJbindRoot(Ljava/lang/Object;)VLM
N	const__11P	Q	const__14S	T	const__15V	W	const__19Y	Zkorma/core$empty_query\
]	const__20_	`	const__24b	ckorma/core$make_querye
fsetMacroh
i	const__25k	l	const__29n	okorma/core$select_STAR_q
r	const__30t	u	const__33w	xkorma/core$update_STAR_z
{	const__34}	~	const__37?	?korma/core$delete_STAR_?
?	const__38?	?	const__41?	?korma/core$insert_STAR_?
?	const__42?	?	const__45?	?korma/core$union_STAR_?
?	const__46?	?	const__49?	?korma/core$union_all_STAR_?
?	const__50?	?	const__53?	?korma/core$intersect_STAR_?
?	const__54?	?	const__57?	?korma/core$make_query_then_exec?
?	const__58?	?	const__61?	?korma/core$select?
?	const__62?	?	const__65?	?korma/core$update?
?	const__66?	?	const__69?	?korma/core$delete?
?	const__70?	?	const__73?	?korma/core$insert?
?	const__74?	?	const__77?	?korma/core$union?
?	const__78?	?	const__81?	?korma/core$union_all?
?	const__82?	?	const__85?	?korma/core$intersect?
?	const__86?	?	const__89?	?korma/core$update_fields?
?	const__90?	?	const__93?	?korma/core$fields
	const__94		const__97	korma/core$set_fields

	const__98
	
const__101	korma/core$from

const__102	
const__105	korma/core$where_or_having_form

const__106	 
const__109"	#korma/core$where_STAR_%
&
const__110(	)
const__113+	,korma/core$where.
/
const__1141	2
const__1174	5korma/core$having_STAR_7
8
const__118:	;
const__121=	>korma/core$having@
A
const__122C	D
const__125F	Gkorma/core$orderI
J
const__126L	M
const__129O	Pkorma/core$valuesR
S
const__130U	V
const__133X	Ykorma/core$join_STAR_[
\
const__134^	_
const__137a	bkorma/core$add_joinsd
e
const__138g	h
const__141j	kkorma/core$joinm
n
const__142p	q
const__145s	tkorma/core$post_queryv
w
const__146y	z
const__149|	}korma/core$limit
?
const__150?	?
const__153?	?korma/core$offset?
?
const__154?	?
const__157?	?korma/core$group?
?
const__158?	?
const__161?	?korma/core$aggregate?
?
const__162?	?
const__165?	?korma/core$queries?
?
const__166?	?
const__169?	?korma/core$sqlfn_STAR_?
?
const__170?	?
const__173?	?korma/core$sqlfn?
?
const__174?	?
const__177?	?korma/core$subselect?
?
const__178?	?
const__181?	?korma/core$modifier?
?
const__182?	?
const__185?	?korma/core$raw?
?
const__186?	?
const__189?	?korma/core$sql_only?
?
const__190?	?
const__193?	?korma/core$dry_run?
?
const__194?	?
const__197?	?korma/core$query_only?
?
const__198?	?
const__201?	?korma/core$as_sql?
?
const__202?	?
const__205?	?korma/core$apply_posts?
?
const__206	
const__209	korma/core$apply_transforms

const__210		

const__213	
korma/core$apply_prepares

const__214	
const__217	korma/core$exec

const__218	
const__221	korma/core$exec_raw!
"
const__222$	%
const__225'	(korma/core$create_entity*
+
const__226-	.
const__2290	1korma/core$simple_table_name3
4
const__2306	7
const__2339	:korma/core$default_fk_name<
=
const__234?	@
const__237B	Ckorma/core$many_to_many_keysE
F
const__238H	I
const__241K	Lkorma/core$get_db_keysN
O
const__242Q	R
const__245T	U"korma/core$db_keys_and_foreign_entW
X
const__246Z	[
const__249]	^korma/core$create_relation`
a
const__250c	d
const__253f	gkorma/core$reli
j
const__256l	mkorma/core$get_relo
p
const__257r	s
const__260u	vkorma/core$has_onex
y
const__261{	|
const__264~	korma/core$belongs_to?
?
const__265?	?
const__268?	?korma/core$has_many?
?
const__269?	?
const__272?	?korma/core$many_to_many_fn?
?
const__273?	?
const__276?	?korma/core$many_to_many?
?
const__277?	?
const__280?	?korma/core$entity_fields?
?
const__281?	?
const__284?	?korma/core$table?
?
const__285?	?
const__288?	?
korma/core$pk?
?
const__289?	?
const__292?	?korma/core$database?
?
const__293?	?
const__296?	?korma/core$transform?
?
const__297?	?
const__300?	?korma/core$prepare?
?
const__301?	?
const__304?	?korma/core$defentity?
?
const__305?	?
const__308?	?korma/core$force_prefix?
?
const__309?	?
const__312?	?korma/core$merge_query?
?
const__313?	?
const__316?	?korma/core$sub_query?
?
const__317?	?
const__320?	?korma/core$with_later?

const__321	
const__324	korma/core$with_now
	
const__325	
const__328	korma/core$with_many_to_many

const__329	
const__332	korma/core$with_STAR_

const__333	
const__336 	!korma/core$with#
$const__4Lclojure/lang/Keyword;const__5const__6Ljava/lang/Object;const__7const__8const__9	const__12	const__13	const__16	const__17	const__18	const__21	const__22	const__23	const__26	const__27	const__28	const__31	const__32	const__35	const__36	const__39	const__40	const__43	const__44	const__47	const__48	const__51	const__52	const__55	const__56	const__59	const__60	const__63	const__64	const__67	const__68	const__71	const__72	const__75	const__76	const__79	const__80	const__83	const__84	const__87	const__88	const__91	const__92	const__95	const__96	const__99
const__100
const__103
const__104
const__107
const__108
const__111
const__112
const__115
const__116
const__119
const__120
const__123
const__124
const__127
const__128
const__131
const__132
const__135
const__136
const__139
const__140
const__143
const__144
const__147
const__148
const__151
const__152
const__155
const__156
const__159
const__160
const__163
const__164
const__167
const__168
const__171
const__172
const__175
const__176
const__179
const__180
const__183
const__184
const__187
const__188
const__191
const__192
const__195
const__196
const__199
const__200
const__203
const__204
const__207
const__208
const__211
const__212
const__215
const__216
const__219
const__220
const__223
const__224
const__227
const__228
const__231
const__232
const__235
const__236
const__239
const__240
const__243
const__244
const__247
const__248
const__251
const__252
const__254
const__255
const__258
const__259
const__262
const__263
const__266
const__267
const__270
const__271
const__274
const__275
const__278
const__279
const__282
const__283
const__286
const__287
const__290
const__291
const__294
const__295
const__298
const__299
const__302
const__303
const__306
const__307
const__310
const__311
const__314
const__315
const__318
const__319
const__322
const__323
const__326
const__327
const__330
const__331
const__334
const__335__init0clojure.core?in-ns?clojure/lang/RT?var8(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Var;??
??
korma.core?intern;(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Symbol;??
#?clojure/lang/IObj?doc?keyword<(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Keyword;??
??"Core querying and entity functions?map2([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;??
??withMeta2(Lclojure/lang/IPersistentMap;)Lclojure/lang/IObj;????clojure/lang/AFn?*exec-mode*?file?clojure/lang/Keyword?&'	?column('	java/lang/IntegervalueOf(I)Ljava/lang/Integer;
)*	
line+'	,*	dynamic-'	TRUEI	Gkorma/core.cljget-rel.*	declared/'	!empty-query#0*	%arglists'1'	)ent+vector5([Ljava/lang/Object;)Lclojure/lang/IPersistentVector;-.
?/java/util/Arrays1asList%([Ljava/lang/Object;)Ljava/util/List;34
25clojure/lang/PersistentList7create0(Ljava/util/List;)Lclojure/lang/IPersistentList;9:
8;2*	=
make-query?3*	AmC4*	EprivateG5'	Iselect*K6*	M7*	O8'	QoCreate an empty select query. Ent can either be an entity defined by defentity,
  or a string of the table nameSupdate*U9*	W:*	YpCreate an empty update query. Ent can either be an entity defined by defentity,
  or a string of the table name.[delete*];*	_<*	aoCreate an empty delete query. Ent can either be an entity defined by defentity,
  or a string of the table namecinsert*e=*	g>*	ioCreate an empty insert query. Ent can either be an entity defined by defentity,
  or a string of the table namekunion*m?*	o@*	qCreate an empty union query.s
union-all*uA*	wB*	y Create an empty union-all query.{
intersect*}C*	D*	? Create an empty intersect query.?make-query-then-exec?E*	?query-fn-var?body?&?args?F*	?select?G*	?H*	??Creates a select query, applies any modifying functions in the body and then
  executes it. `ent` is either a string or an entity created by defentity.
  
  ex: (select user 
        (fields :name :email)
        (where {:id 2}))?update?I*	?J*	??Creates an update query, applies any modifying functions in the body and then
  executes it. `ent` is either a string or an entity created by defentity.
  
  ex: (update user 
        (set-fields {:name "chris"}) 
        (where {:id 4}))?delete?K*	?L*	??Creates a delete query, applies any modifying functions in the body and then
  executes it. `ent` is either a string or an entity created by defentity.
  
  ex: (delete user 
        (where {:id 7}))?insert?M*	?N*	?	Creates an insert query, applies any modifying functions in the body and then
  executes it. `ent` is either a string or an entity created by defentity. Inserts
  return the last inserted id.
  
  ex: (insert user 
        (values [{:name "chris"} {:name "john"}]))?union?O*	?P*	?Creates a union query, applies any modifying functions in the body and then
  executes it.
  
  ex: (union 
        (queries (subselect user
                   (where {:id 7}))
                 (subselect user-backup
                   (where {:id 7})))
        (order :name))?	union-all?Q*	?R*	?Creates a union-all query, applies any modifying functions in the body and then
  executes it.
  
  ex: (union-all 
        (queries (subselect user
                   (where {:id 7}))
                 (subselect user-backup
                   (where {:id 7})))
        (order :name))?	intersect?S*	?T*	?Creates an intersect query, applies any modifying functions in the body and then
  executes it.
  
  ex: (intersect 
        (queries (subselect user
                   (where {:id 7}))
                 (subselect user-backup
                   (where {:id 8})))
        (order :name))?
update-fields?U*	?query?fs?V*	?fields?W*	?vs?X*	??Set the fields to be selected in a query. Fields can either be a keyword
  or a vector of two keywords [field alias]:
  
  (fields query :name [:firstname :first])?
set-fields?Y*	?
fields-map?Z*	?.Set the fields and values for an update query.?from?[*	?__init1table?\*	?Add tables to the from clause.?where-or-having-form?]*	?where*-or-having*?form?^*	?where*?_*	clause`*	sAdd a where clause to the query. Clause can be either a map or a string, and
  will be AND'ed to the other clauses.wherea*	
b*	?Add a where clause to the query, expressing the clause in clojure expressions
  with keywords used to reference fields.
  e.g. (where query (or (= :hits 1) (> :hits 5)))

  Available predicates: and, or, =, not=, <, >, <=, >=, in, like, not, between

  Where can also take a map at any point and will create a clause that compares keys
  to values. The value can be a vector with one of the above predicate functions 
  describing how the key is related to the value: (where query {:name [like "chris"})having*c*	d*	tAdd a having clause to the query. Clause can be either a map or a string, and
  will be AND'ed to the other clauses.havinge*	f*	UAdd a having clause to the query, expressing the clause in clojure expressions
  with keywords used to reference fields.
  e.g. (having query (or (= :hits 1) (> :hits 5)))

  Available predicates: and, or, =, not=, <, >, <=, >=, in, like, not, between

  Having can also take a map at any point and will create a clause that compares keys
  to values. The value can be a vector with one of the above predicate functions
  describing how the key is related to the value: (having query {:name [like "chris"})

  Having only works if you have an aggregation, using it without one will cause an error.order g*	"field$dir&h*	(?Add an ORDER BY clause to a select, union, union-all, or intersect query.
  field should be a keyword of the field name, dir is ASC by default.
  
  (order query :created :asc)*values,i*	.j*	0?Add records to an insert clause. values can either be a vector of maps or a single
  map.
  
  (values query [{:name "john"} {:name "ed"}])2join*4k*	6type8l*	:	add-joins<m*	>rel@n*	BjoinDo*	Fp*	HnAdd a join clause to a select query, specifying the table name to
  join and the predicate to join on. If the relationship uses a join
  table then two clauses will be added. Otherwise, only one clause
  will be added.
  
  (join query addresses)
  (join query addresses (= :addres.users_id :users.id))
  (join query :right addresses (= :address.users_id :users.id))J
post-queryLq*	NpostPr*	R?Add a function representing a query that should be executed for each result in a select.
  This is done lazily over the result set.TlimitVs*	XvZt*	\%Add a limit clause to a select query.^offset`u*	bv*	d'Add an offset clause to a select query.fgrouphw*	jx*	l'Add a group-by clause to a select queryn	aggregatepy*	raggtaliasvgroup-byxz*	z?Use a SQL aggregator function, aliasing the results, and optionally grouping by
  a field:
  
  (select users 
    (aggregate (count :*) :cnt :status))
  
  Aggregates available: count, sum, avg, min, max, first, last|queries~{*	?|*	?:Adds a group of queries to a union, union-all or intersect?sqlfn*?}*	?fn-name?params?~*	?UCall an arbitrary SQL function by providing the name of the function
  and its params?sqlfn?*	?func??*	?XCall an arbitrary SQL function by providing func as a symbol or keyword
  and its params?	subselect??*	?parts??*	??Create a subselect clause to be used in queries. This works exactly like (select ...)
  execept it will wrap the query in ( .. ) and make sure it can be used in any current
  query:

  (select users
    (where {:id [in (subselect users2 (fields :id))]}))?modifier??*	?	modifiers??*	?WAdd a modifer to the beginning of a query:

  (select orders
    (modifier "DISTINCT"))?raw??*	?s??*	??Embed a raw string of SQL in a query. This is used when Korma doesn't
  provide some specific functionality you're looking for:

  (select users
    (fields (raw "PERIOD(NOW(), NOW())")))?sql-only??*	??*	?vWrap around a set of queries so that instead of executing, each will return a string of the SQL 
  that would be used.?dry-run??*	??*	??Wrap around a set of queries to print to the console all SQL that would 
  be run and return dummy values instead of executing them.?
query-only??*	??*	?IWrap around a set of queries to force them to return their query objects.?as-sql??*	?__init2?*	?>Force a query to return a string of SQL when (exec) is called.?apply-posts??*	?results??*	?apply-transforms??*	??*	?apply-prepares??*	??*	?exec??*	??*	?+Execute a query map and return the results.?exec-raw??*	?conn??sql?
with-results???*	1Execute a raw SQL string, supplying whether results should be returned. `sql` can either be
  a string or a vector of the sql string and its params. You can also optionally
  provide the connection to execute against as the first parameter.

  (exec-raw ["SELECT * FROM users WHERE age > ?" [5]] :results)
create-entity?*	?*		4Create an entity representing a table in a database.simple-table-name
?*	?*	default-fk-name?*	?*	many-to-many-keys?*	parentchildkeys!
join-table#lfk%rfk'?*	)get-db-keys+?*	-?*	/db-keys-and-foreign-ent1?*	3sub-ent5opts7?*	9create-relation;?*	=?*	??*	A?*	C?*	E?*	Ghas-oneI?*	K?*	MAdd a has-one relationship for the given entity. It is assumed that the foreign key
  is on the sub-entity with the format table_id: user.id = address.user_id
  Can optionally pass a map with a :fk key to explicitly set the foreign key.

  (has-one users address {:fk :addressID})O
belongs-toQ?*	S?*	U%Add a belongs-to relationship for the given entity. It is assumed that the foreign key
  is on the current entity with the format sub-ent-table_id: email.user_id = user.id.
  Can optionally pass a map with a :fk key to explicitly set the foreign key.

  (belongs-to users email {:fk :emailID})Whas-manyY?*	[?*	]Add a has-many relation for the given entity. It is assumed that the foreign key
  is on the sub-entity with the format table_id: user.id = email.user_id
  Can optionally pass a map with a :fk key to explicitly set the foreign key.
  
  (has-many users email {:fk :emailID})_many-to-many-fna?*	csub-ent-vare?*	gmany-to-manyi?*	k?*	m?Add a many-to-many relation for the given entity.  It is assumed that a join
   table is used to implement the relationship and that the foreign keys are in
   the join table.o
entity-fieldsq?*	s?*	uMSet the fields to be retrieved by default in select queries for the
  entity.w?*	yt{?*	}?Set the name of the table and an optional alias to be used for the entity. 
  By default the table is the name of entity's symbol.pk??*	??*	?7Set the primary key used for an entity. :id by default.?database??*	?db??*	?7Set the database connection to be used for this entity.?	transform??*	??*	?@Add a function to be applied to results coming from the database?prepare??*	??*	?__init3FAdd a function to be applied to records/values going into the database?	defentity??*	??*	?`Define an entity representing a table in the database, applying any modifications in
  the body.?force-prefix??*	??*	?merge-query??*	?neue??*	?	sub-query??*	?body-fn??*	?
with-later??*	??*	?with-now??*	??*	?with-many-to-many??*	?rpk??*	?with*??*	??*	?with??*	??*	??Add a related entity to the given select query. If the entity has a relationship
  type of :belongs-to or :has-one, the requested fields will be returned directly in
  the result map. If the entity is a :has-many, a second query will be executed lazily
  and a key of the entity name will be assoc'd with a vector of the results.

  (defentity email (entity-fields :email))
  (defentity user (has-many email))
  (select user
    (with email) => [{:name "chris" :email [{email: "[email protected]"}]} ...

  With can also take a body that will further refine the relation:
  (select user
     (with address
        (with state)
        (fields :address.city :state.state)
        (where {:address.zip x})))??
??
??
??
?korma.core__init?java/lang/Class?forName%(Ljava/lang/String;)Ljava/lang/Class;??
??getClassLoader()Ljava/lang/ClassLoader;??
??clojure/lang/Compiler?pushNSandLoader(Ljava/lang/ClassLoader;)V??
??
?popThreadBindings
CodeLineNumberTable!Q$6&'(')*+',*-'=P.*/'SV0*1'2*Y_3*4*5'bk6*7*8'nt9*:*w};*<*??=*>*???*@*??A*B*??C*D*??E*F*??G*H*??I*J*??K*L*??M*N*??O*P*??Q*R*??S*T*??U*V*??W*X*?Y*Z*
[*\*]*^*_*`*"(a*b*+1c*d*4:e*f*=Cg*h*FLi*j*OUk*l*X^m*n*ago*p*jpq*r*sys*t*|?u*v*??w*x*??y*z*??{*|*??}*~*??*?*???*?*???*?*???*?*???*?*???*?*???*?*???*?*???*?*??*?*	?*?*?*?*?*?*$?*?*'-?*?*06?*?*9??*?*BH?*?*KQ?*?*TZ?*?*]c?*?*f?*?*lr?*?*u{?*?*~??*?*???*?*???*?*???*?*???*?*???*?*???*?*???*?*???*?*???*?*???*?*???*?*???*?*???*?*??*?*?*?*?*?*?*?* 		??	?
?????Y???!??#?&?*??W?,Y?-?/?5W?8??O?AY?D?A?EY?FY?G?O?JY?M?A?EY?OY?P?O?SY?V?A?EY?XY?Y?O?\Y?_?A?EY?aY?b?O?eY?h?A?EY?jY?k?O?RY?n?A?EY?pY?q?O?tY?w?A?EY?yY?z?O?t??j?t?}Y???A?EY??Y???O?}??j?}??Y???A?EY??Y???O????j????Y???A?EY??Y???O??Y???A?EY??Y???O????j????Y???A?EY??Y???O??Y???A?EY??Y???O??Y???A?EY??Y???O??Y???A?EY??Y?¶O??Y???A?EY??Y?˶O??Y???A?EY??Y?ԶO??Y???A?EY??Y?ݶO????j?ײ?Y???A?EY??Y??O??Y???A?EY??Y??O??Y???A?EY??Y???O??Y???A?EY?Y??O?Y??A?EY?	Y?
?O?
Y??A?EY?Y??O?Y??A?EY?Y??O?Y?"?A?EY?$Y?%?O???j??r  4?}o?y?????6?[??M??&WN?m?s&?K?p??0"9GB?R9?	?	?QE?׸???
߸????Y??SY?S???A?????ո????&??????8?????????????	?
??????	???????Y??SY?SY??SY?	SY
??SY?	SY???SYS???????????R?	? ?????"?Y??SY?	SY ??SY?SY
??SY?	SY???SYS?????U?$????X?	?&(?????*?Y?Y,??S?0S?6??Y(??SY?Y?Y,??S?0S?6??	?`?Y?Y,??S?0S?6??	SY???SY	S???????f?????F?	?h?Y?Y,??S?0S?6??Y?Y,??SY6??SY9??SY8??S?0S?6?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy